Add support for python doc files without rst gallery (#770)

Co-authored-by: Mark Towers <mark.m.towers@gmail.com>
This commit is contained in:
Manuel Goulão
2023-11-11 12:52:15 +00:00
committed by GitHub
parent 40f5c7bd42
commit 8333df8666
3 changed files with 103 additions and 96 deletions

View File

@@ -16,6 +16,7 @@ import re
import sys
import sphinx_gallery.gen_rst
from furo.gen_tutorials import generate_tutorials
# Path setup for building from source tree
@@ -138,6 +139,12 @@ sphinx_gallery_conf = {
),
}
# All tutorials in the tutorials directory will be generated automatically
# by sphinx-gallery.
# However, we also want to generate some tutorials without the gallery
# and to a more specific location so we use this custom function.
generate_tutorials("introduction/*.py", "./introduction")
# -- Generate Changelog -------------------------------------------------
sphinx_github_changelog_token = os.environ.get("SPHINX_GITHUB_CHANGELOG_TOKEN")