From 33df121b0ef7ab4539bfb3a5676099b47ce357ee Mon Sep 17 00:00:00 2001 From: Ben Dichter Date: Sun, 10 Mar 2024 18:45:27 -0400 Subject: [PATCH] docs: add html_theme_options (#651) Co-authored-by: Cody Baker <51133164+CodyCBakerPhD@users.noreply.github.com> --- docs/conf.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index 4e6207d17..c2ab76e33 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -66,6 +66,26 @@ } add_module_names = False +html_theme_options = { + "use_edit_page_button": True, + "icon_links": [ + { + "name": "GitHub", + "url": "https://github.com/NeurodataWithoutBorders/nwb-guide", + "icon": "fa-brands fa-github", + "type": "fontawesome", + }, + ], +} + +html_context = { + # "github_url": "https://github.com", # or your GitHub Enterprise site + "github_user": "NeurodataWithoutBorders", + "github_repo": "nwb-guide", + "github_version": "main", + "doc_path": "docs", +} + def _correct_signatures(app, what, name, obj, options, signature, return_annotation): if what == "class":