gitbook-plugin-summary
gitbook-plugin-summary copied to clipboard
Nested Structure fails if there's another
For example if your structure looks like this
.
├── 1.
│ ├── README.md
│ └── TEST.md
├── 2.
│ └── README.md
├── book.json
├── README.md
└── SUMMARY.md
TEST.md
should be a child of 1.
not be along side of
Current SUMMARY.md
- [1.](1./README.md)
- [TEST.md](1./TEST.md)
- [2.](2./README.md)
Expected SUMMARY.md
- [1.](1./README.md)
- [TEST.md](1./TEST.md)
- [2.](2./README.md)
Same issue. If you're only going one folder deep you can just throw + 1 at the end of line 32 in renderer.js. If you've got nested folders below that it won't do the trick.
I also changed the - to * in renderer.js to get it to display correctly.
depthEntries(depth, `* [${title}]()`)
And
depthEntries(depth, `* [${title}](${path})`)
Working correctly for me now, but again, I'm only using one level of nested folders for this particular set of docs.
Sorry, it's long time since I didn't use this plugin myself. I'll check back as soon as I can.
Although if someone has time to come up with a PR, is more than welcome.
Same issue. If you're only going one folder deep you can just throw + 1 at the end of line 32 in renderer.js. If you've got nested folders below that it won't do the trick.
I also changed the - to * in renderer.js to get it to display correctly.
depthEntries(depth, `* [${title}]()`)
And
depthEntries(depth, `* [${title}](${path})`)
Working correctly for me now, but again, I'm only using one level of nested folders for this particular set of docs.
at line 35, also should add a line:
if (filePath.toLowerCase().indexOf('readme.md') !== -1) return
@topul would you be so kind to open a PR?