-
Torn between two lovers…
That is, having this:
and using
This makes sense when ‘realms’ like However, Wikipedia in general has a flat structure: one level deep and unique page names, with disambiguation pages coming to the rescue of resolving naming conflicts. So, the questions is: how to best combine a predominantly flat name space for Wikilinks – so To support a flat If I miss some crucial information or insight, please enlighten me. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I’m not sure I understand the question. Just pick whichever one you prefer? You can’t have both a folder and a flat structure. But note that your sidebar hierarchy is orthogonal to where the pages live, so you can do something like this: export default {
pages: [
{
name: "Section 1",
path: "/section1",
pages: [
{name: "Page 1", path: "/page1"},
{name: "Page 2", path: "/page2"}
]
},
{
name: "Section 2",
open: false,
pages: [
{name: "Page 3", path: "/page3"},
{name: "Page 4", path: "/page4"}
]
}
]
}; |
Beta Was this translation helpful? Give feedback.
I’m not sure I understand the question. Just pick whichever one you prefer? You can’t have both a folder and a flat structure. But note that your sidebar hierarchy is orthogonal to where the pages live, so you can do something like this: