-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Search: index <dl>s as sections and remove Sphinx domain logic #10128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
benjaoming
merged 40 commits into
main
from
generic-html-parser-dls-remove-sphinx-domain
Apr 11, 2023
Merged
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
c84577a
WIP: Draft on parsing <dl> as normal section
benjaoming 13c7946
Drafting what to remove
benjaoming 780dec0
domain_data is no longer generated
benjaoming 0968e01
Update generic logic, remove old Sphinx <dl> parsing
benjaoming 5797c6a
Improve parsing with "General sibling combinator", add test case data
benjaoming b87d3ee
Add httpdomain example
benjaoming cc77f5e
test case for Sphinx autodoc HTML
benjaoming 71a4018
Merge branch 'main' of github.com:readthedocs/readthedocs.org into ge…
benjaoming 612c687
Remove entire block that was indexing Sphinx domains
benjaoming 562d18b
Clean up remaining Sphinx domain search index
benjaoming 508658c
Merge branch 'main' of github.com:readthedocs/readthedocs.org into ge…
benjaoming f6cd1d4
Strip out Sphinx line numbers in the generic `_clean_body` method
benjaoming 147d1ce
Remove indexed <dl> contents before indexing other sections
benjaoming 3eb302c
Update our developer docs for section indexes a bit
benjaoming bec3bdb
Apply suggestions from @stsewd code review
benjaoming e690970
Apply suggestions from @stsewd code review
benjaoming f17d500
Removes nodes immediately, it seems that selectolax does DFS but no g…
benjaoming b19f587
Update docs
benjaoming 4f6be90
Use 1-line generator
benjaoming d953380
Update basic example showing that it uses BFS for indexing
benjaoming c38f8ab
No future code path
benjaoming cfac4ef
Remember all <dls> that were already seen before indexing them
benjaoming f4f97a5
Generate output that resembles Depth-First-Search (even though we tra…
benjaoming 380aabf
Remove <dl>s from DOM before parsing content outside of <h1..7>s
benjaoming d9a3021
Parse only dl>dt for each dl using a hack, remove decompose() call th…
benjaoming 0a11690
Update test data (manually sample-read a lot and it looks good, no du…
benjaoming e7c4946
Also remove already indexed <dt>s from DOM before continuing to index
benjaoming 5241741
Split <dl> parsing into separate method
benjaoming abbd033
Use css selectors when possible, this one works
benjaoming 58364d0
Remove print() statements
benjaoming 2d8d585
Cleanup: Remove inaccurate comment
benjaoming 952142a
Cleanup: Select adjacent dd instead of iterating
benjaoming 3de9e39
Fix strange syntax
benjaoming c1a0287
Do not accumulate lists: Yield indexed nodes and section content
benjaoming 0231e6c
Merge branch 'main' of github.com:readthedocs/readthedocs.org into ge…
benjaoming 012e8dc
Appease "darker" lint
benjaoming 4170338
Reduce complexity: replace css selector with a Python look
benjaoming ffca7ad
Use "simple" analyzer on section contents
benjaoming 8bc1450
Merge branch 'generic-html-parser-dls-remove-sphinx-domain' of github…
benjaoming 17dfb8a
Revert "Use "simple" analyzer on section contents"
benjaoming File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.