From 79e076fba113ad4dd7bb6de03c2ae4f6baf71649 Mon Sep 17 00:00:00 2001 From: "Oriol (ProDesk)" Date: Fri, 9 May 2025 15:20:25 +0200 Subject: [PATCH 1/3] try updated theme --- conda-envs/environment-docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conda-envs/environment-docs.yml b/conda-envs/environment-docs.yml index 339f3c73e9..c353adf5ee 100644 --- a/conda-envs/environment-docs.yml +++ b/conda-envs/environment-docs.yml @@ -26,7 +26,6 @@ dependencies: - numpydoc - polyagamma - pre-commit>=2.8.0 -- pymc-sphinx-theme==0.14 - sphinx-copybutton - sphinx-design - sphinx-notfound-page @@ -37,3 +36,4 @@ dependencies: - sphinx-remove-toctrees - pip: - numdifftools>=0.9.40 + - git+https://github.com/pymc-devs/pymc-sphinx-theme@test_016 From 0f2168ad1ff1c7be8438a1f5669a727d39617bf2 Mon Sep 17 00:00:00 2001 From: "Oriol (ProDesk)" Date: Fri, 9 May 2025 15:26:24 +0200 Subject: [PATCH 2/3] updates to conf.py --- docs/source/conf.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/source/conf.py b/docs/source/conf.py index b9afc12e73..5b1ec74400 100755 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -351,6 +351,14 @@ def setup(app): "logo": { "link": "https://www.pymc.io", }, + "search_bar_text": "Search within PyMC library docs...", + "icon_links": [ + { + "url": "https://github.com/pymc-devs/pymc", + "icon": "fa-brands fa-github", + "name": "GitHub", + }, + ], } html_context = { "github_user": "pymc-devs", From 4c8bd1b67bf0d085ada53c4a0b48fe0ac6e70a44 Mon Sep 17 00:00:00 2001 From: "Oriol (ProDesk)" Date: Mon, 12 May 2025 19:54:06 +0200 Subject: [PATCH 3/3] configure search and use conda-forge release --- .readthedocs.yml | 13 +++++++++++++ conda-envs/environment-docs.yml | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index 5f9622efa4..1d2a2836af 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -15,3 +15,16 @@ build: os: "ubuntu-22.04" tools: python: "mambaforge-4.10" + +search: + ranking: + _sources/*: -10 + _modules/*: -5 + genindex.html: -9 + '*__init__.html': -3 + '*dist.html': -3 + + ignore: + - 404.html + - search.html + - index.html diff --git a/conda-envs/environment-docs.yml b/conda-envs/environment-docs.yml index c353adf5ee..34f648b0f3 100644 --- a/conda-envs/environment-docs.yml +++ b/conda-envs/environment-docs.yml @@ -26,6 +26,7 @@ dependencies: - numpydoc - polyagamma - pre-commit>=2.8.0 +- pymc-sphinx-theme>=0.16 - sphinx-copybutton - sphinx-design - sphinx-notfound-page @@ -36,4 +37,3 @@ dependencies: - sphinx-remove-toctrees - pip: - numdifftools>=0.9.40 - - git+https://github.com/pymc-devs/pymc-sphinx-theme@test_016