mirror of
https://github.com/rclone/rclone.git
synced 2025-12-11 22:14:05 +01:00
docs: turn version into a partial so it can be reused more easily
This commit is contained in:
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" . }}
|
||||
|
||||
Reference in New Issue
Block a user