Skip to content

Commit

Permalink
chore: doc: auto-detect current year in generated documentation
Browse files Browse the repository at this point in the history
and set 2021 in LICENSE
  • Loading branch information
speed47 committed Jun 15, 2021
1 parent 2d43a7c commit 76639b6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions doc/sphinx/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
2 changes: 1 addition & 1 deletion doc/sphinx/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# -- Project information -----------------------------------------------------

project = 'The Bastion'
copyright = '2020, OVHcloud'
copyright = '__YEAR__, OVHcloud'
author = 'The Bastion Authors'

# The short X.Y version
Expand Down

0 comments on commit 76639b6

Please sign in to comment.