timothycrosley / portray

Your Project with Great Documentation.
MIT License
861 stars 74 forks source link

fix issue #71 #72

Closed floriandeboissieu closed 3 years ago

floriandeboissieu commented 3 years ago

Check recursively if any .md file exist in nested directories to avoid empty nav menu

floriandeboissieu commented 3 years ago

Sorry I forgot the branch creation issue/71, if you prefer I can do the PR again with the right branch naming

timothycrosley commented 3 years ago

This is great! Thank you!

I'm not at all picky about branch naming :)

floriandeboissieu commented 3 years ago

For the record, it may be useful to apply recursivity in _nested_doc to list of path generated by glob('docs_dir/*/.md') before the call to _nested_doc once and for all, instead of calling glob recursively. This way it would be possible to have an option "filter" for specific exclusion/inclusion with patterns that could be applied to the list before sending it to _nested_doc.