Robzz / cargo-docset

Cargo subcommand to generate a Dash/Zeal docset for your Rust packages.
Apache License 2.0
100 stars 4 forks source link

Every module has a spurious ::index suffix #29

Closed lilyball closed 3 years ago

lilyball commented 3 years ago

Describe the bug I just built a docset for my workspace and deps, and to my surprise, all 860 modules have the suffix ::index.

To Reproduce I ran cargo-docset docset --all from within the first member crate of my workspace (due to #25), then opened the result in Dash.

Expected behavior The modules list should be correct.

Screenshots Screen Shot 2021-04-29 at 4 15 04 PM

Desktop (please complete the following information):

Robzz commented 3 years ago

Probably due to how the docset entries are created from the path of documentation html files, the index.html name of module files must leak through. Shouldn't be too hard a fix. I'm kind of amazed I never noticed this before, frankly.