jooy2 / vitepress-sidebar

🔌 VitePress Sidebar is a plugin for VitePress that automatically configures and manages the sidebar of your page with simple settings.
https://vitepress-sidebar.cdget.com
MIT License
144 stars 7 forks source link

Sidebar links don't respect resolve path? #115

Closed IMB11 closed 9 months ago

IMB11 commented 9 months ago

My config:

sidebar: {
      '/getting-started': generateSidebar({
        documentRootPath: '/',
        useTitleFromFrontmatter: true,
        scanStartPath: "getting-started",
        resolvePath: "/getting-started",
        sortMenusByFrontmatterOrder: true,
        hyphenToSpace: true,
        includeFolderIndexFile: true,
        includeRootIndexFile: true,
        rootGroupText: 'Getting Started',
        rootGroupCollapsed: false
      })
    },

File structure:

image

Links: image

Shouldn't the links be prepended with the resolve path?

Eg: /getting-started/creating-project.html instead of /creating-project.html?

IMB11 commented 9 months ago

Closing, I had an incorrect scanPath