-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
rustdoc: Tracking issue for the Askama migration #108868
Copy link
Copy link
Open
Labels
A-rustdoc-uiArea: Rustdoc UI (generated HTML)Area: Rustdoc UI (generated HTML)C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCE-mediumCall for participation: Medium difficulty. Experience needed to fix: Intermediate.Call for participation: Medium difficulty. Experience needed to fix: Intermediate.S-tracking-needs-design-proposalStatus: This needs a clear design proposal and then a meeting with the team.Status: This needs a clear design proposal and then a meeting with the team.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-rustdoc-uiArea: Rustdoc UI (generated HTML)Area: Rustdoc UI (generated HTML)C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCE-mediumCall for participation: Medium difficulty. Experience needed to fix: Intermediate.Call for participation: Medium difficulty. Experience needed to fix: Intermediate.S-tracking-needs-design-proposalStatus: This needs a clear design proposal and then a meeting with the team.Status: This needs a clear design proposal and then a meeting with the team.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
EDIT (2025-05-26): This is currently stuck as the original way it was done was making the code more complex (zulip). Before this can continue, it needs design work to make sure that having the templates in Askama is nicer than the current
format!approach.Tracking Issue for Rustdoc Askama Migration
Zulip Discussion
This issue is to track the progress of migrating rustdoc's HTML rendering to Askama.
Suggested Workflow
If you'd like to work on a component, please leave a comment claiming it so that work doesn't conflict.
Work on translating the current series of
format!()and string building calls into an HTML template. Where possible, try to keep as much logic as possible on the Rust side. Make sure to refer toSTYLE.mdfor templating style, especially using comment blocks to minimize whitespace.A specific example of a migration (and some style considerations) is here.
Components to Migrate
document_item_infoto Askama #108757)print_item.rs)item_proc_macroto Askama #112031)item_primitiveto Askama #112032)item_foreign_typeto Askama #112005)Keywordsitem_opaque_tyto Askama #112034)item_trait_aliasto Askama #112030)Implementation History
@rustbot label +T-rustdoc +A-rustdoc-ui