Skip to content

Commit

Permalink
Output content of build static dir
Browse files Browse the repository at this point in the history
  • Loading branch information
danirus committed Nov 25, 2024
1 parent c9d59c2 commit b348145
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
},
],

"show_colorset_choices": False,
"show_colorset_choices": True,
# Return user's to 'blue' after a day since color was picked.
"reset_colorset_choice_after_ms": 1000 * 60 * 60 * 24,
}
Expand Down
8 changes: 8 additions & 0 deletions sphinx_nefertiti/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,17 @@ def update_context(app, pagename, templatename, context, doctree):
context["all_colorsets"] = colorsets.all_colorsets


def build_finished(app, exc):
print(f"Files in {app.builder.outdir}") # noqa: T201
static_dir = Path(app.builder.outdir) / "_static"
for item in static_dir.iterdir():
print(f"\t{item}") # noqa: T201


def setup(app):
app.connect("builder-inited", initialize_theme)
app.connect("html-page-context", update_context)
app.connect("build-finished", build_finished)

if hasattr(app, "add_html_theme"):
theme_path = str(Path(__file__).parent)
Expand Down

0 comments on commit b348145

Please sign in to comment.