nix-community / nixdoc

Tool to generate documentation for Nix library functions [maintainer=@infinisil]
GNU General Public License v3.0
123 stars 15 forks source link

Support empty prefix #119

Closed roberth closed 2 months ago

roberth commented 4 months ago

I'm trying to write a pkgs.moduleSystem library (for the option docs generating part, replacing nixosOptionsDoc), but passing that as a prefix results in rather long titles. I figured --prefix "" would do the right thing, but that still generates a "separator", resulting in headers like .rendering, which isn't quite right. The default prefix is lib, not an internal representation for "no prefix at all", unfortunately.

I propose that --prefix "" will be the accepted syntax for prefixing nothing at all; not even the separating ..

Context:

infinisil commented 4 months ago

Sounds reasonable to me, PR appreciated!