diff --git a/_templates/footer.html b/_templates/footer.html deleted file mode 100644 index 27ef857ce..000000000 --- a/_templates/footer.html +++ /dev/null @@ -1,25 +0,0 @@ -{% extends "!footer.html" %} -{%- block contentinfo %} -

- {{ copyright }}, Texas Instruments Incorporated. All rights reserved.
- Trademarks | Privacy policy | Terms of use | Terms of sale - {%- if build_id and build_url %} - - {#- Translators: Build is a noun, not a verb -#} - {%- trans %}Build{% endtrans -%} - {{ build_id }}. - - {%- elif commit %} - - {#- Translators: the phrase "revision" comes from Git, referring to a commit #} - {%- trans %}Revision{% endtrans %} {{ commit }}. - - {%- endif %} - {%- if last_updated %} - - {%- trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %} - - {%- endif -%} - -

-{%- endblock %} diff --git a/conf.py b/conf.py index 846721229..7140572bb 100644 --- a/conf.py +++ b/conf.py @@ -11,11 +11,12 @@ # All configuration values have a default; values that are commented out # serve to show the default. -# pylint: disable=C0103,W0622 +# pylint: disable=C0103 import sys import os import importlib +from datetime import datetime # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the @@ -54,15 +55,15 @@ # The encoding of source files. #source_encoding = 'utf-8-sig' -copyright = '© Copyright 1995-2024' author = 'Texas Instruments Incorporated' +project_copyright = f"1995-{datetime.now().year} {author}, CC-BY-SA-4.0" # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. # # This is also used if you do content translation via gettext catalogs. # Usually you set "language" from the command line for these cases. -language = None +language = 'en' # There are two options for replacing |today|: either, you set today to some # non-false value, then it is used: @@ -192,6 +193,15 @@ # implements a search results scorer. If empty, the default will be used. html_search_scorer = '' +# Read the Docs specific parameters for the "Edit on GitHub" button +html_context = { + "display_github": True, + "github_user": "texasinstruments", + "github_repo": "processor-sdk-doc", + "github_version": "master", + "conf_py_path": "/source/", +} + # -- Options for LaTeX output --------------------------------------------- latex_elements = {