aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Magorsch <max@magorsch.de>2020-01-23 15:01:58 +0100
committerMax Magorsch <max@magorsch.de>2020-01-23 15:01:58 +0100
commit144bda24c48e17f0ac3b19c90050de7b702456e7 (patch)
treeda09438ff9ddd9a5c802707c8cdc75143108b9b8 /tyrian_sphinx_theme
parentAdd a link to the github repository (diff)
downloadtyrian-sphinx-theme-144bda24c48e17f0ac3b19c90050de7b702456e7.tar.gz
tyrian-sphinx-theme-144bda24c48e17f0ac3b19c90050de7b702456e7.tar.bz2
tyrian-sphinx-theme-144bda24c48e17f0ac3b19c90050de7b702456e7.zip
Make the license configurable
Add two new html_theme_options (license and license_link) which can be used to configure the license that will be displayed in the footer. Further information about the option are included in the README. By default the CC-BY-SA-4.0 will be used. Resolves: #2 Signed-off-by: Max Magorsch <max@magorsch.de>
Diffstat (limited to 'tyrian_sphinx_theme')
-rw-r--r--tyrian_sphinx_theme/_version.py2
-rw-r--r--tyrian_sphinx_theme/layout.html2
-rw-r--r--tyrian_sphinx_theme/theme.conf2
3 files changed, 4 insertions, 2 deletions
diff --git a/tyrian_sphinx_theme/_version.py b/tyrian_sphinx_theme/_version.py
index e388a85..895d1fc 100644
--- a/tyrian_sphinx_theme/_version.py
+++ b/tyrian_sphinx_theme/_version.py
@@ -1,2 +1,2 @@
-__version_info__ = (0, 0, 1)
+__version_info__ = (0, 0, 2)
__version__ = ".".join(map(str, __version_info__))
diff --git a/tyrian_sphinx_theme/layout.html b/tyrian_sphinx_theme/layout.html
index 2d451fb..2d9da1b 100644
--- a/tyrian_sphinx_theme/layout.html
+++ b/tyrian_sphinx_theme/layout.html
@@ -383,7 +383,7 @@
<small>
Gentoo is a trademark of the Gentoo Foundation, Inc.
The contents of this document, unless otherwise expressly stated, are licensed under the
- <a href="https://creativecommons.org/licenses/by-sa/3.0/" rel="license">CC-BY-SA-3.0</a> license.
+ <a href="{{ theme_license_link }}" rel="license">{{ theme_license }}</a> license.
The <a href="https://www.gentoo.org/inside-gentoo/foundation/name-logo-guidelines.html">Gentoo Name and Logo Usage Guidelines</a> apply.
</small>
</div>
diff --git a/tyrian_sphinx_theme/theme.conf b/tyrian_sphinx_theme/theme.conf
index 4607648..60ccefb 100644
--- a/tyrian_sphinx_theme/theme.conf
+++ b/tyrian_sphinx_theme/theme.conf
@@ -8,6 +8,8 @@ sidebar = right
navigationlinks_top = none
navigationlinks_bottom = long
navigationlinks_navbar = none
+license = CC-BY-SA-4.0
+license_link = https://creativecommons.org/licenses/by-sa/4.0/
logo =
logo_name = false
logo_text_align = left