From a64495966018160cb986af46d8219efa76ee8bd2 Mon Sep 17 00:00:00 2001 From: Yuta Nagano <52748151+yutanagano@users.noreply.github.com> Date: Sun, 9 Jun 2024 21:18:37 +0100 Subject: [PATCH] Add links to repository in sphinx documentation --- docs/conf.py | 6 ++++++ pyproject.toml | 2 ++ 2 files changed, 8 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index f1d36a2..6b2f58f 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -26,4 +26,10 @@ # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output html_theme = "sphinx_book_theme" +html_theme_options = { + "repository_url": "https://github.com/yutanagano/sceptr", + "path_to_docs": "docs", + "use_repository_button": True, + "use_issues_button": True, +} html_static_path = ["_static"] diff --git a/pyproject.toml b/pyproject.toml index 5654f14..31446a8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,6 +31,8 @@ dependencies = [ dynamic = ["version"] [project.urls] +Homepage = "https://sceptr.readthedocs.io" +Documentation = "https://sceptr.readthedocs.io" Repository = "https://github.com/yutanagano/sceptr" Issues = "https://github.com/yutanagano/sceptr/issues"