Skip to content

Commit fa7d5e8

Browse files
committed
📝 Update documentation structure
- Remove usage.rst - Rename Jupyter Notebooks to Usage Examples - Show README for Usage Examples instead of TOC. - Reduce TOC depth for basic functionalities and pipelines
1 parent f99da08 commit fa7d5e8

File tree

6 files changed

+4
-146
lines changed

6 files changed

+4
-146
lines changed

docs/basic_functionalities.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Basic Functionalities
22
*********************
33

44
.. toctree::
5-
:maxdepth: 2
5+
:maxdepth: 1
66
:glob:
77

88
_notebooks/jnb/*

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2016,8 +2016,8 @@ def all_but_ipynb(dir_path, contents):
20162016
# Replace the target string
20172017
file_data = file_data.replace(".rst", ".html")
20182018
file_data = file_data.replace(".ipynb", ".html")
2019-
file_data = file_data.replace("../docs/", "../")
20202019
file_data = file_data.replace("](./", "](./jnb/")
2020+
file_data = file_data.replace("../docs/", "./")
20212021

20222022
# Write the file out again
20232023
with open("_notebooks/README.md", "w") as file:

docs/index.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ Welcome to TIA Toolbox's documentation!
99

1010
Readme <readme.rst>
1111
Installation <installation.rst>
12-
Usage <usage.rst>
1312
Pre-trained Models <pretrained.rst>
14-
Jupyter Notebooks <notebooks.rst>
13+
Usage Examples <notebooks.rst>
1514
Algorithms <algorithms.rst>
1615
Visualization <visualization.rst>
1716
API Reference <_autosummary/tiatoolbox>

docs/jnb_pipelines.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Pipelines
22
*********
33

44
.. toctree::
5-
:maxdepth: 2
5+
:maxdepth: 1
66
:glob:
77

88
_notebooks/jnb/inference-pipelines/*

docs/notebooks.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,16 @@ Jupyter Notebooks
44
.. include:: _notebooks/README.md
55
:parser: myst_parser.sphinx_
66

7-
.. toctree::
8-
:maxdepth: 1
9-
10-
_notebooks/README.md
11-
127
|
138
149
.. toctree::
1510
:maxdepth: 2
16-
:glob:
1711

1812
Basic Functionalities <basic_functionalities.rst>
1913

2014
|
2115
2216
.. toctree::
2317
:maxdepth: 2
24-
:glob:
2518

2619
Pipelines <jnb_pipelines.rst>

docs/usage.rst

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

0 commit comments

Comments
 (0)