Expand description
WebSpec-Index: Query WHATWG/W3C web specifications
This library provides parsing, indexing, and querying of web specifications. It’s designed to be used via Python bindings (PyO3), but can also be used directly from Rust.
Modules§
- analyze
- Source code analysis for spec references and step comments.
- db
- fetch
- format
- Markdown output formatters for CLI commands
- ietf
- lsp
- LSP server for spec-aware editor integration.
- model
- parse
- spec_
list - spec_
registry
Functions§
- check_
exists - Check if a section exists in the specification
- clear_
database - Clear the database (remove all indexed data)
- clear_
pr_ data - Clear cached PR preview data.
- find_
anchors - Find anchors matching a glob pattern
- find_
references - Find incoming/outgoing references for SPEC#anchor or a shorthand query (e.g. Window.navigation).
- graph_
section - Build a cross-reference graph rooted at SPEC#anchor from currently indexed specs.
- list_
headings - List all headings in a specification
- parse_
spec_ anchor - Parse a spec#anchor string or full URL into (spec, anchor) tuple Parse a spec anchor string into (spec_name, anchor, Option<base_url>).
- pr_diff
- Compute diff between a PR preview and its merge base for a spec.
- query_
idl - Query dedicated WebIDL definitions.
- query_
section - Query a specific section in a specification
- search_
sections - Full-text search across specifications
- spec_
urls - Return indexed/discovered spec base URLs
- update_
specs - Update specifications to latest versions