Skip to content

Feature request: in mkdocs.yml, allow pointing nav items to anchor sections in pages #3223

Closed as not planned

Description

@pereorga

It would be great if navigation items set in mkdocs.yml pointing to Markdown pages can include anchors, so the browser scrolls to that section automatically.

Related:

Activity

  1. oprypin commented on May 19, 2023

    @oprypin
  2. oprypin commented on May 19, 2023

    @oprypin
  3. pereorga commented on May 19, 2023

    @pereorga
    Author

    Sorry, this was unclear. Anchor links don't work when linking to markdown pages (the links point to the markdown files)

    A relative path to 'test/index.md#test' is included in the 'nav' configuration, which is not found in the documentation files
    
  4. changed the title [-]Feature request: allow pointing nav items to anchor sections in mkdocs.yml[/-] [+]Feature request: in mkdocs.yml, allow pointing nav items to anchor sections in pages[/+] on May 19, 2023
  5. oprypin commented on May 19, 2023

    @oprypin
  6. pereorga commented on May 23, 2023

    @pereorga
    Author

    Thanks for looking into this. In our case, we don't have repeated items as of now, but I recognize the point of not being a right fit.

    Regarding the warnings / errors on strict mode, should we create an additional issue?

  7. pawamoy commented on Apr 14, 2024

    @pawamoy
    Contributor

    During a backlog grooming call we decided to close this as out of scope because of the reasons mentioned by @oprypin. To us this is what the table of contents is for. Feel free to comment further of course 🙂

  8. ashishguptaiitb commented on Sep 15, 2025

    @ashishguptaiitb

    Regarding the warnings / errors on strict mode, should we create an additional issue?

    FYI, I've created issue #4026 related to build warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions