chore: doc: auto-detect current year in generated documentation

and set 2021 in LICENSE
This commit is contained in:
Stéphane Lesimple 2021-06-14 09:44:45 +00:00 committed by Stéphane Lesimple
parent 2d43a7c915
commit 76639b665c
3 changed files with 3 additions and 2 deletions

View file

@ -1,4 +1,4 @@
Copyright 2020 OVHcloud Copyright 2021 OVHcloud
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.

View file

@ -17,6 +17,7 @@ autogenerated: plugins bastion_conf
default: Makefile default: Makefile
@for i in $(VERSION_FILES); do cp $$i $$i.bak; done @for i in $(VERSION_FILES); do cp $$i $$i.bak; done
@sed -i -e "s/__VERSION__/$(VERSION)/g" $(VERSION_FILES) @sed -i -e "s/__VERSION__/$(VERSION)/g" $(VERSION_FILES)
@sed -i -e "s/__YEAR__/$(shell date +%Y)/g" $(VERSION_FILES)
@$(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) @$(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
@for i in $(VERSION_FILES); do test -e $$i.bak && mv $$i.bak $$i; done @for i in $(VERSION_FILES); do test -e $$i.bak && mv $$i.bak $$i; done
@rsync -a --delete _build/html/ ../../docs/ @rsync -a --delete _build/html/ ../../docs/

View file

@ -20,7 +20,7 @@
# -- Project information ----------------------------------------------------- # -- Project information -----------------------------------------------------
project = 'The Bastion' project = 'The Bastion'
copyright = '2020, OVHcloud' copyright = '__YEAR__, OVHcloud'
author = 'The Bastion Authors' author = 'The Bastion Authors'
# The short X.Y version # The short X.Y version