Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: toc #1219

Closed
wants to merge 6 commits into from
Closed

feat: toc #1219

wants to merge 6 commits into from

Conversation

poyoho
Copy link

@poyoho poyoho commented Aug 21, 2022

fix: #794

config sidebar

{
  text: 'TOC2',
  toc: '/toc2/',
  items: [
    {
      text: 'Multiple levels outline - 2',
      link: '/frontmatter/multiple-levels-outline'
    },
    {
      text: 'Test Nested TOC - 2',
      items: [
        {
          text: 'Hello1 - 2',
          link: '/toc2/hello'
        },
      ]
    },
    {
      text: 'Hello2 - 2',
      link: '/toc2/hello2'
    },
  ]
}

and then add the index.md into /toc2/

---
sidebar: false
page: true
footer: false
---

<script setup>
import { VPToc } from 'vitepress/theme'
</script>

<VPToc />

image

@kiaking
Copy link
Member

kiaking commented Jan 20, 2023

Closing due to its becoming obsolete. We do want this feature, but I think we should discuss "how" and API and such. Let's follow up on #794

@kiaking kiaking closed this Jan 20, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add "Index Page" feature
2 participants