Skip to content

Commit

Permalink
add sphinx gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
liuanji committed Feb 15, 2024
1 parent cc8e976 commit 2465d27
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

- name: Install dependencies
run: |
pip install sphinx sphinx_rtd_theme myst_parser
pip install sphinx sphinx_rtd_theme myst_parser sphinx-gallery
- name: Install PyJuice
run: |
Expand Down
6 changes: 6 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,14 @@
'sphinx.ext.autodoc',
'sphinx.ext.autosummary',
'sphinx.ext.intersphinx',
'sphinx_gallery.gen_gallery'
]

sphinx_gallery_conf = {
# other configuration options
'gallery_dirs': 'getting-started/tutorials/generated/gallery',
}

intersphinx_mapping = {
'python': ('https://docs.python.org/3/', None),
'sphinx': ('https://www.sphinx-doc.org/en/master/', None),
Expand Down

0 comments on commit 2465d27

Please sign in to comment.