It's certainly useful that entities can be exported. This way we can skip long paths. However, what actually happens is JUST passing an entity for visibility. No docs exporting, no module hiding. Which is quite weird for me.
Why I think submodules would be useful?
Actually, it seems to me the solution would be pretty easy:
So the question is: is there any possibility to provide a nice, encapsulated module tree without sacrificing docpages right now? Includes are not a good solution.
More precisely: for exported entities. Meaning:
# foo.nim
const sth* = 5
const oth = 4
# bar.nim
from foo import sth
export sth
bar.nim docs should include sth but not oth. Also, it should be explicitly marked as exported in the docs unless foo.nim is package-private module.
Any updates on this?
I use re-exporting quite frequently in my projects, now I don't know how to generate docs. Turned out I need type-based generated more than my handwritten docs.