Do not sort functions, types and constants in generated docs
The rationale is to let them in the order they are defined, so that library authors have some freedom in how they present information. On top of that, we'll also now parse specifi comments as section headers that will be inserted in the sidebar when present.
This commit is contained in:
parent
0b6b672149
commit
8b869c0a32
|
@ -159,7 +159,6 @@ fn generate_module(
|
||||||
.definitions
|
.definitions
|
||||||
.iter()
|
.iter()
|
||||||
.flat_map(DocFunction::from_definition)
|
.flat_map(DocFunction::from_definition)
|
||||||
.sorted()
|
|
||||||
.collect();
|
.collect();
|
||||||
functions
|
functions
|
||||||
.iter()
|
.iter()
|
||||||
|
@ -171,7 +170,6 @@ fn generate_module(
|
||||||
.definitions
|
.definitions
|
||||||
.iter()
|
.iter()
|
||||||
.flat_map(DocType::from_definition)
|
.flat_map(DocType::from_definition)
|
||||||
.sorted()
|
|
||||||
.collect();
|
.collect();
|
||||||
types
|
types
|
||||||
.iter()
|
.iter()
|
||||||
|
@ -183,7 +181,6 @@ fn generate_module(
|
||||||
.definitions
|
.definitions
|
||||||
.iter()
|
.iter()
|
||||||
.flat_map(DocConstant::from_definition)
|
.flat_map(DocConstant::from_definition)
|
||||||
.sorted()
|
|
||||||
.collect();
|
.collect();
|
||||||
constants
|
constants
|
||||||
.iter()
|
.iter()
|
||||||
|
|
Loading…
Reference in New Issue