From c5730400f7d48adf74c960ac6b5b2fd38f13e051 Mon Sep 17 00:00:00 2001 From: Etienne de Montalivet Date: Wed, 3 Jan 2024 10:30:41 +0100 Subject: [PATCH] doc: add github icon in navbar --- docs/source/conf.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 89825a0..21ca337 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -3,16 +3,16 @@ # For the full list of built-in configuration values, see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html +import os + # -- Project information ----------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information import sys -import os sys.path.insert(0, os.path.abspath("../..")) from micromed_io import __version__ - project = "Micromed IO" copyright = "2023, Love only" author = "Etienne de Montalivet" @@ -69,6 +69,17 @@ # html_theme = "pydata_sphinx_theme" +html_theme_options = { + "icon_links": [ + { + "name": "GitHub", + "url": "https://github.com/etiennedemontalivet/micromed-io", + "icon": "fa-brands fa-github", + "type": "fontawesome", + }, + ], +} + # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css".