jooy2/vitepress-sidebar

Sidebar links don't respect resolve path?

Closed this issue · 1 comments

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?

Closing, I had an incorrect scanPath