mdbook-generate-summary

Crates.iomdbook-generate-summary
lib.rsmdbook-generate-summary
version0.2.0
sourcesrc
created_at2019-03-27 05:09:07.040278
updated_at2019-06-14 18:05:46.930434
descriptionA tool to automatically generate mdBook SUMMARY.md files
homepagehttps://github.com/younata/mdbook-generate-summary
repositoryhttps://github.com/younata/mdbook-generate-summary
max_upload_size
id124103
size16,211
Rachel Brindle (younata)

documentation

README

mdbook-generate-summary

This is a CLI tool to generate the SUMMARY.md page for an mdBook repository.

This is a tool I wrote because I'm abusing mdBook to act as a knowledge repository, and not as an actual book. I wanted to streamline the process of adding pages as much as possible, and not have to worry too much about maintaining that SUMMARY.md.

This does, however, make a few assumptions on the layout of your book:

Each subpage has an accompanying README.md.

E.G. Your book will always have the following directory tree under the src/:

foo.md
bar/README.md
bar/something_else.md
baz/README.md

That is, you'll never have a directory with a .md file in it, that doesn't ALSO have a README.md file.

If you do, the program won't detect that edge case, and it won't do the right thing.

Commit count: 6

cargo fmt