Skip to main content

Crate webspec_index

Crate webspec_index 

Source
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