Skip to content

Commit

Permalink
Update compiler/qsc_doc_gen/src/generate_docs.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Scott Carda <[email protected]>
  • Loading branch information
DmitryVasilevsky and ScottCarda-MS authored Aug 19, 2024
1 parent d09978d commit a04f153
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler/qsc_doc_gen/src/generate_docs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,12 @@ pub fn generate_docs(
}

// We want to sort documentation files in a meaningful way.
// First, we want to put files for the current project, if it exists
// Then we want to put explicit dependencies of the current project, if they exist
// First, we want to put files for the current project, if it exists.
// Then we want to put explicit dependencies of the current project, if they exist.
// Then we want to add built-in std package. And finally built-in core package.
// Namespaces within packages should be sorted alphabetically and
// items with a namespace should be also sorted alphabetically.
// Also, items without any metadata (table of content) should come last
// Also, items without any metadata (table of content) should come last.
files.sort_by_key(|file| {
(
file.0.package.clone(),
Expand Down

0 comments on commit a04f153

Please sign in to comment.