A Sphinx extension that builds galleries of examples from any set of myst-style markdown/notebook or rst files.
Project description
MyST Sphinx Gallery is a Sphinx extension that builds a Sphinx Gallery from MyST Markdown/Notebook or RST files.
Documentation
The detailed documentation is available at: https://myst-sphinx-gallery.readthedocs.io/en/latest/
Quick Start
Installation
MyST Sphinx Gallery is a Python package, and requires Python >= 3.8. You can install the latest release using pip from the PyPI:
pip install myst_sphinx_gallery
Configure and usages
To use MyST Sphinx Gallery, you need to add the following code to the Sphinx conf.py file:
from pathlib import Path
from myst_sphinx_gallery import GalleryConfig, generate_gallery
myst_sphinx_gallery_config = GalleryConfig(
examples_dirs="../../examples",
gallery_dirs="auto_examples",
root_dir=Path(__file__).parent,
notebook_thumbnail_strategy="code",
)
generate_gallery(myst_sphinx_gallery_config)
Construct the examples folder
To generate the gallery, you need to create a well-structured examples folder. The detailed documentation of structuring files for gallery is available at: Structuring files for Gallery.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for myst_sphinx_gallery-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1a26bacfef44e10c1db1b69f0f390434d29f407473b96e409785a2ca6edc12e |
|
MD5 | d762799683c0de5bd808f24f4923d7d9 |
|
BLAKE2b-256 | e8caed632431ec2a69e23fe8421b7303dfbc1b7383891664ab8e559aeee418e2 |
Hashes for myst_sphinx_gallery-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aea34b15c545384b2929e6d11d68f66bdba1fbf44bb9ff016d2d5ae90782a2e4 |
|
MD5 | 45008248d654a1f1afc61895b7192cee |
|
BLAKE2b-256 | 1f3196b738cb3c03e9f8b35d5c0eeaf019263a475208d5a007830281fcbce5a0 |