Skip to content

Commit 9f0f8ec

Browse files
committed
Add major revision of Read the Docs
1 parent fced19a commit 9f0f8ec

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1156
-619
lines changed

docs/overview_pownet.png

-270 KB
Binary file not shown.

docs/requirements.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
sphinx>=4.3.0
2-
sphinx-rtd-theme>=0.5.1
3-
sphinx-toolbox>=0.8.0
1+
sphinx >= 8.1.0
2+
sphinx-rtd-theme >= 3.0.2
3+
nbsphinx >= 0.9.7
4+
nbsphinx_link >= 1.3.1
5+
sphinxcontrib-bibtex >= 2.6.3
File renamed without changes.
File renamed without changes.
Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
pownet.core package
2-
===================
3-
4-
Submodules
5-
----------
6-
71
pownet.core.builder module
82
--------------------------
93

@@ -59,11 +53,3 @@ pownet.core.visualizer module
5953
:members:
6054
:undoc-members:
6155
:show-inheritance:
62-
63-
Module contents
64-
---------------
65-
66-
.. automodule:: pownet.core
67-
:members:
68-
:undoc-members:
69-
:show-inheritance:
File renamed without changes.

docs/source/conf.py

Lines changed: 22 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import sys
22
import os
3+
from importlib.metadata import version as get_version
4+
35

46
sys.path.insert(0, os.path.abspath("../../src/"))
57

@@ -23,57 +25,46 @@
2325
# -- Project information
2426

2527
project = "PowNet"
26-
copyright = "2024, Critical Infrastructure Systems (CIS) Lab, Cornell University"
28+
copyright = "2021-2025, Critical Infrastructure Systems (CIS) Lab, Cornell University"
2729
author = "Critical Infrastructure Systems Lab (CIS), Cornell University"
2830

29-
release = "2.0"
30-
version = "2.0.0"
31+
# TODO: Show version and release in the documentation
32+
release = get_version(project)
33+
version = ".".join(release.split(".")[:1])
3134

3235
# -- General configuration
3336

34-
github_username = "HishamEldardiry"
35-
github_repository = "PowNet_Documentation"
36-
37-
3837
extensions = [
39-
"sphinx.ext.duration",
40-
"sphinx.ext.doctest",
4138
"sphinx.ext.autodoc",
42-
"sphinx.ext.napoleon",
43-
"sphinx_autodoc_typehints",
4439
"sphinx.ext.autosummary",
40+
"sphinx.ext.doctest",
41+
"sphinx.ext.duration",
42+
"sphinx.ext.extlinks",
4543
"sphinx.ext.intersphinx",
4644
"sphinx.ext.mathjax",
45+
"sphinx.ext.napoleon",
4746
"sphinx.ext.viewcode",
4847
"sphinx_rtd_theme",
49-
"sphinx.ext.viewcode",
50-
"sphinx_toolbox",
48+
"nbsphinx",
49+
"nbsphinx_link",
50+
"sphinx_autodoc_typehints",
51+
"sphinxcontrib.bibtex",
5152
]
5253

53-
intersphinx_mapping = {
54-
"python": ("https://docs.python.org/3/", None),
55-
"sphinx": ("https://www.sphinx-doc.org/en/master/", None),
56-
}
57-
intersphinx_disabled_domains = ["std"]
58-
5954
templates_path = ["_templates"]
6055
html_static_path = ["_static"]
6156

62-
# -- Options for HTML output
57+
# References are found here
58+
bibtex_bibfiles = ["references.bib"]
6359

64-
html_theme = "sphinx_rtd_theme"
65-
html_theme_options = {"version": "", "release": "", "navigation_depth": 2}
66-
67-
html_context = {
68-
"display_github": True, # Add 'Edit on Github' link instead of 'View page source'
69-
"last_updated": False,
70-
"commit": False,
71-
}
60+
# Create the page even when there is an error in the notebook
61+
nbsphinx_allow_errors = True
7262

73-
# -- html_show_sphinx = False
63+
# -- Options for HTML output
64+
html_theme = "sphinx_rtd_theme"
65+
html_theme_options = {}
7466

75-
# -- Options for EPUB output
76-
epub_show_urls = "footnote"
67+
html_show_sphinx = False
7768

7869

7970
# -- customize the CSS styling
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"path": "../../../examples/custom_workflow.ipynb"}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"path": "../../../examples/quickstart.ipynb"}

0 commit comments

Comments
 (0)