Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/src/_templates/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{% extends "!footer.html" %}
{% block extrafooter %}
Built using Python {{ python_version }}.
{{ super() }}
{% endblock %}
6 changes: 5 additions & 1 deletion docs/src/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,12 @@ def autolog(message):

# Create a variable that can be inserted in the rst "|copyright_years|".
# You can add more variables here if needed.

build_python_version = ".".join([str(i) for i in sys.version_info[:3]])

rst_epilog = f"""
.. |copyright_years| replace:: 2010 - {upper_copy_year}
.. |python_version| replace:: {'.'.join([str(i) for i in sys.version_info[:3]])}
.. |python_version| replace:: {build_python_version}
.. |iris_version| replace:: v{version}
.. |build_date| replace:: ({datetime.datetime.now().strftime('%d %b %Y')})
"""
Expand Down Expand Up @@ -226,6 +229,7 @@ def autolog(message):

html_context = {
"copyright_years": "2010 - {}".format(upper_copy_year),
"python_version": build_python_version,
# menu_links and menu_links_name are used in _templates/layout.html
# to include some nice icons. See http://fontawesome.io for a list of
# icons (used in the sphinx_rtd_theme)
Expand Down
3 changes: 3 additions & 0 deletions docs/src/developers_guide/contributing_documentation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ The documentation uses specific packages that need to be present. Please see
Building
~~~~~~~~

This documentation is built using the latest Python version that Iris
supports. For more information see :ref:`installing_iris`.

The build can be run from the documentation directory ``docs/src``.

The build output for the html is found in the ``_build/html`` sub directory.
Expand Down
3 changes: 2 additions & 1 deletion docs/src/installing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ any WSL_ distributions.
.. _WSL: https://docs.microsoft.com/en-us/windows/wsl/install-win10

.. note:: Iris currently supports and is tested against **Python 3.6** and
**Python 3.7**.
**Python 3.7**. This documentation is built using a single
version of Python, version |python_version|.


.. _installing_using_conda:
Expand Down