"""Sphinx configuration file for sphinx-favicon documentation.""" # -- imports and read config --------------------------------------------------- import datetime as dt from importlib import metadata try: release_version = metadata.version("sphinx-favicon") except metadata.PackageNotFoundError: release_version = "unknown-dev" year = dt.datetime.now().year # -- Project information ------------------------------------------------------- project = "Sphinx Favicon" copyright = f"{year}, Timo Metzger" author = "Timo Metzger" release = release_version # -- General configuration ----------------------------------------------------- extensions = [ "sphinx.ext.autosectionlabel", "sphinx_favicon", "sphinx_copybutton", "sphinx_design", ] source_suffix = [".rst", ".md"] templates_path = ["_templates"] exclude_patterns = ["Thumbs.db", ".DS_Store", "**.ipynb_checkpoints"] # -- Options for HTML output --------------------------------------------------- html_theme = "pydata_sphinx_theme" html_static_path = ["_static"] html_css_files = ["custom.css"] html_context = { "display_github": True, "github_user": "tcmetzger", "github_repo": "sphinx-favicon", "github_version": "main/docs/source/", } # -- Options for the html theme ------------------------------------------------ html_theme_options = { "icon_links": [ { "name": "GitHub", "url": "https://github.com/tcmetzger/sphinx-favicon", "icon": "fa-brands fa-github", }, { "name": "PyPi", "url": "https://pypi.org/project/sphinx-favicon/", "icon": "fa-brands fa-python", }, ], "logo": {"text": project}, "use_edit_page_button": True, "announcement": ( "
Between v0.2 and v1.0, the module name of the extension changed to better "
"conform with Python standards. Please update the name used in the extension "
'list of your '
'conf.py from '
'sphinx-favicon to '
''
"sphinx_favicon!