docs: turn version into a partial so it can be reused more easily

This commit is contained in:
Nick Craig-Wood 2018-02-13 11:19:19 +00:00
parent ff6a7142da
commit 99f3c8bc93
3 changed files with 3 additions and 2 deletions

View file

@ -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

View file

@ -0,0 +1 @@
v1.39

View file

@ -1 +1 @@
v1.39
{{ partial "version.html" . }}