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

Reject duplicate entries in SUMMARY.md #2612

Closed
szabgab opened this issue Mar 22, 2025 · 0 comments · Fixed by #2613
Closed

Reject duplicate entries in SUMMARY.md #2612

szabgab opened this issue Mar 22, 2025 · 0 comments · Fixed by #2613
Labels
A-Summary Area: The summary page, organization of pages. C-enhancement Category: Enhancement or feature request

Comments

@szabgab
Copy link
Contributor

szabgab commented Mar 22, 2025

Problem

If the same md file is mentioned more than once in the SUMMARY.md they will still generate the same html file so the prev and next links will lead to the same page. From the point of view of the hierarchy this will seen to be "broken".
See #1629

- [A](./a.md)
- [B](./b.md)
- [A](./a.md)
- [C](./c.md)

Should the next link in a.html lead to B or C? Both will be considered broken.

Proposed Solution

IMHO mdbook should report an error if the same file is mentioned twice.

Notes

No response

@szabgab szabgab added the C-enhancement Category: Enhancement or feature request label Mar 22, 2025
szabgab added a commit to szabgab/mdBook that referenced this issue Mar 22, 2025
@ehuss ehuss added the A-Summary Area: The summary page, organization of pages. label Mar 30, 2025
rik86189 pushed a commit to rik86189/mdBook that referenced this issue Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Summary Area: The summary page, organization of pages. C-enhancement Category: Enhancement or feature request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants