Skip to content

Commit 1404c10

Browse files
committed
docs: improve documentation structure
1 parent 5ff0550 commit 1404c10

File tree

15 files changed

+232
-205
lines changed

15 files changed

+232
-205
lines changed

docs/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
copyright = "2023, Jermiah Joseph"
1616
author = "Jermiah Joseph"
1717

18+
import nbiatoolkit
19+
20+
# The full version, including alpha/beta/rc tags
21+
release: str = nbiatoolkit.__version__
22+
1823
# -- General configuration ---------------------------------------------------
1924

2025
# Add any Sphinx extension module names here, as strings. They can be
@@ -28,6 +33,7 @@
2833
"sphinx.ext.viewcode",
2934
"sphinx_tabs.tabs",
3035
"sphinx_exec_code",
36+
"sphinx.ext.autosectionlabel",
3137
]
3238
autoapi_dirs = ["../src/nbiatoolkit"]
3339

docs/tutorial_files/1_InitializeClient.rst renamed to docs/getting_started/InitializeClient.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ If you would like to return the data as a pandas DataFrame, you can pass the
118118
Feel free to open an issue on the GitHub repository if you would like to see this feature added.
119119

120120

121-
Alternatively, you can set the return type for all methods by passing the `return_type` argument to the NBIAClient class.
121+
Alternatively, you can set the return type for all methods by passing the `return_type` argument when
122+
initializing the NBIAClient class.
122123

123124
.. tabs::
124125

@@ -141,7 +142,8 @@ Alternatively, you can set the return type for all methods by passing the `retur
141142

142143
Logging
143144
^^^^^^^
144-
The client can be initialized with a log level to control the verbosity of the logs. This is primarily intended for debugging and development purposes.
145+
The client can be initialized with a log level to control the verbosity of the logs. This is primarily
146+
intended for debugging and development purposes.
145147
The default log level is 'INFO' and the available log levels are `DEBUG`, `INFO`, `WARNING`, `ERROR`.
146148

147149
.. tabs::
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
Installation
2+
____________
3+
4+
`nbiatoolkit` is currently under development and is not guaranteed to be stable.
5+
Please refer to the `1.0.0 Stable Release Milestone <https://github.com/jjjermiah/nbia-toolkit/milestone/1>`_
6+
for the roadmap to the first stable release.
7+
8+
PyPi Installation
9+
~~~~~~~~~~~~~~~~~
10+
11+
The easiest way to install `nbiatoolkit` is to use `pip` to install it from the
12+
`Python Package Index (PyPi) <https://pypi.org/project/nbiatoolkit/>`_.
13+
14+
.. code-block:: console
15+
16+
$ pip install nbiatoolkit
17+
18+
***NOTE: It is recommended that you install the package in a conda or virtual environment.***
19+
20+
Conda Installation
21+
~~~~~~~~~~~~~~~~~~
22+
23+
Though the package is not available on conda, you can create a conda environment and install the package using pip:
24+
25+
.. code-block:: console
26+
27+
$ conda create -n nbia python=3.12
28+
$ conda activate nbia
29+
$ pip install nbiatoolkit
30+
31+
Virtual Environment Installation
32+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33+
34+
If you prefer to use a virtual environment, you can create one and install the package using pip:
35+
36+
.. code-block:: console
37+
38+
$ python3 -m venv nbia
39+
$ source nbia/bin/activate
40+
$ pip install nbiatoolkit
File renamed without changes.
File renamed without changes.

docs/index.md

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

docs/index.rst

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
.. include:: ../README.md
2+
:parser: myst_parser.sphinx_
3+
4+
.. toctree::
5+
:caption: Getting started
6+
:name: getting-started
7+
:hidden:
8+
:maxdepth: 2
9+
10+
getting_started/NBIA.md
11+
getting_started/Installation.rst
12+
getting_started/InitializeClient.rst
13+
getting_started/logger.rst
14+
15+
.. toctree::
16+
:caption: Querying API
17+
:name: querying-api
18+
:hidden:
19+
:maxdepth: 2
20+
21+
querying_api/ExploringCollections.rst
22+
querying_api/ExploringModalities.rst
23+
24+
.. toctree::
25+
:caption: Project Info
26+
:name: project-info
27+
:hidden:
28+
:maxdepth: 2
29+
30+
project_info/CONTRIBUTING.md
31+
project_info/CHANGELOG.md
32+
project_info/CONDUCT.md

docs/markdowns/Installation.md

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

docs/markdowns/CHANGELOG.md renamed to docs/project_info/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# CHANGELOG
1+
# Changelog
22

33

44

@@ -40,7 +40,7 @@
4040

4141
* Merge pull request #123 from jjjermiah/development
4242

43-
docs: Start building better documentation.
43+
docs: Start building better documentation.
4444
feat: Enhance logging functionality ([`5bb80c3`](https://github.com/jjjermiah/nbia-toolkit/commit/5bb80c3056fab8804ea789aa37702d9fd6741797))
4545

4646
* Merge pull request #122 from jjjermiah/88-logger-functionality

docs/markdowns/CONDUCT.md renamed to docs/project_info/CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# CODE OF CONDUCT
1+
# Code of Conduct
22

33
## Our Pledge
44

0 commit comments

Comments
 (0)