Skip to content

Commit c3f1752

Browse files
committed
Make facter CLI synopsis a code block
1 parent 4c0761b commit c3f1752

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/puppet_references/facter/facter_cli.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ def build_all
3131
puts "Encountered an error while building the facter cli docs, will abort: #{err}"
3232
return
3333
end
34-
content = make_header(header_data) + PREAMBLE + raw_text
34+
content = make_header(header_data) + PREAMBLE +
35+
raw_text.gsub(/SYNOPSIS\n--------\n\s\s(.*?)$/, "SYNOPSIS\n--------\n" + "\s\s\s\s" + '\1')
3536
filename = OUTPUT_DIR + 'cli.md'
3637
filename.open('w') {|f| f.write(content)}
3738
puts 'CLI documentation is done!'

0 commit comments

Comments
 (0)