From 22bb3aab4135e7159ebcd46740d1ad29a5350f5f Mon Sep 17 00:00:00 2001 From: Josh Date: Wed, 10 Sep 2025 08:03:42 -0400 Subject: [PATCH] docs: fix the 404/not found when using "Suggest edit" button Adds repository options to `html_theme_options` to link to in-use branch and path in the repository containing the docs. Fixes `Suggest edit` button link. Ref: https://sphinx-book-theme.readthedocs.io/en/latest/reference.html --- docs/conf.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index b7d6d49..29fbbce 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -27,6 +27,8 @@ html_theme_options = { "repository_url": "https://github.com/executablebooks/sphinx-togglebutton", + "path_to_docs": "docs", + "repository_branch": "master", "use_repository_button": True, "use_issues_button": True, "use_edit_page_button": True,