mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-22 15:11:51 +00:00
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:
@@ -16,6 +16,7 @@ import re
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
import sphinx_gallery.gen_rst
|
import sphinx_gallery.gen_rst
|
||||||
|
from furo.gen_tutorials import generate_tutorials
|
||||||
|
|
||||||
|
|
||||||
# Path setup for building from source tree
|
# 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 -------------------------------------------------
|
# -- Generate Changelog -------------------------------------------------
|
||||||
|
|
||||||
sphinx_github_changelog_token = os.environ.get("SPHINX_GITHUB_CHANGELOG_TOKEN")
|
sphinx_github_changelog_token = os.environ.get("SPHINX_GITHUB_CHANGELOG_TOKEN")
|
||||||
|
0
docs/introduction/.gitkeep
Normal file
0
docs/introduction/.gitkeep
Normal file
Reference in New Issue
Block a user