Skip to content
Open
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
6 changes: 6 additions & 0 deletions src/sphinx_llm/txt.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ def generate_markdown_files(self, app: Sphinx, exception: Union[Exception, None]
# Build the markdown files
md_app.build()

if md_app.statuscode != 0:
logger.error(
"Failed to generate markdown files for llms.txt. For more details run the markdown builder manually. Command: sphinx-build -b markdown <source> <build>"
)
return

# Find all markdown files in the build directory
md_files = list(md_build_dir.rglob("*.md"))
self.generated_markdown_files = []
Expand Down