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

Error show and invalid navigation if a summary item has no reference #314

Open
lindeer opened this issue Nov 9, 2022 · 0 comments
Open

Comments

@lindeer
Copy link

lindeer commented Nov 9, 2022

Summary

Sometimes, a summary item without a reference is only a container of sub items, this case result in error showing and invalid navigation.

  • HonKit version: 4.0.4

Step to reproduce

  1. create a SUMMARY.md like below, make sure references are valid.
  2. run honkit serve
  • Link to code example:
# Summary

* [Introduction](README.md)

## Volume I

* Chapter One

  * [section1](chapter1/section1.md)

  * [section2](chapter1/section2.md)

* Chapter Two

  * [section1](chapter2/section1.md)

  * [section2](chapter2/section2.md)

## Volume II

Expected results

Show 'Chapter One' and 'Chapter Two'

Actual results

'Chapter One' show 'section1', 'Chapter Two' show 'section2', and navigation is invalid when go to 'Chapter One' page.

error

@lindeer lindeer changed the title Error show and invalid navigation if a summary item without a reference Error show and invalid navigation if a summary item has no reference Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant