Add singlerst builder

This commit is contained in:
Jared Dillard
2025-12-01 13:51:26 -08:00
parent 543efabebb
commit dc9f16d454
6 changed files with 31 additions and 28 deletions
+6 -24
View File
@@ -1,27 +1,9 @@
# Find Sphinx
include(SetupSphinx)
include(SphinxUtils)
setup_sphinx_environment()
set(SPHINX_SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/source)
set(SPHINX_BUILD ${CMAKE_BINARY_DIR})
# Build HTML documentation
add_custom_target(html
COMMAND ${SPHINX_EXECUTABLE} -b html ${SPHINX_SOURCE} ${SPHINX_BUILD}
COMMENT "Building HTML documentation"
VERBATIM
)
# Build markdown documentation
add_custom_target(markdown
COMMAND ${SPHINX_EXECUTABLE} -b markdown ${SPHINX_SOURCE} ${SPHINX_BUILD}
COMMENT "Building Markdown documentation"
VERBATIM
)
# Build reStructuredText documentation
add_custom_target(rst
COMMAND ${SPHINX_EXECUTABLE} -b rst ${SPHINX_SOURCE} ${SPHINX_BUILD}
COMMENT "Building reStructuredText documentation"
VERBATIM
)
# Add builder targets
add_sphinx_builder(html)
add_sphinx_builder(markdown)
add_sphinx_builder(rst)
add_sphinx_builder(singlerst)
+1 -1
View File
@@ -5,4 +5,4 @@ sphinx
sphinx-llms-txt
sphinxext-opengraph
sphinx-markdown-builder
sphinxcontrib-restbuilder
sphinxcontrib-restbuilder @ git+https://github.com/jdillard/restbuilder.git@feature/singlerst-builder
+1
View File
@@ -17,6 +17,7 @@ copyright = "Jared Dillard"
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,