File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import re
22from pathlib import Path
33import os
4- import shutil
54
65PLUGIN_REGEX = re .compile (r"<(.*)>manim-(?P<name>.*)<(.*)>" )
76PARSE_PARAMETERS = re .compile (
Original file line number Diff line number Diff line change 11from __future__ import annotations
22
3- import base64
43import tempfile
54import json
65import os
1716from constants import (
1817 CONTENT_FOLDER ,
1918 EXAMPLE_FOLDER ,
20- GITHUB_TOKEN ,
2119 OUTPUT_DIR ,
2220 PARSE_PARAMETERS ,
2321 PLUGIN_REGEX ,
2422 EXAMPLE_JSON ,
25- front_matter_md ,
2623)
2724
2825
@@ -182,7 +179,7 @@ def guarantee_one_visible(example_dict):
182179 # that atleast one example is visible.
183180 for example in example_dict :
184181 example ["visible" ] = example ["visible" ] == "True"
185- if example ["visible" ] == True :
182+ if example ["visible" ]:
186183 break
187184 else :
188185 example_dict [0 ]["visible" ] = True
You can’t perform that action at this time.
0 commit comments