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:
KtorZ 2024-08-22 12:35:41 +02:00
parent 0b6b672149
commit 8b869c0a32
No known key found for this signature in database
GPG Key ID: 33173CB6F77F4277
1 changed files with 0 additions and 3 deletions

View File

@ -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()