From c97880248f17a4421e872f5e8aadb74d4387d83c Mon Sep 17 00:00:00 2001 From: "Oriol (ProDesk)" Date: Fri, 9 May 2025 15:35:26 +0200 Subject: [PATCH 1/2] update theme --- examples/conf.py | 8 ++++++++ requirements-docs.txt | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/examples/conf.py b/examples/conf.py index aa6b194b..1d76b80d 100644 --- a/examples/conf.py +++ b/examples/conf.py @@ -83,6 +83,14 @@ def setup(app: Sphinx): "article_header_end": ["nb-badges"], "show_prev_next": True, "article_footer_items": ["rendered_citation.html"], + "search_bar_text": "Search within the PyMC example gallery...", + "icon_links": [ + { + "url": "https://github.com/pymc-devs/pymc-examples", + "icon": "fa-brands fa-github", + "name": "GitHub", + }, + ], } version = version if "." in rtd_version else "main" doi_code = os.environ.get("DOI_READTHEDOCS", "10.5281/zenodo.5654871") diff --git a/requirements-docs.txt b/requirements-docs.txt index 68398627..428b6bdf 100644 --- a/requirements-docs.txt +++ b/requirements-docs.txt @@ -3,7 +3,7 @@ matplotlib myst-nb sphinx-codeautolink sphinx>=5 -pymc-sphinx-theme +git+https://github.com/pymc-devs/pymc-sphinx-theme@test_016 sphinx-copybutton sphinx-design sphinx-notfound-page From 73dadb32d614fa1d4e70c044b556bd46216cdf69 Mon Sep 17 00:00:00 2001 From: "Oriol (ProDesk)" Date: Mon, 12 May 2025 16:23:09 +0200 Subject: [PATCH 2/2] configure search and use pypi release --- .readthedocs.yml | 21 +++++++++++++++++++++ requirements-docs.txt | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index f5071353..699fbe93 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -11,3 +11,24 @@ build: python: install: - requirements: requirements-docs.txt + +search: + ranking: + _sources/*: -10 + genindex.html: -9 + blog/tag/*: -2 + blog/category/*: -3 + blog/author/*: -5 + blog/20[0-9].html: -5 + blog/archive.html: -5 + blog/author.html: -5 + blog/category.html: -5 + blog/drafts.html: -5 + blog/tag.html: -5 + blog.html: -5 + object_index/*: -1 + + ignore: + - 404.html + - search.html + - index.html diff --git a/requirements-docs.txt b/requirements-docs.txt index 428b6bdf..817b556b 100644 --- a/requirements-docs.txt +++ b/requirements-docs.txt @@ -3,7 +3,7 @@ matplotlib myst-nb sphinx-codeautolink sphinx>=5 -git+https://github.com/pymc-devs/pymc-sphinx-theme@test_016 +pymc-sphinx-theme>=0.16 sphinx-copybutton sphinx-design sphinx-notfound-page