adrianvlupu / C4-Builder

This is a documentation builder. You feed it .md and .puml and it exports a site, pdf, or a markdown with navigation.
https://adrianvlupu.github.io/C4-Builder/
MIT License
563 stars 93 forks source link

Support dots in folder names #13

Closed hkdobrev closed 4 years ago

hkdobrev commented 4 years ago

When using folder names like example.com the .com bit is parsed as a file extension even for folders and then you see just example in the sidebar.

If one wants different apps with their domain names or even worse - subdomains be in the sidebar, it wouldn't look great.

If we have example.com.foo, it would show example.com as only the last extension is removed.

So if we have subdomain.example.com, it would render subdomain.example.

With this change, it would get the entire filename of the folders regardless of dots. It would just strip the path to the folder based on directory separators.

adrianvlupu commented 4 years ago

Thanks for the commit