docs.page icon indicating copy to clipboard operation
docs.page copied to clipboard

feat: "categories" should be able to have content

Open Hunam6 opened this issue 3 years ago • 0 comments

This config

"sidebar": [
	["index.mdx", "/"],
	["page-at-root.mdx", "/page-at-root"],
	[
		["part-one/index.mdx", "/part-one"], // this isn't allowed currently
		[
			["part-one/abc.mdx", "/part-one/abc"]
		]
	]
]

should make those pages available: /, /page-at-root, /part-one and /part-one/abc.


Right now the best equivalent is this

"sidebar": [
	["index.mdx", "/"],
	["page-at-root.mdx", "/page-at-root"],
	[
		"part-one",
		[
			["part-one/index.mdx", "/part-one"],
			["part-one/abc.mdx", "/part-one/abc"]
		]
	]
]

Which doesn't really work and even creates a bug when we click on "part-one/abc.mdx":

Screenshot 2022-05-06 at 15 06 52

Hunam6 avatar May 06 '22 13:05 Hunam6