Skip to content

Commit 027c085

Browse files
committed
Use furo sphinx theme in line with aieng-template
1 parent 72ac99a commit 027c085

File tree

7 files changed

+1905
-1656
lines changed

7 files changed

+1905
-1656
lines changed

docs/source/_static/css/cyclops.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ footer span.commit code,
1010
font-family: 'IBM Plex Mono', monospace;
1111
font-size: 0.8rem;
1212
}
13-
1413
footer {
1514
color: var(--text-color);
1615
}

docs/source/_templates/sections/footer.html

Lines changed: 0 additions & 26 deletions
This file was deleted.

docs/source/conf.py

Lines changed: 29 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
import os
1616
import sys
17+
from typing import Any, Dict
1718

1819

1920
sys.path.insert(0, os.path.abspath("../../cyclops"))
@@ -22,7 +23,7 @@
2223
# -- Project information -----------------------------------------------------
2324

2425
project = "cyclops"
25-
copyright = "2023, Vector AI Engineering" # noqa: A001
26+
copyright = "2024, Vector AI Engineering" # noqa: A001
2627
author = "Vector AI Engineering"
2728

2829

@@ -40,8 +41,11 @@
4041
"sphinx.ext.autosummary",
4142
"sphinx.ext.viewcode",
4243
"sphinx.ext.intersphinx",
44+
"sphinx.ext.autosectionlabel",
4345
"sphinx_autodoc_typehints",
46+
"sphinxcontrib.apidoc",
4447
"myst_parser",
48+
"sphinx_design",
4549
"sphinx_copybutton",
4650
"nbsphinx",
4751
"IPython.sphinxext.ipython_console_highlighting",
@@ -59,14 +63,6 @@
5963
copybutton_prompt_text = r">>> |\.\.\. "
6064
copybutton_prompt_is_regexp = True
6165

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-
7066
intersphinx_mapping = {
7167
"python": ("https://docs.python.org/3.9/", None),
7268
"numpy": ("http://docs.scipy.org/doc/numpy/", None),
@@ -92,7 +88,7 @@
9288
# The theme to use for HTML and HTML Help pages. See the documentation for
9389
# a list of builtin themes.
9490
#
95-
html_theme = "sphinx_book_theme"
91+
html_theme = "furo"
9692

9793
# Add any paths that contain custom static files (such as style sheets) here,
9894
# relative to this directory. They are copied after the builtin static files,
@@ -101,10 +97,28 @@
10197
html_css_files = ["css/cyclops.css"]
10298
html_logo = "_static/cyclops_logo-dark.png"
10399
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",
109110
},
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+
],
110123
}
124+
html_additional_pages = {"page": "page.html"}

docs/source/index.rst

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,27 @@
1-
Welcome to cyclops's documentation!
2-
===================================
1+
What is CyclOps?
2+
================
33

4+
CyclOps is an open-source toolkit for scientists, engineers, and clinicians working
5+
in the intersection of artificial intelligence and health.
6+
7+
The toolkit is designed to help researchers and practitioners to adopt
8+
`Vector Institute's AI trust and safety principles <https://vectorinstitute.ai/ai-trust-and-safety-principles/>`__. Specifically, the toolkit focuses on evaluation and monitoring of AI systems
9+
developed for clinical applications where robustness, safety, and fairness are critical.
10+
11+
The primary goal of CyclOps is to improve transparency, accountability, and trust in
12+
AI systems that are developed for clinical applications.
13+
14+
Quick Start
15+
^^^^^^^^^^^
16+
17+
.. card:: Heart Failure Prediction
18+
:link: https://vectorinstitute.github.io/cyclops/api/tutorials/kaggle/heart_failure_prediction.html
19+
20+
Example use case showing how to use CyclOps to evaluate a heart failure
21+
prediction model and monitor its performance over time
422

523
.. toctree::
624
:maxdepth: 2
7-
:caption: Contents:
825

926
user_guide
1027
tutorials

docs/source/reference/api/cyclops.data.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ cyclops.data
1313
:template: custom-module-template.rst
1414

1515
slicer
16+
aggregate
1617

1718

1819
cyclops.data.features

0 commit comments

Comments
 (0)