GitHub Wiki pages sort order?

Another approach is to prepend numbers in front of your page titles.

1. Home
2. Installation
3. Domain
4. CmsMethods

You could use the github-wiki-sidebar npm module to enforce an order of the pages and also generate the sidebar menu.

  • install the npm module locally

    npm install github-wiki-sidebar -g
    
  • clone your wiki repository

    git clone <https://github.com/<username>/<my-project-name>.wiki.git
    cd <my-project-name>.wiki
    
  • execute the tutorial action with --git-push flag

    github-wiki-sidebar --action=tutorial --git-push
    

Leave the default options for all the queries besides the ordering. Here a list of all your files will be displayed with the option to change the default order. You can check an example below from the module's documentation:

enter image description here

In the end, your GitHub wiki sidebar is updated as the --git-push command will also commit your changes to origin repository. It adds the modified _Sidebar.md file an option.json file to store your options for any following updates.


It does not.

But you can use the side bar to make a custom 'table of contents' where you can put them in any order you want, with headings and everything, see below (from https://github.com/BrechtDeMan/WebAudioEvaluationTool/wiki)

You may want to have a look at the answers to this question.

enter image description here

Tags:

Wiki

Github