Make docs examples a tiny bit prettier

This commit is contained in:
Graham Esau 2021-03-25 22:56:25 +00:00
parent 93435d519a
commit 3a2b425998
3 changed files with 7 additions and 0 deletions

View file

@ -8,6 +8,7 @@ enum SmallPrime {
Five = 5,
Seven = 7,
}
fn main() {
let schema = schema_for!(SmallPrime);
println!("{}", serde_json::to_string_pretty(&schema).unwrap());

View file

@ -31,4 +31,9 @@ code {
// Hide ugly summary outline that chrome adds
.main-content summary:focus {
outline: none;
}
.main-content summary {
display: list-item;
font-style: italic;
}