From e32a0be58cea40ba88a9182a1c0c53679363fc7a Mon Sep 17 00:00:00 2001 From: Thomas VINCENT Date: Thu, 9 Nov 2023 10:40:52 +0100 Subject: [PATCH 1/2] Update sphinx conf.py to accomodate changes in readthedocs --- doc/conf.py | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index 1ac4b5dc..7ed8a464 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -14,17 +14,13 @@ # import sys # sys.path.insert(0, os.path.abspath('.')) -import os - -# See https://docs.readthedocs.io/en/stable/builds.html#build-environment -on_rtd = os.environ.get('READTHEDOCS') == 'True' - - # -- Project information ----------------------------------------------------- -project = 'hdf5plugin' -copyright = u'2016-2022, Data analysis unit, European Synchrotron Radiation Facility, Grenoble' -author = 'ESRF - Data Analysis Unit' +project = "hdf5plugin" +copyright = ( + "2016-2023, Data analysis unit, European Synchrotron Radiation Facility, Grenoble" +) +author = "ESRF - Data Analysis Unit" # -- General configuration --------------------------------------------------- @@ -32,17 +28,16 @@ # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. extensions = [ - 'sphinx.ext.autodoc', - 'nbsphinx', + "sphinx.ext.autodoc", + "nbsphinx", + "sphinx_rtd_theme", ] -if not on_rtd: - extensions.append('sphinx_rtd_theme') # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. # This pattern also affects html_static_path and html_extra_path. -exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] +exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] # -- Options for HTML output ------------------------------------------------- @@ -50,4 +45,4 @@ # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. # -html_theme = 'default' if on_rtd else 'sphinx_rtd_theme' +html_theme = "sphinx_rtd_theme" From 5095da4d233256635c1d71a9906ba628a39dcc9c Mon Sep 17 00:00:00 2001 From: Thomas VINCENT Date: Thu, 9 Nov 2023 16:06:23 +0100 Subject: [PATCH 2/2] Update copyright --- doc/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index 7ed8a464..81dddf52 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -18,9 +18,9 @@ project = "hdf5plugin" copyright = ( - "2016-2023, Data analysis unit, European Synchrotron Radiation Facility, Grenoble" + "2016-2023, European Synchrotron Radiation Facility, Grenoble" ) -author = "ESRF - Data Analysis Unit" +author = "ESRF" # -- General configuration ---------------------------------------------------