From a1bdbab36cda01a15d712cd3b20ba334163f4642 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Wed, 17 Jul 2024 12:17:43 -0400 Subject: [PATCH] docs: link back to source (#230) * docs: link back to source * Update conf.py --- docs/conf.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index 66fc40a..63bff7a 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,8 +1,11 @@ +from __future__ import annotations + import importlib import importlib.metadata import inspect import os from pathlib import Path +from typing import Any import repo_review @@ -39,6 +42,24 @@ html_theme = "furo" +html_theme_options: dict[str, Any] = { + "footer_icons": [ + { + "name": "GitHub", + "url": "https://github.com/scientific-python/repo-review", + "html": """ + + + + """, + "class": "", + }, + ], + "source_repository": "https://github.com/scientific-python/repo-review/", + "source_branch": "main", + "source_directory": "docs/", +} + myst_enable_extensions = [ "colon_fence", "deflist",