|
14 | 14 |
|
15 | 15 | import os
|
16 | 16 | import sys
|
| 17 | +from typing import Any, Dict |
17 | 18 |
|
18 | 19 |
|
19 | 20 | sys.path.insert(0, os.path.abspath("../../cyclops"))
|
|
22 | 23 | # -- Project information -----------------------------------------------------
|
23 | 24 |
|
24 | 25 | project = "cyclops"
|
25 |
| -copyright = "2023, Vector AI Engineering" # noqa: A001 |
| 26 | +copyright = "2024, Vector AI Engineering" # noqa: A001 |
26 | 27 | author = "Vector AI Engineering"
|
27 | 28 |
|
28 | 29 |
|
|
40 | 41 | "sphinx.ext.autosummary",
|
41 | 42 | "sphinx.ext.viewcode",
|
42 | 43 | "sphinx.ext.intersphinx",
|
| 44 | + "sphinx.ext.autosectionlabel", |
43 | 45 | "sphinx_autodoc_typehints",
|
| 46 | + "sphinxcontrib.apidoc", |
44 | 47 | "myst_parser",
|
| 48 | + "sphinx_design", |
45 | 49 | "sphinx_copybutton",
|
46 | 50 | "nbsphinx",
|
47 | 51 | "IPython.sphinxext.ipython_console_highlighting",
|
|
59 | 63 | copybutton_prompt_text = r">>> |\.\.\. "
|
60 | 64 | copybutton_prompt_is_regexp = True
|
61 | 65 |
|
62 |
| -html_theme_options = { |
63 |
| - "collapse_navigation": False, |
64 |
| - "sticky_navigation": True, |
65 |
| - "navigation_depth": 4, |
66 |
| - "includehidden": True, |
67 |
| - "titles_only": False, |
68 |
| -} |
69 |
| - |
70 | 66 | intersphinx_mapping = {
|
71 | 67 | "python": ("https://docs.python.org/3.9/", None),
|
72 | 68 | "numpy": ("http://docs.scipy.org/doc/numpy/", None),
|
|
92 | 88 | # The theme to use for HTML and HTML Help pages. See the documentation for
|
93 | 89 | # a list of builtin themes.
|
94 | 90 | #
|
95 |
| -html_theme = "sphinx_book_theme" |
| 91 | +html_theme = "furo" |
96 | 92 |
|
97 | 93 | # Add any paths that contain custom static files (such as style sheets) here,
|
98 | 94 | # relative to this directory. They are copied after the builtin static files,
|
|
101 | 97 | html_css_files = ["css/cyclops.css"]
|
102 | 98 | html_logo = "_static/cyclops_logo-dark.png"
|
103 | 99 | html_favicon = "_static/favicon.ico"
|
104 |
| -html_theme_options = { |
105 |
| - "logo": { # type: ignore |
106 |
| - "text": "cyclops documentation", |
107 |
| - "image_light": "_static/cyclops_logo-dark.png", |
108 |
| - "image_dark": "_static/cyclops_logo-dark.png", |
| 100 | +html_theme_options: Dict[str, Any] = { |
| 101 | + "sidebar_hide_name": True, |
| 102 | + "dark_css_variables": { |
| 103 | + "color-brand-primary": "#faad1a", |
| 104 | + "color-brand-content": "#eb088a", |
| 105 | + "color-foreground-secondary": "#52c7de", |
| 106 | + "color-card-background": "#3b0e28", |
| 107 | + }, |
| 108 | + "light_css_variables": { |
| 109 | + "color-card-background": "#5e88f2", |
109 | 110 | },
|
| 111 | + "footer_icons": [ |
| 112 | + { |
| 113 | + "name": "GitHub", |
| 114 | + "url": "https://github.com/VectorInstitute/cyclops", |
| 115 | + "html": """ |
| 116 | + <svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 16 16"> |
| 117 | + <path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"></path> |
| 118 | + </svg> |
| 119 | + """, |
| 120 | + "class": "", |
| 121 | + }, |
| 122 | + ], |
110 | 123 | }
|
| 124 | +html_additional_pages = {"page": "page.html"} |
0 commit comments