Skip to content

Commit

Permalink
Merge pull request #4254 from geoadmin/feat-BGDIINF_SB-3066-legal
Browse files Browse the repository at this point in the history
BGDIINF_SB-3066: Legal notice
  • Loading branch information
rebert authored Sep 4, 2023
2 parents b3696fa + fd91a2b commit e699535
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
5 changes: 5 additions & 0 deletions chsdi/static/doc/source/_static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,8 @@ td {
margin-bottom: auto;
padding: 10px;
}

.legal-framework {
padding-top: 20px;
text-align: right;
}
10 changes: 10 additions & 0 deletions chsdi/static/doc/source/_templates/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{% extends '!footer.html' %}

{% block extrafooter %}
{{ super() }}
<p class="legal-framework">
<a href="https://cms.geo.admin.ch/data-protection/en/data.html?site=api.geo.admin.ch" target="_blank">
Legal framework & Data protection
</a>
</p>
{% endblock %}
9 changes: 5 additions & 4 deletions chsdi/static/doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']


# The suffix of source filenames.
source_suffix = '.rst'

Expand All @@ -67,7 +68,7 @@

wmts_public_host = 'https://' + os.environ.get('WMTS_PUBLIC_HOST', None)

extlinks = {'wmts_getcapabilities':
extlinks = {'wmts_getcapabilities':
(wmts_public_host + '%s', None)}

# The language for content autogenerated by Sphinx. Refer to documentation
Expand Down Expand Up @@ -104,8 +105,8 @@
# A list of ignored prefixes for module index sorting.
#modindex_common_prefix = []

# The path to the JavaScript file to include in the HTML files in order to
# load MathJax. By default insecure http protocol is used.
# The path to the JavaScript file to include in the HTML files in order to
# load MathJax. By default insecure http protocol is used.
mathjax_path = '//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML'

# -- Options for HTML output ---------------------------------------------------
Expand Down Expand Up @@ -176,7 +177,7 @@
#html_show_sourcelink = True

# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
#html_show_sphinx = True
html_show_sphinx = True

# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
html_show_copyright = True
Expand Down
1 change: 1 addition & 0 deletions chsdi/static/doc/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -180,3 +180,4 @@ Terms of use
:hidden:

About Geoadmin API <https://www.geo.admin.ch/>

0 comments on commit e699535

Please sign in to comment.