Skip to content

Duplicated links in documentation #308

Closed

Description

@smaret

I am trying to use mkdocs to document this project. I have built the documentation on read the docs sucessfully. However, several links in the menu bar on the left are duplicated. For example, "Introduction" appears twice in the menu bar, although the documentation (intro.md file) contains only one "Introduction" section. How can this be fixed?

Activity

  1. d0ugal commented on Jan 2, 2015

    @d0ugal
    Contributor

    The first is the page title and the second is the introduction section (the H1) on that page.

    You could either remove the title for the markdown file or put it in manually with HTML like: <h1>Introduction</h1>

  2. smaret commented on Jan 5, 2015

    @smaret
    Author

    Thanks for the suggestion, removing the title from the markdown file fixes the problem. I understand that the title is taken from the markdown.yml file, while the section names are taken from the markdown. So if one has a markdown with a title, it appears twice in the TOC.

    However I find this feature a bit counter intuitive. Why not taking the title from the markdown document, if not specified in the yml file?

  3. smaret commented on Jan 5, 2015

    @smaret
    Author

    Note that when building documentation from rst on readthedoc, the title is built from the section name in the .rst file. See for example this file which is rendered here.

  4. d0ugal commented on Jan 5, 2015

    @d0ugal
    Contributor

    @smaret We currently do this for the sake of simplicity I think. However, I agree that it would make sense to take the title from the markdown file itself.

  5. d0ugal commented on Jan 5, 2015

    @d0ugal
    Contributor

    See #316

  6. koppor commented on Jan 7, 2020

    @koppor

    Follow-up seems to be #318 and #1374.

    With the solution --> #318 (comment)

    (This page is the first Google hit for "mkdocs duplicate title")

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