Compare commits

..
1 Commits
Author SHA1 Message Date
Jared DillardandGitHub e64e20133a Remove support for singlehtml (#40) 2025-08-29 15:22:32 -07:00
3 changed files with 8 additions and 3 deletions
+6
View File
@@ -1,6 +1,12 @@
Changelog Changelog
========= =========
0.5.2
-----
- Remove support for singlehtml
`#40 <https://github.com/jdillard/sphinx-llms-txt/pull/40>`_
0.5.1 0.5.1
----- -----
+2 -2
View File
@@ -21,7 +21,7 @@ from .manager import LLMSFullManager
from .processor import DocumentProcessor from .processor import DocumentProcessor
from .writer import FileWriter from .writer import FileWriter
__version__ = "0.5.1" __version__ = "0.5.2"
# Export classes needed by tests # Export classes needed by tests
__all__ = [ __all__ = [
@@ -129,7 +129,7 @@ def setup(app: Sphinx) -> Dict[str, Any]:
def builder_inited(app): def builder_inited(app):
"""Used to limit what builders are allowed to run the extension.""" """Used to limit what builders are allowed to run the extension."""
allowed_builders = ["html", "singlehtml", "dirhtml"] allowed_builders = ["html", "dirhtml"]
if hasattr(app, "builder") and app.builder.name in allowed_builders: if hasattr(app, "builder") and app.builder.name in allowed_builders:
# Reset manager and root paragraph for each build # Reset manager and root paragraph for each build
global _manager, _root_first_paragraph global _manager, _root_first_paragraph
-1
View File
@@ -197,7 +197,6 @@ class LLMSFullManager:
possible_sources = [ possible_sources = [
Path(outdir) / "_sources", Path(outdir) / "_sources",
Path(outdir) / "html" / "_sources", Path(outdir) / "html" / "_sources",
Path(outdir) / "singlehtml" / "_sources",
] ]
for path in possible_sources: for path in possible_sources: