diff --git a/.readthedocs.yml b/.readthedocs.yml index 6731102..2725cfa 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -14,3 +14,4 @@ build: - cp -r build/html/* $READTHEDOCS_OUTPUT/html/ - cp -r build/markdown/* $READTHEDOCS_OUTPUT/html/ - cp -r build/rst/* $READTHEDOCS_OUTPUT/html/ + - cp build/singlerst/index.rst $READTHEDOCS_OUTPUT/html/llms-full.txt diff --git a/CMakePresets.json b/CMakePresets.json index 1336542..678b631 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -27,11 +27,17 @@ "configurePreset": "documentation", "targets": ["rst"] }, + { + "name": "singlerst", + "displayName": "Build Single reStructuredText Documentation", + "configurePreset": "documentation", + "targets": ["singlerst"] + }, { "name": "docs-parallel", "displayName": "Build HTML and Markdown in parallel", "configurePreset": "documentation", - "targets": ["html", "markdown", "rst"] + "targets": ["html", "markdown", "rst", "singlerst"] } ], "workflowPresets": [ diff --git a/docs/CMakeLists.txt b/docs/CMakeLists.txt index ceb18ac..d81a5d4 100644 --- a/docs/CMakeLists.txt +++ b/docs/CMakeLists.txt @@ -5,3 +5,4 @@ setup_sphinx_environment() add_sphinx_builder(html) add_sphinx_builder(markdown) add_sphinx_builder(rst) +add_sphinx_builder(singlerst) diff --git a/docs/requirements.txt b/docs/requirements.txt index 956bae7..42842ef 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -6,4 +6,4 @@ sphinx-llms-txt sphinx-inline-tabs sphinxext-opengraph sphinx-markdown-builder -sphinxcontrib-restbuilder +sphinxcontrib-restbuilder @ git+https://github.com/jdillard/restbuilder.git@feature/singlerst-builder diff --git a/docs/source/conf.py b/docs/source/conf.py index de320c1..0bac873 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -17,6 +17,7 @@ author = "Jared Dillard" llms_txt_uri_template = "{base_url}{docname}.md" +llms_txt_full_file = False llms_txt_code_files = ["+:../../sphinx_llms_txt/*.py"] llms_txt_summary = """ A Sphinx extension that generates a summary llms.txt file,written in Markdown,