From 99f3c8bc939b2ad12acc2d039e31413bfe8c6d09 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Tue, 13 Feb 2018 11:19:19 +0000 Subject: [PATCH] docs: turn version into a partial so it can be reused more easily --- Makefile | 2 +- docs/layouts/partials/version.html | 1 + docs/layouts/shortcodes/version.html | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 docs/layouts/partials/version.html diff --git a/Makefile b/Makefile index 66511328c..aa1d146c5 100644 --- a/Makefile +++ b/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 diff --git a/docs/layouts/partials/version.html b/docs/layouts/partials/version.html new file mode 100644 index 000000000..fe40bd64f --- /dev/null +++ b/docs/layouts/partials/version.html @@ -0,0 +1 @@ +v1.39 \ No newline at end of file diff --git a/docs/layouts/shortcodes/version.html b/docs/layouts/shortcodes/version.html index fe40bd64f..8476e6e9e 100644 --- a/docs/layouts/shortcodes/version.html +++ b/docs/layouts/shortcodes/version.html @@ -1 +1 @@ -v1.39 \ No newline at end of file +{{ partial "version.html" . }}