Remove support for singlehtml (#40)
This commit is contained in:
@@ -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
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user