Skip to content

Commit

Permalink
Merge pull request #138 from ekiefl/nb-docs-support
Browse files Browse the repository at this point in the history
Notebook docs support
  • Loading branch information
ekiefl committed Sep 11, 2024
2 parents fb53cba + bea93b3 commit f9afbcc
Show file tree
Hide file tree
Showing 22 changed files with 2,856 additions and 518 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/paper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
journal: joss
paper-path: paper.md
- name: Upload
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: paper
# This is the output path where Pandoc will write the compiled
Expand Down
1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/_build
/autoapi
*.ipynb
2 changes: 2 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ To generate a local copy of the documentation, make sure you've installed poetry
poetry install --with docs
```

Additionally, `pandoc` needs to be installed: https://pandoc.org/installing.html

Then navigate to this directory and run:

```
Expand Down
13 changes: 12 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
"nbsphinx",
"sphinx.ext.napoleon",
"sphinx.ext.mathjax",
"sphinx_copybutton",
Expand All @@ -49,13 +50,23 @@
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
# NOTE: Don't use this for excluding python files, use `autoapi_ignore` below
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "**.ipynb_checkpoints", "**.ipynb", "**README.md"]

# -- Global options ----------------------------------------------------------

# Don't mess with double-dash used in CLI options
smartquotes_action = "qe"

# -- Notebook rendering -------------------------------------------------

# Something to consider: https://dokk.org/documentation/nbsphinx/0.9.3/prolog-and-epilog/
nbsphinx_epilog = """"""
nbsphinx_prolog = """"""

nbsphinx_custom_formats = {
".pct.py": ["jupytext.reads", {"fmt": "py:percent"}],
}

# -- Options for HTML output -------------------------------------------------

# The theme to use for HTML and HTML Help pages. See the documentation for
Expand Down
Loading

0 comments on commit f9afbcc

Please sign in to comment.