FransBouma / DocNet

Your friendly static documentation generator, using markdown files to build the content.
http://fransbouma.github.io/DocNet/
248 stars 36 forks source link

Set index page for automatic page creation ? #83

Open myicq opened 6 years ago

myicq commented 6 years ago

Upgraded to v 0.16, really like the automatic page generation feature. Makes it trivial to add lots of auto-generated pages.

But if I generate a page in a non-English language, it's a bit annoying to have the automatic index page forced.

Would it be possible to add option to set an index page name, like "__index.md" or similar ? That way the logic from json file is continued, and it can be used or left out as desired.

I did try something like "Mylooptest" { "__index" : "loopdir/**" }

.. but it created an undesired result.

Alternatively - I could design my own auto-index-page, but I guess that would open a whole can of worms.

Thanks for a great product!

FransBouma commented 6 years ago

Why would a non-english language force an automatic index page but using english would not? Could you give an example?

myicq commented 6 years ago

Frans, did not mean to say that English does not. Sorry if it came out that way.

But since the English text "Please select one of the topics in this section:" is hardcoded, it will match English content, and look incorrect in other languages.

I ask this because I prefer to have the section name for subpages point to a page with content, and not just an index page with static layout. And unfortunately this is not possible on auto-generated content.

It's nothing urgent, or a big problem, just a "nice to have" extension of the auto-generation feature.