diff --git a/docs/conf.py b/docs/conf.py index bf2e67851debe1e8faa6281763df4208ced90c8e..3f5eca76650454cdc398b51dd8a78484621aa285 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -84,13 +84,25 @@ pygments_style = None # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. # -html_theme = "sphinx_materialdesign_theme" +html_theme = "sphinx_material" + +html_favicon = "../aleksis/core/static/img/aleksis-icon.png" +html_logo = "../aleksis/core/static/img/aleksis-banner.svg" # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the # documentation. # -# html_theme_options = {} +html_theme_options = { + "repo_url": f"https://edugit.org/AlekSIS/official/{project}", + "repo_name": "EduGit", + "repo_type": "gitlab", + "theme_color": "#0d5eaf", + "color_primary": "#0d5eaf", + "color_accent": "#0d5eaf", + "globaltoc_depth": 2, + "globaltoc_collapse": False, +} # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, @@ -105,7 +117,9 @@ html_static_path = ["_static"] # default: ``['localtoc.html', 'relations.html', 'sourcelink.html', # 'searchbox.html']``. # -# html_sidebars = {} +html_sidebars = { + "**": ["logo-text.html", "globaltoc.html", "localtoc.html", "searchbox.html"] +} # -- Options for HTMLHelp output --------------------------------------------- diff --git a/pyproject.toml b/pyproject.toml index c611262475498db1ef697f62b9c6944ccffda51e..41cef702cecaf310a055c5f8998997b45e47b1f2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -133,7 +133,7 @@ s3 = ["boto3", "django-storages"] sentry = ["sentry-sdk"] [tool.poetry.dev-dependencies] -aleksis-builddeps = "^5" +aleksis-builddeps = "^6" uwsgi = "^2.0" [tool.poetry.scripts]