mirror of
https://github.com/ovh/the-bastion.git
synced 2025-01-24 16:51:25 +08:00
chore: doc: auto-detect current year in generated documentation
and set 2021 in LICENSE
This commit is contained in:
parent
2d43a7c915
commit
76639b665c
3 changed files with 3 additions and 2 deletions
2
LICENSE
2
LICENSE
|
@ -1,4 +1,4 @@
|
|||
Copyright 2020 OVHcloud
|
||||
Copyright 2021 OVHcloud
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
|
|
|
@ -17,6 +17,7 @@ autogenerated: plugins bastion_conf
|
|||
default: Makefile
|
||||
@for i in $(VERSION_FILES); do cp $$i $$i.bak; done
|
||||
@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)
|
||||
@for i in $(VERSION_FILES); do test -e $$i.bak && mv $$i.bak $$i; done
|
||||
@rsync -a --delete _build/html/ ../../docs/
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
# -- Project information -----------------------------------------------------
|
||||
|
||||
project = 'The Bastion'
|
||||
copyright = '2020, OVHcloud'
|
||||
copyright = '__YEAR__, OVHcloud'
|
||||
author = 'The Bastion Authors'
|
||||
|
||||
# The short X.Y version
|
||||
|
|
Loading…
Reference in a new issue