Skip to content

Commit be439eb

Browse files
Add in Crown Copyright (#243)
1 parent fa1665e commit be439eb

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{# Displays the copyright information (which is defined in conf.py). #}
2+
{% if show_copyright and copyright %}
3+
<p class="copyright">
4+
{% if hasdoc('copyright') %}
5+
{% trans path=pathto('copyright'), copyright=copyright|e %}© <a href="{{ path }}">Crown Copyright, </a> {{ copyright }}.{% endtrans %}
6+
<br/>
7+
{% else %}
8+
{% trans copyright=copyright|e %}© Crown Copyright, {{ copyright }}.{% endtrans %}
9+
<br/>
10+
{% endif %}
11+
</p>
12+
{% endif %}

source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# -- Project information -----------------------------------------------------
1616

1717
project = 'Simulation Systems'
18-
copyright = f'{datetime.datetime.now().year}, Met Office'
18+
copyright = f'Met Office 2023'
1919
author = 'Simulation Systems and Deployment Team'
2020

2121

@@ -51,7 +51,7 @@
5151
html_theme = 'pydata_sphinx_theme'
5252

5353
html_theme_options = {
54-
"footer_start": ["copyright", "sphinx-version"],
54+
"footer_start": ["crown-copyright", "sphinx-version"],
5555
"navigation_with_keys": False,
5656
"show_toc_level": 2,
5757
"show_prev_next": True,

0 commit comments

Comments
 (0)