rubygems / gemstash

A RubyGems.org cache and private gem server
MIT License
753 stars 120 forks source link

manpages contain `<!-- Automatically generated by Pandoc -->` #398

Open technicalpickles opened 1 month ago

technicalpickles commented 1 month ago

I noticed this while verifying https://github.com/rubygems/gemstash/issues/396 locally, but it seems to also affect the released gemstash:

CleanShot 2024-08-05 at 09 10 31

Seems to come from this template: https://github.com/jgm/pandoc-templates/blob/3430359b4c688dbedaa23d76575184191a12c4d9/default.man#L4-L7

I only looked briefly, but I haven't found an option to toggle it

technicalpickles commented 1 month ago

Looks like `--variable "pandoc-version=" is enough to toggle it. docs on the variable, but unclear if there's any other side effects.

olleolleolle commented 1 month ago

Um, we add that string ourselves! doc.rake has a line

::File.write to_file, "<!-- Automatically generated by Pandoc -->\n#{content}"