Document sorting
The rendered sidebar of <gem-book> should be consistent with the sorting of documents in the IDE and editor. The default rules are:
readme.mdandindex.mdalways come first- Folders come before file
- Sort ascending by filename ASCII encoding
Adding a numerical prefix allows for custom sorting, which is still consistent with the IDE and editor, for example:
Output sidebar:
TIP
The digital serial number in the file name can reserve a certain space, which is convenient for subsequent inserting documents between files. Use
to reverse sort. In addition, it is allowed to use links in documents without these weight numbers, but this will lose IDE support, so it is not recommended. reverse
By default, this number will not be displayed in the URL. If your file name already has a prefix in the same format, you can use --display-rank
Last Updated:
01/16/2024, 05:41:30 PM