nixdoc icon indicating copy to clipboard operation
nixdoc copied to clipboard

Support empty prefix

Open roberth opened this issue 1 year ago • 1 comments

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:

  • https://github.com/NixOS/nixpkgs/pull/305847

roberth avatar Apr 21 '24 21:04 roberth

Sounds reasonable to me, PR appreciated!

infinisil avatar Apr 21 '24 22:04 infinisil