Automatically add content from .. include:: directives (#6)

This commit is contained in:
Jared Dillard
2025-05-16 14:33:34 -07:00
committed by GitHub
parent 74393bcd2a
commit 2ca3052a2c
9 changed files with 241 additions and 0 deletions
+8
View File
@@ -25,6 +25,14 @@ def test_build_html_with_llms_txt(basic_sphinx_app):
assert "Content for section 1" in content
assert "Content for section A" in content
# Check that the include directive has been processed
assert "Page With Include" in content
assert "This is a test page that includes another file:" in content
assert "Changelog" in content # Content from the included file
assert "0.2.0 (2025-01-01)" in content # Content from the included file
assert "0.1.0 (2024-01-01)" in content # Additional content from the included file
assert "This content comes after the include." in content
def test_custom_filename(temp_dir, rootdir):
"""Test using a custom filename for the output."""