xcatliu / pagic

A static site generator powered by Deno + React
https://pagic.org
MIT License
1.65k stars 103 forks source link

Multi-level navigation support #29

Closed hylerrix closed 4 years ago

hylerrix commented 4 years ago

Is your feature request related to a problem? Please describe.

Pagic now supports Level 1 navigation, But I want Secondary navigation support.

Describe the solution you'd like

Something like this...?:

sidebar: [
    'README.md',
    {
      link: 'articles/basic/README.md',
      children: [
        {
          link: 'articles/basic/chapter01/README.md',
          children: [
            'articles/basic/chapter01/install-and-hello-world.md',
          ]
        }
      ]
    },
]
hylerrix commented 4 years ago

And another feature which I want is pagic.config.tx hot-reload support.

Now, when I change the pagic.config.tx source code, terminal says [Pagic] Copy ...pagic.config.ts but must re-run deno run script to refresh.

xcatliu commented 4 years ago

Good suggestion. Will support these in the next version

xcatliu commented 4 years ago

Published in version v0.8.0🎉

Support multi-level sidebar and watch pagic.config.ts changes