@@ -12,9 +12,7 @@ will then use [pandoc](https://command-not-found.com/pandoc) to convert them.
1212$ bashly render :mandoc docs
1313```
1414
15- ## Special template features
16-
17- ### Preview
15+ ## Viewing the output
1816
1917Setting the environment variable ` PREVIEW ` to the full command you wish
2018to preview, will prompt the renderer to show the output using the ` man `
@@ -28,13 +26,27 @@ $ PREVIEW="cli download" bashly render :mandoc docs
2826$ PREVIEW=" cli download" bashly render :mandoc docs --watch
2927```
3028
31- ### Footer
29+ In addition, you can use one of the following commands:
30+
31+ ``` bash
32+ # View the man page interactively
33+ $ man docs/cli-download.1
34+
35+ # Print the man page to stdout
36+ $ man docs/cli-download.1 | col -bx
37+ ```
38+
39+ ## Supported custom definitions
40+
41+ Add these definitions to your ` bashly.yml ` to render them in your
42+ markdown:
43+
44+ ### Footer: ` x_mandoc_footer `
3245
33- You can add additional sections to any of the generated man pages, by
34- adding a property named ` x_mandoc_footer ` to any of your commands in
35- your ` bashly.yml ` .
46+ Add additional sections to your man pages. This field is expected
47+ to be in markdown format.
3648
37- This field should contain a markdown string, for example:
49+ #### Example
3850
3951``` yaml
4052x_mandoc_footer : |-
@@ -43,13 +55,11 @@ x_mandoc_footer: |-
4355 Report issues at <https://github.com/lanalang/smallville>
4456` ` `
4557
46- ### Authors
58+ ### Authors: ` x_mandoc_authors`
4759
48- You can specify an authors string that will be added to the man page,
49- by adding a property named ` x_mandoc_authors` to any of your commands
50- in your `bashly.yml`.
60+ Add an authors string to your man pages.
5161
52- For example :
62+ # ### Example
5363
5464` ` ` yaml
5565x_mandoc_authors: Lana Lang
0 commit comments