Skip to content

Commit

Permalink
Add in Crown Copyright (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
astroDimitrios authored Sep 11, 2024
1 parent fa1665e commit be439eb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions source/_templates/crown-copyright.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{# Displays the copyright information (which is defined in conf.py). #}
{% if show_copyright and copyright %}
<p class="copyright">
{% if hasdoc('copyright') %}
{% trans path=pathto('copyright'), copyright=copyright|e %}© <a href="{{ path }}">Crown Copyright, </a> {{ copyright }}.{% endtrans %}
<br/>
{% else %}
{% trans copyright=copyright|e %}© Crown Copyright, {{ copyright }}.{% endtrans %}
<br/>
{% endif %}
</p>
{% endif %}
4 changes: 2 additions & 2 deletions source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# -- Project information -----------------------------------------------------

project = 'Simulation Systems'
copyright = f'{datetime.datetime.now().year}, Met Office'
copyright = f'Met Office 2023'
author = 'Simulation Systems and Deployment Team'


Expand Down Expand Up @@ -51,7 +51,7 @@
html_theme = 'pydata_sphinx_theme'

html_theme_options = {
"footer_start": ["copyright", "sphinx-version"],
"footer_start": ["crown-copyright", "sphinx-version"],
"navigation_with_keys": False,
"show_toc_level": 2,
"show_prev_next": True,
Expand Down

0 comments on commit be439eb

Please sign in to comment.