Skip to content

Support Duplicate Entries in SUMMARY.md #2634

Open
@wilwade

Description

@wilwade

So v0.4.48 just came out with #2612 and that fixed one thing and broke another.

#2612 correctly had noted that if you have a duplicate entry in SUMMARY.md that the prev/next links are broken.

However, it feels like there should still be a way to have multiple entries still. Here is how we were using it:

# Summary

[Introduction](README.md)
[Quick Start Tutorial](./GettingStarted/QuickStart.md)

---

- [Guides](./GettingStarted/README.md)
    - [Quick Start](./GettingStarted/QuickStart.md)
    - [Other Guide](./GettingStarted/AnotherGuide.md)
- [Fundamentals](./Fundamentals/README.md)

In the best scenario, the first link Quick Start Tutorial should just be a link to Guides/Quick Start and the prev/next buttons are for that page. Previously, the prev/next buttons were just for the first entry, which worked ok because both pages were considered active, and unlike in #2612 because it was nested and away from the other, it wasn't as big of a deal.

Things tried:

  • Symlink to a separate file. This works, but has issues for devs on non-Unix. Leads to two urls, but I'm less worried about that.
  • Duplicate content. Works, but then we have to keep the two files in sync. Also leads to two urls, but I'm less worried about that.

Any other ideas on how to achieve the double pages in situations like this where it is desired?

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