Skip to content

Commit af304ae

Browse files
committed
adapt doc to new format.
1 parent 9697971 commit af304ae

3 files changed

Lines changed: 9 additions & 11 deletions

File tree

docs/source/conf.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@
2121
copyright = f"2020, {author}"
2222
gh_user = "sfarrens"
2323

24-
# If your documentation needs a minimal Sphinx version, state it here.
25-
needs_sphinx = "3.3"
26-
2724
# Add any Sphinx extension module names here, as strings. They can be
2825
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
2926
# ones.
@@ -38,7 +35,7 @@
3835
"sphinx.ext.napoleon",
3936
"sphinx.ext.todo",
4037
"sphinx.ext.viewcode",
41-
"sphinxawesome_theme",
38+
"sphinxawesome_theme.highlighting",
4239
"sphinxcontrib.bibtex",
4340
"myst_parser",
4441
"nbsphinx",
@@ -103,7 +100,7 @@
103100
}
104101
html_collapsible_definitions = True
105102
html_awesome_headerlinks = True
106-
html_logo = "modopt_logo.jpg"
103+
html_logo = "modopt_logo.png"
107104
html_permalinks_icon = (
108105
'<svg xmlns="http://www.w3.org/2000/svg" '
109106
'viewBox="0 0 24 24">'
@@ -148,7 +145,7 @@
148145
# -- Options for Sphinx Gallery ----------------------------------------------
149146

150147
sphinx_gallery_conf = {
151-
"examples_dirs": ["../../modopt/examples/"],
148+
"examples_dirs": ["../../examples/"],
152149
"filename_pattern": "/example_",
153150
"ignore_pattern": r"/(__init__|conftest)\.py",
154151
}

examples/example_lasso_forward_backward.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@
132132
#
133133
# sphinx_gallery_start_ignore
134134
assert mse(fb_pogm.x_final, BETA_TRUE) < 1
135+
# sphinx_gallery_end_ignore
135136

136137
# %%
137138
# Comparing the Two algorithms

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ dependencies = ["numpy", "scipy", "tqdm", "importlib_metadata"]
1515

1616
[project.optional-dependencies]
1717
gpu=["torch", "ptwt"]
18-
doc=["myst-parser==0.16.1",
19-
"nbsphinx==0.8.7",
20-
"nbsphinx-link==1.3.0",
21-
"sphinx-gallery==0.11.1",
22-
"sphinxawesome-theme==3.2.1",
18+
doc=["myst-parser",
19+
"nbsphinx",
20+
"nbsphinx-link",
21+
"sphinx-gallery",
22+
"sphinxawesome-theme",
2323
"sphinxcontrib-bibtex"]
2424
dev=["black", "ruff"]
2525
test=["pytest<8.0.0", "pytest-cases", "pytest-cov", "pytest-xdist", "pytest-sugar"]

0 commit comments

Comments
 (0)