Make docs examples a tiny bit prettier
This commit is contained in:
parent
93435d519a
commit
3a2b425998
3 changed files with 7 additions and 0 deletions
|
@ -8,6 +8,7 @@ enum SmallPrime {
|
||||||
Five = 5,
|
Five = 5,
|
||||||
Seven = 7,
|
Seven = 7,
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let schema = schema_for!(SmallPrime);
|
let schema = schema_for!(SmallPrime);
|
||||||
println!("{}", serde_json::to_string_pretty(&schema).unwrap());
|
println!("{}", serde_json::to_string_pretty(&schema).unwrap());
|
||||||
|
|
|
@ -32,3 +32,8 @@ code {
|
||||||
.main-content summary:focus {
|
.main-content summary:focus {
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.main-content summary {
|
||||||
|
display: list-item;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
|
@ -8,6 +8,7 @@ enum SmallPrime {
|
||||||
Five = 5,
|
Five = 5,
|
||||||
Seven = 7,
|
Seven = 7,
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let schema = schema_for!(SmallPrime);
|
let schema = schema_for!(SmallPrime);
|
||||||
println!("{}", serde_json::to_string_pretty(&schema).unwrap());
|
println!("{}", serde_json::to_string_pretty(&schema).unwrap());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue