Skip to content

Commit dd8c09d

Browse files
kdheepakactions-user
authored andcommitted
Auto generate docs
1 parent d669264 commit dd8c09d

File tree

1 file changed

+18
-26
lines changed

1 file changed

+18
-26
lines changed

doc/panvimdoc.txt

Lines changed: 18 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ that goal. This way, plugin authors will have to write documentation just once
2020
as part of the README of the project, and have the vim documentation
2121
autogenerated.
2222

23-
Writing vim documentation requires conforming to a few simple rules. Although >
24-
vimdoc < is not a well defined spec, it does have some nice syntax highlighting
25-
and features like tags and links when a text file is in > vimdoc < compatible
26-
format and when the > filetype=help < in vim. Also, typically, while vim
23+
Writing vim documentation requires conforming to a few simple rules. Although
24+
>vimdoc< is not a well defined spec, it does have some nice syntax highlighting
25+
and features like tags and links when a text file is in >vimdoc< compatible
26+
format and when the >filetype=help< in vim. Also, typically, while vim
2727
documentation is just plain text files, they are usually formatted well using
2828
whitespace. Preserving these features and characteristics is important.
2929

@@ -96,18 +96,10 @@ comment on this issue: |https://github.com/kdheepak/panvimdoc/issues/1|.
9696
The following are the metadata fields that the custom writer uses:
9797

9898

99-
->
100-
project
101-
< (String) _required_: This is typically the plugin name. This is prefixed to all generated tags
102-
->
103-
vimdoctitle
104-
< (String) _required_: This is the name of the documentation file that you want to generate
105-
->
106-
vimversion
107-
< (String) _optional_: The version vim / neovim that the plugin is targeting. If not present, the version of vim in the available environment is used.
108-
->
109-
toc
110-
< (Boolean) _optional_: Whether to generate table of contents or not
99+
->project< (String) _required_: This is typically the plugin name. This is prefixed to all generated tags
100+
->vimdoctitle< (String) _required_: This is the name of the documentation file that you want to generate
101+
->vimversion< (String) _optional_: The version vim / neovim that the plugin is targeting. If not present, the version of vim in the available environment is used.
102+
->toc< (Boolean) _optional_: Whether to generate table of contents or not
111103

112104

113105
Example:
@@ -124,7 +116,7 @@ Example:
124116

125117
USING GITHUB ACTIONS *panvimdoc-using-github-actions*
126118

127-
Add the following to > ./.github/workflows/pandocvim.yml <:
119+
Add the following to >./.github/workflows/pandocvim.yml<:
128120

129121
>
130122
name: panvimdoc
@@ -149,7 +141,7 @@ Add the following to > ./.github/workflows/pandocvim.yml <:
149141
<
150142

151143

152-
Choose > INPUT_FILENAME < and > OUTPUT_FILENAME < appropriately.
144+
Choose >INPUT_FILENAME< and >OUTPUT_FILENAME< appropriately.
153145

154146
==============================================================================
155147
7. References *panvimdoc-references*
@@ -173,8 +165,8 @@ CODEBLOCKS *panvimdoc-codeblocks*
173165
<
174166

175167

176-
Alternatively, you can use > vimdoc < as the language for the code block to
177-
write code that will be inserted into the final document.
168+
Alternatively, you can use >vimdoc< as the language for the code block to write
169+
code that will be inserted into the final document.
178170

179171
For example, the following:
180172

@@ -252,15 +244,15 @@ link.
252244
MAPPINGS *panvimdoc-mappings*
253245

254246
Any markdown header of level 3 is a special header. It can be used to generate
255-
documentation of mappings. All content in curly braces > {...} < is dropped and
256-
a tag is created.
247+
documentation of mappings. All content in curly braces >{...}< is dropped and a
248+
tag is created.
257249

258-
The heading > ### pv{motion} < becomes the tag > *projectName-pv* <.
250+
The heading >### pv{motion}< becomes the tag >*projectName-pv*<.
259251

260-
Additionally, content in square brackets > [...] < is also dropped for creating
252+
Additionally, content in square brackets >[...]< is also dropped for creating
261253
the tag name.
262254

263-
The heading > ### :[range]Command < becomes the tag > *projectName-:Command* <.
255+
The heading >### :[range]Command< becomes the tag >*projectName-:Command*<.
264256

265257
See following headings as examples:
266258

@@ -309,7 +301,7 @@ The following vimdoc mapping is generated:
309301
<
310302

311303

312-
You can use > {doc=AdditionalTag} < to generate one additional tag for each
304+
You can use >{doc=AdditionalTag}< to generate one additional tag for each
313305
header.
314306

315307
*panvimdoc-pv*

0 commit comments

Comments
 (0)