Class: GrafanaReporter::Asciidoctor::Help
- Inherits:
-
Object
- Object
- GrafanaReporter::Asciidoctor::Help
- Defined in:
- lib/grafana_reporter/asciidoctor/help.rb
Overview
This class generates the functional help documentation for the asciidoctor report. It can create the documentation for github markdown, as well as in asciidoctor syntax.
Instance Method Summary collapse
-
#asciidoctor(headline_level = 2) ⇒ String
Asciidoctor compatible documentation.
-
#github(headline_level = 2) ⇒ String
Github markdown compatible documentation.
Instance Method Details
#asciidoctor(headline_level = 2) ⇒ String
Returns asciidoctor compatible documentation.
12 13 14 |
# File 'lib/grafana_reporter/asciidoctor/help.rb', line 12 def asciidoctor(headline_level = 2) help_text(.merge(level: headline_level)) end |
#github(headline_level = 2) ⇒ String
Returns github markdown compatible documentation.
18 19 20 |
# File 'lib/grafana_reporter/asciidoctor/help.rb', line 18 def github(headline_level = 2) "#{toc}\n\n#{help_text(.merge(level: headline_level))}" end |