From c5e97b21b655f73a77cee3d857bc4413303a831f Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Mon, 24 Jul 2023 01:11:28 +0100 Subject: [PATCH] Add icons to documentation --- Documentation/conf.py | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/Documentation/conf.py b/Documentation/conf.py index 9b6c6e166..acfb5c2b9 100644 --- a/Documentation/conf.py +++ b/Documentation/conf.py @@ -58,6 +58,36 @@ # HTML writer configuration html_theme = "pydata_sphinx_theme" +html_theme_options = { + "icon_links": [ + { + "name": "GitHub", + "url": "https://github.com/Econ-ARK/HARK", + "icon": "fa-brands fa-square-github", + "type": "fontawesome", + }, + { + "name": "Twitter", + "url": "https://twitter.com/econ_ark", + "icon": "fa-brands fa-square-twitter", + "type": "fontawesome", + }, + { + "name": "PyPI", + "url": "https://pypi.org/project/econ-ark/", + "icon": "fa-solid fa-box", + "type": "fontawesome", + }, + { + "name": "Econ-ARK", + "url": "https://econ-ark.org", + "icon": "_static/econ-ark-logo.png", + "type": "local", + "attributes": {"target": "_blank"}, + }, + ] +} + # Use Econ-ARK URL to host the website html_baseurl = "https://docs.econ-ark.org"