Skip to content

Commit

Permalink
fix: category pages
Browse files Browse the repository at this point in the history
  • Loading branch information
yongenaelf committed Jun 27, 2024
1 parent 356cd36 commit 4a83872
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 38 deletions.
4 changes: 0 additions & 4 deletions docs/docs/index.md

This file was deleted.

4 changes: 0 additions & 4 deletions docs/learn/index.md

This file was deleted.

4 changes: 0 additions & 4 deletions docs/quick-start/index.md

This file was deleted.

4 changes: 0 additions & 4 deletions docs/resources/index.md

This file was deleted.

4 changes: 0 additions & 4 deletions docs/tools/index.md

This file was deleted.

79 changes: 61 additions & 18 deletions sidebars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,67 @@ import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';
Create as many sidebars as you want.
*/

const sidebars: SidebarsConfig = [
"quick-start",
"learn",
"docs",
"tools",
"resources",
].reduce((acc, cur) => {
return {
...acc,
[cur]: [
{
type: "category",
label: " ",
collapsible: false,
items: [{ type: "autogenerated", dirName: cur }],
const sidebars: SidebarsConfig = {
"quick-start": [
{
type: "category",
label: "Quick Start",
collapsible: false,
link: {
type: "generated-index",
slug: "/quick-start",
},
],
};
}, {} as SidebarsConfig);
items: [{ type: "autogenerated", dirName: "quick-start" }],
},
],
learn: [
{
type: "category",
label: "Understanding aelf",
collapsible: false,
link: {
type: "generated-index",
slug: "/learn",
},
items: [{ type: "autogenerated", dirName: "learn" }],
},
],
docs: [
{
type: "category",
label: "Docs Reference",
collapsible: false,
link: {
type: "generated-index",
slug: "/docs",
},
items: [{ type: "autogenerated", dirName: "docs" }],
},
],
tools: [
{
type: "category",
label: "Tools",
collapsible: false,
link: {
type: "generated-index",
slug: "/tools",
},
items: [{ type: "autogenerated", dirName: "tools" }],
},
],
resources: [
{
type: "category",
label: "Resources",
collapsible: false,
link: {
type: "generated-index",
slug: "/resources",
},
items: [{ type: "autogenerated", dirName: "resources" }],
},
],
};

export default sidebars;

0 comments on commit 4a83872

Please sign in to comment.