Disable rendering doc examples for experimental branch (#3475)

* add MANIM_SKIP_EXAMPLES env variable, disable rendering for this branch

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* try using predefined env variable

* what

* env vars don't work

* skip based on PR numbers

* Apply suggestions from code review

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Benjamin Hackl 2023-12-16 14:25:18 +01:00 committed by GitHub
commit c6dfc1583b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -166,6 +166,7 @@ class ManimDirective(Directive):
should_skip = (
"skip-manim" in self.state.document.settings.env.app.builder.tags.tags
or self.state.document.settings.env.app.builder.name == "gettext"
or os.getenv("READTHEDOCS_VERSION_NAME", None) in ["3112", "3475"]
)
if should_skip:
node = SkipManimNode()