diff --git a/demo-project/pyproject.toml b/demo-project/pyproject.toml index 0be0a5449b..ec7bd06726 100644 --- a/demo-project/pyproject.toml +++ b/demo-project/pyproject.toml @@ -15,3 +15,8 @@ known_third_party = "kedro" addopts = """ --cov-report term-missing \ --cov src/demo_project -ra""" + +docs = [ + "kedro-sphinx-theme", + "sphinx-favicon", +] \ No newline at end of file diff --git a/docs/source/conf.py b/docs/source/conf.py index 7a21f6e72e..76de4d09ca 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -41,8 +41,12 @@ "myst_parser", "notfound.extension", "sphinxcontrib.jquery", + 'sphinx_favicon', ] +favicons = [ + "https://kedro.org/images/favicon.ico", +] # Add any paths that contain templates here, relative to this directory. templates_path = ["_templates"] @@ -57,6 +61,7 @@ "kedro-datasets": ("https://docs.kedro.org/projects/kedro-datasets/en/kedro-datasets-3.0.0/", None), } + # -- Options for HTML output ------------------------------------------------- # The theme to use for HTML and HTML Help pages. See the documentation for @@ -78,7 +83,6 @@ "github_url": "https://github.com/kedro-org/kedro/tree/main/docs/source", } - def _override_permalinks_icon(app): # https://github.com/readthedocs/sphinx_rtd_theme/issues/98#issuecomment-1503211439 app.config.html_permalinks_icon = "ΒΆ" @@ -86,4 +90,4 @@ def _override_permalinks_icon(app): def setup(app): app.connect("builder-inited", _override_permalinks_icon) - + \ No newline at end of file diff --git a/package/setup.py b/package/setup.py index e04cda700f..091248c57e 100644 --- a/package/setup.py +++ b/package/setup.py @@ -52,10 +52,11 @@ }, extras_require={ "docs": [ - "kedro-sphinx-theme==2024.4.0", + "kedro-sphinx-theme @ git+https://github.com/kedro-org/kedro-sphinx-theme.git@fix-favicon", ], "aws": ["s3fs>=2021.4"], "azure": ["adlfs>=2021.4"], "gcp": ["gcsfs>=2021.4"], }, ) +