diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 77a65c5..47771f3 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,12 @@ Changelog ========= +0.5.2 +----- + +- Remove support for singlehtml + `#40 `_ + 0.5.1 ----- diff --git a/sphinx_llms_txt/__init__.py b/sphinx_llms_txt/__init__.py index af96cf1..b96cc20 100644 --- a/sphinx_llms_txt/__init__.py +++ b/sphinx_llms_txt/__init__.py @@ -21,7 +21,7 @@ from .manager import LLMSFullManager from .processor import DocumentProcessor from .writer import FileWriter -__version__ = "0.5.1" +__version__ = "0.5.2" # Export classes needed by tests __all__ = [ @@ -129,7 +129,7 @@ def setup(app: Sphinx) -> Dict[str, Any]: def builder_inited(app): """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: # Reset manager and root paragraph for each build global _manager, _root_first_paragraph diff --git a/sphinx_llms_txt/manager.py b/sphinx_llms_txt/manager.py index 1f97da5..2215c85 100644 --- a/sphinx_llms_txt/manager.py +++ b/sphinx_llms_txt/manager.py @@ -197,7 +197,6 @@ class LLMSFullManager: possible_sources = [ Path(outdir) / "_sources", Path(outdir) / "html" / "_sources", - Path(outdir) / "singlehtml" / "_sources", ] for path in possible_sources: