diff --git a/requirements.txt b/requirements.txt index 0b0afd2..a0c9a35 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ pydata-sphinx-theme sphinx_design +sphinx_favicon diff --git a/source/conf.py b/source/conf.py index a93eb94..11d042b 100644 --- a/source/conf.py +++ b/source/conf.py @@ -43,6 +43,7 @@ 'sphinx.ext.todo', 'sphinx.ext.extlinks', 'sphinx_design', + 'sphinx_favicon', ] todo_include_todos = True @@ -83,26 +84,7 @@ 'image_light': 'logo.svg', 'image_dark': 'logo.svg', }, - 'footer_items': ['copyright'], 'secondary_sidebar_items': ['page-toc', 'sourcelink'], - 'favicons': [ - { - 'rel': 'icon', - 'sizes': '16x16', - 'href': 'favicon16.png', - }, - { - 'rel': 'icon', - 'sizes': '32x32', - 'href': 'favicon32.png', - }, - { - 'rel': 'apple-touch-icon', - 'sizes': '180x180', - 'href': 'favicon.png', - 'color': '#000000', - }, - ], #"announcement": "Important announcement!", 'header_links_before_dropdown': 4, # links with icons to the right of the search icon: @@ -117,6 +99,26 @@ html_static_path = ['_static'] +favicons = [ + { + 'rel': 'icon', + 'sizes': '16x16', + 'href': 'favicon16.png', + }, + { + 'rel': 'icon', + 'sizes': '32x32', + 'href': 'favicon32.png', + }, + { + 'rel': 'apple-touch-icon', + 'sizes': '180x180', + 'href': 'favicon.png', + 'color': '#000000', + }, +] + + class SECoPLexer(RegexLexer): name = 'secop' flags = re.MULTILINE