Skip to content

[πŸ“–] Document more thoroughly the use case for useContent with current page's headingsΒ #6678

@shairez

Description

@shairez

Suggestion

It's not obvious from reading the regular docs (not API), that useContent can retrieve all the headings of the loaded index.mdx (and it's only working for mdx files, not tsx by the way)

The only place that kinda mentioning it is:
https://qwik.dev/docs/api/#usecontent

We need to add a dedicated section under Qwik City (as a standalone or under "nested routes" or "layouts" or something)

This is useful when you want to create sidebar links of the current page's headings

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions