Skip to content

Commit

Permalink
fix deprecated theme config options
Browse files Browse the repository at this point in the history
- multiple favicons was moved into external sphinx_favicon extension
- footer_items was split into _start, _center, and _end. _start is by
  default what we had configured:
  'copyright', 'sphinx_version'

Change-Id: Ibb238c04deedf198de680f8483288eab63c85b64
  • Loading branch information
Alexander Zaft committed Oct 16, 2024
1 parent c8397b3 commit c49fe10
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 19 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
pydata-sphinx-theme
sphinx_design
sphinx_favicon
40 changes: 21 additions & 19 deletions source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
'sphinx.ext.todo',
'sphinx.ext.extlinks',
'sphinx_design',
'sphinx_favicon',
]

todo_include_todos = True
Expand Down Expand Up @@ -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": "<em>Important</em> announcement!",
'header_links_before_dropdown': 4,
# links with icons to the right of the search icon:
Expand All @@ -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
Expand Down

0 comments on commit c49fe10

Please sign in to comment.