google / comprehensive-rust

This is the Rust course used by the Android team at Google. It provides you the material to quickly teach Rust.
https://google.github.io/comprehensive-rust/
Apache License 2.0
27.51k stars 1.64k forks source link

Add structured data to generated pages #1142

Open mgeisler opened 1 year ago

mgeisler commented 1 year ago

We should look into adding structured data to the generated HTML.

I imagine this could be metadata about each page:

It seems there is special vocabulary available which might be interesting for us:

How to do this? Likely with a new mdbook preprocessor which can inject the data into the publishing pipeline.

mgeisler commented 1 year ago

@sakex, a new renderer (https://github.com/google/mdbook-i18n-helpers/issues/70) would probably help with this too.