Skip to content

Commit

Permalink
Output content of build static dir (with logger)
Browse files Browse the repository at this point in the history
  • Loading branch information
danirus committed Nov 25, 2024
1 parent b348145 commit 48b594f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions sphinx_nefertiti/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@
import shutil
from pathlib import Path

from sphinx.util import logging

from sphinx_nefertiti import colorsets, docsver, fonts, links, pygments

__version__ = "0.5.0"


pages_wo_index = ["genindex", "search"]

logger = logging.getLogger(__name__)


def get_html_theme_path():
"""Return absolute path to parent folder of installed theme."""
Expand Down Expand Up @@ -78,10 +81,10 @@ def update_context(app, pagename, templatename, context, doctree):


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


def setup(app):
Expand Down

0 comments on commit 48b594f

Please sign in to comment.