Skip to content

Commit c51ca56

Browse files
committed
Updating demo
1 parent d3f9757 commit c51ca56

File tree

18 files changed

+98
-6
lines changed

18 files changed

+98
-6
lines changed

.DS_Store

0 Bytes
Binary file not shown.

.github/workflows/documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/setup-python@v3
1414
- name: Install dependencies
1515
run: |
16-
pip install sphinx sphinx_rtd_theme pydata-sphinx-theme sphinx-design sphinx-copybutton
16+
pip install sphinx pydata-sphinx-theme sphinx-design sphinx-copybutton sphinx-autoapi
1717
- name: Sphinx build
1818
run: |
1919
sphinx-build docs _build

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
_build
2+
.venv
3+
sphinx_venv
4+
*.pyc

docs/api/api_base.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Basic Example
2+
=============
3+
4+
5+
Example of displaying API:
6+
7+
.. automodule:: example
8+
:members:

docs/api/index.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
API
2+
===
3+
4+
This contains API
5+
6+
7+
.. toctree::
8+
9+
api_base

docs/conf.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# import sys
2+
# import os
3+
# sys.path.insert(0, os.path.abspath('../'))
4+
15
# Configuration file for the Sphinx documentation builder.
26
#
37
# This file only contains a selection of the most common options. For a full
@@ -24,10 +28,19 @@
2428
extensions = [
2529
"sphinx.ext.githubpages", # used for hosting on GitHub Pages
2630
"sphinx.ext.todo",
31+
"autoapi.extension",
32+
"sphinx.ext.autodoc",
33+
"sphinx.ext.napoleon",
2734
"sphinx_copybutton", # adds a copy button to source code blocks
2835
"sphinx_design"
2936
]
3037

38+
# For API documentation
39+
autoapi_dirs = ["../testpackage"]
40+
autoapi_add_toctree_entry = False
41+
autodoc_typehints = 'description'
42+
43+
3144
# Settings for myst_nb:
3245
# https://myst-nb.readthedocs.io/en/latest/use/execute.html#triggering-notebook-execution
3346
nb_execution_mode = "cache"

docs/guides/.DS_Store

0 Bytes
Binary file not shown.

docs/guides/guide_installation.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ It's a good idea to install them in a **virtual environment**.
3939
3. Building Documentation
4040
-------------------------
4141
The documentation for the :code:`sphinx-documentation-demo` is located in :code:`docs/`.
42-
To build this documentation, while in the project directory, do:
42+
While in the root project directory, do:
4343

4444
.. code-block:: bash
4545
@@ -55,15 +55,13 @@ You can open the file :code:`docs/index.html` on your computer to view the HTML
5555
The :code:`sphinx-autobuild` extension allows us to build local documentation whenever we make changes.
5656
It also refreshes the web browser so you can see the changes "live". This makes it **very convenient for rapid development**.
5757

58-
This extension has already been included in the :code:`requirements.txt` file
59-
6058
While in the virtual environment, run the following command:
6159

6260
.. code-block:: bash
6361
6462
sphinx-autobuild docs _build
6563
66-
This will create a local host instance which you can then access through your web browser (you can just copy/paste the http address you get from :code:`sphinx-autobuild`)
64+
You can then point your web browser to: http://127.0.0.1:8000/
6765

6866
Remote Build on GitHub
6967
======================

docs/guides/layout/images/.DS_Store

0 Bytes
Binary file not shown.

docs/guides/layout/layout_basic.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Right Navigation Bar
109109

110110

111111
The right navigation bar allows users to navigation between **different sections within the current page**.
112-
This is automatically generated based on section headers specified within the page's :term:'rST' file.
112+
This is automatically generated based on section headers specified within the page's :term:`rST` file.
113113

114114
..
115115
.. image:: images/tab2_top.png

0 commit comments

Comments
 (0)