From 77ede874e1c2e24c70bd2812c47e1710771e3de5 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Thu, 24 Oct 2024 11:51:57 +0300 Subject: [PATCH] Align header left, add header icons and external links --- Doc/conf.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Doc/conf.py b/Doc/conf.py index b2f56d24aee733..304154c8d77253 100644 --- a/Doc/conf.py +++ b/Doc/conf.py @@ -338,9 +338,30 @@ # 'issues_url': '/bugs.html', # 'license_url': '/license.html', # 'root_include_title': False, # We use the version switcher instead. + "external_links": [ + {"name": "Discuss", "url": "https://discuss.python.org/"}, + {"name": "GitHub", "url": "https://github.com/python/cpython"}, + {"name": "Issues", "url": "https://github.com/python/cpython/issues"}, + {"name": "Developer's guide", "url": "devguide.python.org"}, + ], + "icon_links": [ + { + "name": "Discuss", + "url": "https://discuss.python.org/", + "icon": "fa-brands fa-discourse", + "type": "fontawesome", + }, + { + "name": "GitHub", + "url": "https://github.com/python/cpython", + "icon": "fa-brands fa-square-github", + "type": "fontawesome", + }, + ], "logo": { "text": f"Python {release}", }, + "navbar_align": "left", } html_logo = "https://devguide.python.org/_static/python-logo.svg"