diff --git a/docs/_includes/examples/enum_repr.rs b/docs/_includes/examples/enum_repr.rs index 671bc46..3b0df97 100644 --- a/docs/_includes/examples/enum_repr.rs +++ b/docs/_includes/examples/enum_repr.rs @@ -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()); diff --git a/docs/_sass/custom/custom.scss b/docs/_sass/custom/custom.scss index 5c9ebca..47323dd 100644 --- a/docs/_sass/custom/custom.scss +++ b/docs/_sass/custom/custom.scss @@ -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; } \ No newline at end of file diff --git a/schemars/examples/enum_repr.rs b/schemars/examples/enum_repr.rs index 671bc46..3b0df97 100644 --- a/schemars/examples/enum_repr.rs +++ b/schemars/examples/enum_repr.rs @@ -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());