Temp fix decade-long Sphinx bug breaking our CSS during partial rebuilds by pushfoo · Pull Request #2496 · pythonarcade/arcade · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
6 changes: 5 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

HERE = Path(__file__).resolve()
REPO_LOCAL_ROOT = HERE.parent.parent

ARCADE_MODULE = REPO_LOCAL_ROOT / "arcade"
UTIL_DIR = REPO_LOCAL_ROOT / "util"

Expand Down Expand Up @@ -88,14 +89,17 @@ def run_util(filename, run_name="__main__", init_globals=None):

runpy.run_path(full_str, **kwargs)

# Temp fix for Sphinx not copying static files # pending: post-3.0 refactor
# Enable by creating a .ENABLE_DEVMACHINE_SPHINX_STATIC_FIX
run_util("sphinx_static_file_temp_fix.py")

# Make thumbnails for the example code screenshots
run_util("generate_example_thumbnails.py")
# Create a tabular representation of the resources with embeds
run_util("create_resources_listing.py", init_globals=RESOURCE_GLOBALS)
# Run the generate quick API index script
run_util('../util/update_quick_index.py')


autodoc_inherit_docstrings = False
autodoc_default_options = {
'members': True,
Expand Down
119 changes: 119 additions & 0 deletions util/sphinx_static_file_temp_fix.py