-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Update docs with Jupyter Book and NumPy docstrings (#110)
This is a PR from uw-ssec#25. This improved the documentation to use Jupyter Book instead of vanilla sphinx. Google docstring style has been updated to Numpy docstring style. --- Ref: uw-ssec#11 Original author: https://github.com/sophietao127 - docs: Add tutorials - Added index.md to tutorials - Updated _config.yml and _toc.yml - docs: Lint docs and update notebooks --------- Co-authored-by: Landung 'Don' Setiawan <[email protected]>
- Loading branch information
Showing
59 changed files
with
4,017 additions
and
1,434 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# For writing commands that will be executed after the container is created | ||
|
||
# Installs `caustic` as local library without resolving dependencies (--no-deps) | ||
# Installs `caustics` as local library without resolving dependencies (--no-deps) | ||
python3 -m pip install -e /workspaces/caustics --no-deps | ||
python3 -m pip install -e ".[dev]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -137,3 +137,7 @@ package.json | |
|
||
# version | ||
_version.py | ||
|
||
# Jupyter book | ||
conf.py | ||
caustics*.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
nbsphinx | ||
jupyter-book | ||
sphinx | ||
sphinx_rtd_theme | ||
wheel | ||
matplotlib | ||
ipywidgets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Book settings | ||
# Learn more at https://jupyterbook.org/customize/config.html | ||
|
||
title: Caustics | ||
author: Ciela Institute | ||
logo: ../../media/caustics_logo.png | ||
|
||
# Force re-execution of notebooks on each build. | ||
# See https://jupyterbook.org/content/execute.html | ||
execute: | ||
execute_notebooks: force | ||
allow_errors: false | ||
# Per-cell notebook execution limit (seconds) | ||
timeout: 10 | ||
|
||
# Define the name of the latex output file for PDF builds | ||
latex: | ||
latex_documents: | ||
targetname: book.tex | ||
|
||
# Add a bibtex file so that we can create citations | ||
# bibtex_bibfiles: | ||
# - references.bib | ||
|
||
# Information about where the book exists on the web | ||
repository: | ||
url: https://github.com/Ciela-Institute/caustics # Online location of your book | ||
path_to_book: docs/source # Optional path to your book, relative to the repository root | ||
branch: main # Which branch of the repository should be used when creating links (optional) | ||
|
||
# Add GitHub buttons to your book | ||
# See https://jupyterbook.org/customize/config.html#add-a-link-to-your-repository | ||
html: | ||
favicon: ../../media/caustics_favicon.ico | ||
use_issues_button: true | ||
use_repository_button: true | ||
|
||
sphinx: | ||
extra_extensions: | ||
- "sphinx.ext.autodoc" | ||
- "sphinx.ext.autosummary" | ||
- "sphinx.ext.napoleon" | ||
- "sphinx.ext.doctest" | ||
- "sphinx.ext.coverage" | ||
- "sphinx.ext.mathjax" | ||
- "sphinx.ext.ifconfig" | ||
- "sphinx.ext.viewcode" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Table of contents | ||
# Learn more at https://jupyterbook.org/customize/toc.html | ||
|
||
format: jb-book | ||
root: intro | ||
chapters: | ||
- file: getting_started | ||
- file: install | ||
- file: tutorials/index | ||
sections: | ||
- file: tutorials/BasicIntroduction | ||
- file: tutorials/LensZoo | ||
- file: tutorials/VisualizeCaustics | ||
- file: tutorials/MultiplaneDemo | ||
- file: tutorials/InvertLensEquation | ||
- file: tutorials/Simulators | ||
- file: tutorials/Playground | ||
- file: contributing | ||
- file: citation | ||
- file: license | ||
- file: modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.