Skip to content

Deterministic file order (in the TOC) for Generic Includer#1420

Open
khoden wants to merge 1 commit intodiplodoc-platform:masterfrom
khoden:deterministic-file-order-in-generic-includer
Open

Deterministic file order (in the TOC) for Generic Includer#1420
khoden wants to merge 1 commit intodiplodoc-platform:masterfrom
khoden:deterministic-file-order-in-generic-includer

Conversation

@khoden
Copy link

@khoden khoden commented Sep 16, 2025

Description

Fix random order in the TOC, when using Generic Includer (doc readers may be confused).

Sort from the shortest paths to longest (by path segments).

Put index.md as the first item in the TOC (it seems to be useful for the most of use cases).

@3y3 3y3 force-pushed the master branch 16 times, most recently from 2698a95 to cfe7e59 Compare September 22, 2025 18:21
@khoden
Copy link
Author

khoden commented Sep 30, 2025

ping?

});
}

sortGlobResult(files: NormalizedPath[]): NormalizedPath[] {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add tests for this behavior

@3y3 3y3 requested a review from a team as a code owner December 23, 2025 15:29
@3y3 3y3 requested review from goldserg and removed request for a team December 23, 2025 15:29
@3y3 3y3 force-pushed the master branch 3 times, most recently from 9ba1505 to 93079dd Compare January 23, 2026 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants