My Gift to the Rustdoc Team
2 days ago
- #Documentation
- #Rust
- #Syntax Highlighting
- The author discusses the challenges of implementing syntax highlighting in Rust documentation using tree-sitter.
- Three solutions are proposed: including a script in the documentation, integrating tree-sitter into rustdoc, and using a backend post-processor for docs.rs.
- The author introduces 'arborium', a collection of tree-sitter grammars for 96 languages, designed to simplify syntax highlighting in Rust documentation.
- Security concerns are raised about injecting third-party JavaScript into docs.rs pages, advocating for safer alternatives.
- The author shares the technical challenges of setting up CI for the project and thanks sponsors and contributors.