vuejs / vitepress

Vite & Vue powered static site generator.
https://vitepress.dev
MIT License
11.33k stars 1.83k forks source link

Automatic Headings in Sidebar #3755

Closed Taialt97 closed 2 weeks ago

Taialt97 commented 3 weeks ago

Describe the bug

Setting 'auto' to a sidebar property in config.js does not create automatic sidebar elements.

Reproduction

        sidebar: {
            '/projects/': 'auto',
        }

Expected behavior

A sidebar should be auto generated using the headings provided in the markdown files for the projects page

System Info

vitepress version: 1.0.2
vite version: 1.0.0
Node version: v21.6.1
OS version: Windows 11 Pro 23H2

Additional context

No response

Validations

brc-dd commented 2 weeks ago

Duplicate of #1297

Use the plugins mentioned there instead.