Skip to content

Commit

Permalink
docs: sort files from dir before concatenating (#1859)
Browse files Browse the repository at this point in the history
  • Loading branch information
holic authored Nov 2, 2023
1 parent d7325e5 commit 307a9e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/render-api-docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ async function renderDocs() {
.map((input) => {
const docsPath = getDocsPath(input.source);
const docsFiles = readdirSync(docsPath);
docsFiles.sort();
return docsFiles
.filter(input.filterFiles ?? identity)
.map((fileName) => readFileSync(path.join(docsPath, fileName), { encoding: "utf8" }));
Expand Down

0 comments on commit 307a9e5

Please sign in to comment.