Folders or grouping pages in GitHub Wikis

Hi!

I was working on translating the documentation of a project and I stumble in a problem. How to organize documentation of diferent languages in a wiki? Is there a way to group pages in folders or in collapsable groups?

As far as I see, all the pages get placed in the same “level”.

Any ideas? thanks in avance.

Dknacht

4 Likes

Hi @dknacht,

While there currently isn’t a way to group pages by folder or in collapsible groups, you could set up a custom sidebar to achieve a similar effect which would allow you to link to each Wiki page in categorised lists. It might also be worth contacting GitHub Support to note this as a feature request.

Would something like that work for you? ​If there’s anything else I can help you with, let me know; so happy to help further!

Kindest regards,
Matthew

9 Likes

Hi! @matthewheath
Thanks so much for your answer.
I will check the custom sidebars, it looks like they are going to do the job.
In this page the image shows pages listed in embedded lists. Do you know how to make this?

Thanks so much again and best regards.
Dknacht.

1 Like

Hello @dknacht,

Sure — they’re just HTML code using list elements.

The actual code would look something like

<ul>
  <li>Top level page
    <ul>
      <li>Sub-page</li>
      <li>Sub-page two</li>
    </ul>
</li>
</ul>

That would then give you a nested list like the image shows.

2 Likes

Great!,

That’s what I needed.

I am going to conact github support tho so see if they can implement something.

Thanks man!

Have a good day!.

Dknacht

Please implement this! 

I’m sendin a message to support as well.

1 Like

Hi @dknacht and @tallberto,

Thanks for this feedback! We’re always working to improve GitHub and the GitHub Community Forum, and we consider every suggestion we receive. I’ve logged your feature request in our internal feature request list. Though I can’t guarantee anything or share a timeline for this, I can tell you that it’s been shared with the appropriate teams for consideration.

Please let me know if you have any other questions.

Thanks!

29 Likes

Hi, where exactly do you add the HTML formating for the list? In the first page of the section which you want to create?

1 Like

I’m trying to do this too and I cannot get it to work, I’ve googled it extensively and found a couple of links, specifically https://github.com/tajmone/github-tests/wiki/subpage, https://stackoverflow.com/questions/11088285/github-wiki-directories and https://github.com/KirstieJane/STEMMRoleModels/wiki/Creating-new-folders-in-GitHub-repository-via-the-browser

When I try it, I don’t get anything like a subfolder, just a new file with the path as it’s name and the forward slashes replaced with space, like this

subfolder subpage.md

When I try creating the sub sidebar it just overwrites the original sidebar and the Create Custom Sidebar dissapears, which is not what I want.

I know this can be done because I’ve seen several github wikis which do this. But I don’t know exactly how. Please help, going slightly nuts here

1 Like