docs: turn version into a partial so it can be reused more easily
This commit is contained in:
parent
ff6a7142da
commit
99f3c8bc93
3 changed files with 3 additions and 2 deletions
2
Makefile
2
Makefile
|
@ -154,7 +154,7 @@ tag: doc
|
|||
@echo "Old tag is $(LAST_TAG)"
|
||||
@echo "New tag is $(NEW_TAG)"
|
||||
echo -e "package fs\n\n// Version of rclone\nvar Version = \"$(NEW_TAG)\"\n" | gofmt > fs/version.go
|
||||
echo -n "$(NEW_TAG)" > docs/layouts/shortcodes/version.html
|
||||
echo -n "$(NEW_TAG)" > docs/layouts/partials/version.html
|
||||
git tag $(NEW_TAG)
|
||||
@echo "Edit the new changelog in docs/content/changelog.md"
|
||||
@echo " * $(NEW_TAG) -" `date -I` >> docs/content/changelog.md
|
||||
|
|
1
docs/layouts/partials/version.html
Normal file
1
docs/layouts/partials/version.html
Normal file
|
@ -0,0 +1 @@
|
|||
v1.39
|
|
@ -1 +1 @@
|
|||
v1.39
|
||||
{{ partial "version.html" . }}
|
||||
|
|
Loading…
Reference in a new issue