Switch to the Furo theme for the Slint Language and C++ documentation

This commit is contained in:
Simon Hausmann 2023-03-23 09:18:48 +01:00 committed by Simon Hausmann
parent 00471449b4
commit 4af7ea8ab7
8 changed files with 13 additions and 11 deletions

View file

@ -10,11 +10,12 @@ verify_ssl = true
[packages]
breathe = "4.33.1"
sphinx-rtd-theme = "1.0.0"
sphinx = "4.5.0"
exhale = "0.2.4"
myst_parser = "0.17.2"
sphinx-markdown-tables = "0.0.15"
furo = "2022.12.7"
sphinxcontrib-jquery = "4.1"
[requires]
python_version = "3"

View file

@ -1,6 +1,6 @@
{% extends "!layout.html" %}
{% extends "!base.html" %}
{% block scripts %}
{{ super() }}
{% include "../../../../docs/resources/slint-docs-preview.html" %}
{% include "../../../../docs/resources/slint-docs-highlight.html" %}
{% endblock %}
{% endblock %}

View file

@ -35,7 +35,7 @@ cpp_index_common_prefix = ["slint::", "slint::interpreter::"]
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = ["breathe", "myst_parser", "exhale", "sphinx_markdown_tables"]
extensions = ["breathe", "myst_parser", "exhale", "sphinx_markdown_tables", "sphinxcontrib.jquery"]
breathe_projects = {"Slint": "./docs/xml"}
breathe_default_project = "Slint"
@ -92,7 +92,7 @@ exclude_patterns = [
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = "sphinx_rtd_theme"
html_theme = "furo"
html_theme_options = {"collapse_navigation": False}