google/comprehensive-rust
Ver no GitHubAdd structured data to generated pages
Open
#1.142 aberto em 31 de ago. de 2023
enhancementgood first issuehelp wanted
Métricas do repositório
- Stars
- (32.954 stars)
- Métricas de merge de PR
- (Mesclagem média 9d 23h) (36 fundiu PRs em 30d)
Description
We should look into adding structured data to the generated HTML.
I imagine this could be metadata about each page:
- title, though this is probably covered fine with the
titleelement, - when was the page last changed (look this up in Git),
- place in the page hierarchy,
It seems there is special vocabulary available which might be interesting for us:
- Breadcrumb: to show the parent pages
- Course: we might be able to distinguish between Rust Fundamentals, Rust in Android, Bare-Metal Rust, and Concurrency in Rust.
- Sitelinks search box: we can perhaps get a search box which leads straight to a
mdbooksearch.
How to do this? Likely with a new mdbook preprocessor which can inject the data into the publishing pipeline.