Skip to content

Commit 4870aa3

Browse files
refactor
Signed-off-by: Ashwin Vaidya <[email protected]>
1 parent 3c4ad6c commit 4870aa3

File tree

10 files changed

+66
-11
lines changed

10 files changed

+66
-11
lines changed

docs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ nbsphinx
33
pandoc
44
sphinx
55
sphinx_autodoc_typehints
6-
sphinx_book_theme
6+
pydata-sphinx-theme
77
sphinx-copybutton
88
sphinx_design
99
breathe

docs/source/conf.py

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,28 @@
5151
# -- Options for HTML output -------------------------------------------------
5252
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
5353

54-
html_theme = "sphinx_book_theme"
54+
html_theme = "pydata_sphinx_theme"
5555
html_static_path = ['_static']
5656

5757
breathe_projects = {"InferenceSDK": Path(__file__).parent.parent/"build_cpp"/ "xml"}
5858
breathe_default_project = "InferenceSDK"
5959
breathe_default_members = ('members', 'undoc-members', 'private-members')
60+
61+
autodoc_docstring_signature = True
62+
autodoc_member_order = "bysource"
63+
intersphinx_mapping = {
64+
"python": ("https://docs.python.org/3", None),
65+
"numpy": ("https://numpy.org/doc/stable/", None),
66+
}
67+
autodoc_member_order = "groupwise"
68+
autodoc_default_options = {
69+
"members": True,
70+
"methods": True,
71+
"special-members": "__call__",
72+
"exclude-members": "_abc_impl",
73+
"show-inheritance": True,
74+
}
75+
76+
autoclass_content = "both"
77+
78+
autosummary_generate = True # Turn on sphinx.ext.autosummary

docs/source/cpp/adapters/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Adapters
1+
# Adapters
22

33
```{eval-rst}
44
.. doxygenclass:: InferenceAdapter

docs/source/guides/index.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Guides
2+
3+
```{toctree}
4+
:caption: Guides
5+
:hidden:
6+
7+
./model-configuration
8+
./releasing-to-PyPI
9+
```
File renamed without changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Releasing to PyPI
2+
13
```bash
24
py -m pip install --upgrade build
35
# Remove master omz_tools. Will use one from openvino-dev
@@ -7,4 +9,5 @@ py -m twine upload --username __token__ model_api/python/dist/*
79
git tag X.Y.Z
810
git push upstream X.Y.Z
911
```
12+
1013
Pull request to increment `version` in `pyproject.toml` for the next release.

docs/source/index.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,19 @@ Pipelines description[todo]
7676
:caption: Python Reference
7777
:hidden:
7878
79-
python/index
79+
./python/index
8080
```
8181

8282
```{toctree}
8383
:caption: C++ Reference
8484
:hidden:
8585
86-
cpp/index
86+
./cpp/index
87+
```
88+
89+
```{toctree}
90+
:caption: Developer Guides
91+
:hidden:
92+
93+
./guides/index
8794
```

docs/source/python/adapters/index.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,14 @@
3737
:::
3838

3939
::::
40+
41+
```{toctree}
42+
:caption: Adapters
43+
:hidden:
44+
45+
./inference_adapter
46+
./onnx_adapter
47+
./openvino_adapter
48+
./ovms_adapter
49+
./utils
50+
```

docs/source/python/index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ Tilers description[todo]
3535
::::
3636

3737
```{toctree}
38-
:caption: Python Reference
38+
:caption: Python API Reference
3939
:hidden:
4040
41-
adapters/index
42-
models/index
43-
pipelines/index
44-
tilers/index
45-
```
41+
./adapters/index
42+
./models/index
43+
./pipelines/index
44+
./tilers/index
45+
```

docs/source/python/tilers/index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Tilers
22

3+
::::{grid} 1 2 2 3
4+
:margin: 1 1 0 0
5+
:gutter: 1
6+
37
:::{grid-item-card} Semantic Segmentation
48
:link: ./semantic_segmentation
59
:link-type: doc
@@ -28,6 +32,8 @@
2832
[todo]
2933
:::
3034

35+
::::
36+
3137
```{toctree}
3238
:caption: Tilers
3339
:hidden:

0 commit comments

Comments
 (0)