diff --git a/docs/conf.py b/docs/conf.py index 593dc88cd..f7d2536fd 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -24,7 +24,7 @@ author = info["Author"] copyright = f"{datetime.now():%Y}, {author}" version = info["Version"] -# repository_url = f"https://github.com/scverse/{project_name}" +repository_url = f"https://github.com/scverse/{project_name}" # The full version, including alpha/beta/rc tags release = info["Version"] @@ -43,6 +43,7 @@ "conf_py_path": "/docs/", # Path in the checkout to the docs root } + # -- General configuration --------------------------------------------------- # Add any Sphinx extension module names here, as strings. @@ -100,6 +101,7 @@ source_suffix = { ".rst": "restructuredtext", + ".md": "myst-nb", ".ipynb": "myst-nb", ".myst": "myst-nb", } @@ -161,8 +163,11 @@ html_theme_options = { "navigation_with_keys": True, "show_toc_level": 4, - # "repository_url": repository_url, - # "use_repository_button": True, + "repository_url": repository_url, + "repository_branch": "main", + "path_to_docs": "docs", + "use_repository_button": True, + "use_edit_page_button": True, } pygments_style = "default"