Repository navigation
Integrate HTML stripping into doc-builder - #684
Merged
Merged
Conversation
- Add HTML stripping functions to src/doc_builder/utils.py - Strip HTML when writing final markdown files (in write_markdown_route_file) - Add standalone script src/scripts/strip_html_from_md.py for manual use - Add README_strip_html.md with documentation HTML stripping now happens automatically during the build process when creating SvelteKit markdown routes (+page.md files), removing docstring HTML tags and converting them to clean markdown with proper formatting.
HTML stripping is now integrated into the build process itself (in write_markdown_route_file), so separate workflow steps are not needed.
HTML stripping is now fully integrated into doc_builder/utils.py, so the standalone script and its documentation are no longer needed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR integrates HTML stripping directly into the doc-builder build process, automatically cleaning up docstring HTML when generating documentation.
Key Changes
1. HTML Stripping in Build Process (src/doc_builder/utils.py)
2. Standalone Script (for reference/manual use)
How it Works
When doc-builder generates documentation:
.mdxfiles with HTML intact+page.mdfilesFormatting Changes
Docstrings are automatically transformed:
#### ClassName[[anchor]]:separator and blank linesBenefits