Skip to content

Commit 1da556c

Browse files
kdheepakgithub-actions[bot]
authored andcommitted
Auto generate docs
1 parent 8b05eb0 commit 1da556c

File tree

1 file changed

+76
-47
lines changed

1 file changed

+76
-47
lines changed

doc/panvimdoc.txt

Lines changed: 76 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,21 @@
44
Table of Contents *panvimdoc-table-of-contents*
55

66
1. panvimdoc |panvimdoc-panvimdoc|
7-
2. TLDR |panvimdoc-tldr|
8-
3. Usage |panvimdoc-usage|
9-
4. Motivation |panvimdoc-motivation|
7+
2. Support This Project |panvimdoc-support-this-project|
8+
3. TLDR |panvimdoc-tldr|
9+
4. Usage |panvimdoc-usage|
10+
5. Motivation |panvimdoc-motivation|
1011
- Rationale |panvimdoc-motivation-rationale|
1112
- Background |panvimdoc-motivation-background|
12-
5. Goals |panvimdoc-goals|
13-
6. Features |panvimdoc-features|
14-
7. Specification |panvimdoc-specification|
15-
8. References |panvimdoc-references|
16-
9. Specification |panvimdoc-specification|
13+
6. Goals |panvimdoc-goals|
14+
7. Features |panvimdoc-features|
15+
8. Specification |panvimdoc-specification|
16+
9. References |panvimdoc-references|
17+
10. Specification |panvimdoc-specification|
1718
- External includes |panvimdoc-specification-external-includes|
1819
- Codeblocks |panvimdoc-specification-codeblocks|
19-
10. Title |panvimdoc-title|
20-
11. Heading |panvimdoc-heading|
20+
11. Title |panvimdoc-title|
21+
12. Heading |panvimdoc-heading|
2122
- Sub Heading 2 |panvimdoc-heading-sub-heading-2|
2223
- Markdown Links |panvimdoc-heading-markdown-links|
2324
- Linking to help tags |panvimdoc-heading-linking-to-help-tags|
@@ -42,10 +43,26 @@ Generate documentation in vimdoc.
4243

4344

4445

46+
::: center This software is released under a MIT License. :::
4547

4648

4749
==============================================================================
48-
2. TLDR *panvimdoc-tldr*
50+
2. Support This Project *panvimdoc-support-this-project*
51+
52+
If you’ve found this project helpful, please consider supporting its ongoing
53+
development and maintenance. You can sponsor me on GitHub Sponsors or Donate
54+
via Strip:
55+
56+
<https://github.com/sponsors/kdheepak>
57+
<https://donate.stripe.com/8wM9E7bBO9ZsbGUdQR>
58+
59+
Every bit of sponsorship helps, whether it’s to buy me a coffee or to enable
60+
me to dedicate more time to maintaining and improving this project. I sincerely
61+
appreciate your generosity and support!
62+
63+
64+
==============================================================================
65+
3. TLDR *panvimdoc-tldr*
4966

5067
1. Choose a name for your project, i.e. `${VIMDOC_PROJECT_NAME}`. See
5168
.github/workflows/panvimdoc.yml <./.github/workflows/panvimdoc.yml> as an
@@ -82,7 +99,7 @@ to the repo.
8299

83100

84101
==============================================================================
85-
3. Usage *panvimdoc-usage*
102+
4. Usage *panvimdoc-usage*
86103

87104

88105
USING GITHUB ACTIONS ~
@@ -159,7 +176,8 @@ use. Once you pick a version, you can pin it like so:
159176
For an example of how this is used, see one of the following workflows:
160177

161178
- kdheepak/panvimdoc <./.github/workflows/panvimdoc.yml>: doc/panvimdoc.txt <./doc/panvimdoc.txt>
162-
- kdheepak/tabline.nvim <https://github.com/kdheepak/tabline.nvim/blob/main/.github/workflows/ci.yml>: doc/tabline.txt <https://github.com/kdheepak/tabline.nvim/blob/main/doc/tabline.txt>
179+
- kdheepak/tabline.nvim <https://github.com/kdheepak/tabline.nvim/blob/main/.github/workflows/ci.yml>:
180+
doc/tabline.txt <https://github.com/kdheepak/tabline.nvim/blob/main/doc/tabline.txt>
163181

164182
Or see any of the packages here that depend on this action:
165183
<https://github.com/kdheepak/panvimdoc/network/dependents>
@@ -188,20 +206,11 @@ file.
188206
uses: docker://pandoc/latex:3.1
189207
with:
190208
args: >-
191-
--katex
192-
--from markdown+tex_math_single_backslash
193-
--to html5+smart
194-
--template="./scripts/template.html5"
195-
--css="/panvimdoc/css/theme.css"
196-
--css="/panvimdoc/css/skylighting-solarized-theme.css"
197-
--toc
198-
--wrap=none
199-
--metadata title="panvimdoc"
200-
doc/panvimdoc.md
201-
--lua-filter=scripts/include-files.lua
202-
--lua-filter=scripts/skip-blocks.lua
203-
-t html
204-
-o public/index.html
209+
--katex --from markdown+tex_math_single_backslash --to html5+smart
210+
--template="./scripts/template.html5" --css="/panvimdoc/css/theme.css"
211+
--css="/panvimdoc/css/skylighting-solarized-theme.css" --toc --wrap=none --metadata
212+
title="panvimdoc" doc/panvimdoc.md --lua-filter=scripts/include-files.lua
213+
--lua-filter=scripts/skip-blocks.lua -t html -o public/index.html
205214
- name: deploy to GitHub pages
206215
uses: JamesIves/github-pages-deploy-action@v4
207216
with:
@@ -239,7 +248,7 @@ You will need `pandoc v3.0.0` or greater for this script to work.
239248

240249

241250
==============================================================================
242-
4. Motivation *panvimdoc-motivation*
251+
5. Motivation *panvimdoc-motivation*
243252

244253
Writing user-friendly documentation is important for every successful software
245254
project. This is particularly true when writing documentation for users in the
@@ -255,11 +264,22 @@ of the README of the project), and the vim documentation can be autogenerated.
255264

256265
RATIONALE *panvimdoc-motivation-rationale*
257266

258-
1. **Simplicity**: Writing in Markdown is often more intuitive for developers. By converting from Markdown to vimdoc, authors can maintain the simplicity of Markdown while adhering to the vimdoc standards.
259-
2. **Unified Documentation**: Plugin authors can write their documentation just once (such as in the project’s README) and automatically generate vim documentation, ensuring consistency and saving time.
260-
3. **Preserving Vim Features**: Vimdoc isn’t just plain text; it supports syntax highlighting, tags, links, and careful formatting using whitespace. It’s essential to preserve these features when converting to ensure the quality and usefulness of the documentation. See <https://vimhelp.org/helphelp.txt.html#help-writing> or `@nanotree`’s project <https://github.com/nanotee/vimdoc-notes> for more information.
261-
4. **Leveraging Pandoc**: Unlike existing solutions, this project leverages Pandoc’s wide range of features, including support for multiple Markdown flavors and easy-to-write custom filters in Lua.
262-
5. **Interoperability**: The choice of Pandoc allows for enhanced flexibility, making it easier to extend functionality or even adapt the converter for other documentation formats in the future.
267+
1. **Simplicity**: Writing in Markdown is often more intuitive for developers. By converting from
268+
Markdown to vimdoc, authors can maintain the simplicity of Markdown while adhering to the vimdoc
269+
standards.
270+
2. **Unified Documentation**: Plugin authors can write their documentation just once (such as in the
271+
project’s README) and automatically generate vim documentation, ensuring consistency and saving
272+
time.
273+
3. **Preserving Vim Features**: Vimdoc isn’t just plain text; it supports syntax highlighting, tags,
274+
links, and careful formatting using whitespace. It’s essential to preserve these features when
275+
converting to ensure the quality and usefulness of the documentation. See
276+
<https://vimhelp.org/helphelp.txt.html#help-writing> or
277+
`@nanotree`’s project <https://github.com/nanotee/vimdoc-notes> for more information.
278+
4. **Leveraging Pandoc**: Unlike existing solutions, this project leverages Pandoc’s wide range of
279+
features, including support for multiple Markdown flavors and easy-to-write custom filters in
280+
Lua.
281+
5. **Interoperability**: The choice of Pandoc allows for enhanced flexibility, making it easier to
282+
extend functionality or even adapt the converter for other documentation formats in the future.
263283

264284

265285
BACKGROUND *panvimdoc-motivation-background*
@@ -290,23 +310,29 @@ HTML etc.
290310

291311

292312
==============================================================================
293-
5. Goals *panvimdoc-goals*
313+
6. Goals *panvimdoc-goals*
294314

295315
By offering a specification and reference implementation for converting Pandoc
296316
Markdown to vimdoc, this project aims to reduce friction in the documentation
297317
process for vim plugin authors.
298318

299319
Here are the specific goals that guide this project:
300320

301-
- **Readability**: The Markdown files must render correctly when presented as README files on platforms like GitHub, GitLab, or SourceHut.
302-
- **Web-Friendly HTML**: If converted to HTML using Pandoc, the Markdown files must be web-friendly and render appropriately.
303-
- **VimDoc Features**: The generated vim documentation must support essential features like links and tags.
304-
- **Aesthetically Pleasing**: The vim documentation must not only be functional but also visually pleasing in both vim and plain text files. This includes the appropriate use of columns and spacing.
305-
- **Guidelines**: While the format of built-in Vim documentation is a valuable reference, it is used as guidelines rather than strict rules.
321+
- **Readability**: The Markdown files must render correctly when presented as README files on
322+
platforms like GitHub, GitLab, or SourceHut.
323+
- **Web-Friendly HTML**: If converted to HTML using Pandoc, the Markdown files must be web-friendly
324+
and render appropriately.
325+
- **VimDoc Features**: The generated vim documentation must support essential features like links
326+
and tags.
327+
- **Aesthetically Pleasing**: The vim documentation must not only be functional but also visually
328+
pleasing in both vim and plain text files. This includes the appropriate use of columns and
329+
spacing.
330+
- **Guidelines**: While the format of built-in Vim documentation is a valuable reference, it is used
331+
as guidelines rather than strict rules.
306332

307333

308334
==============================================================================
309-
6. Features *panvimdoc-features*
335+
7. Features *panvimdoc-features*
310336

311337
This project offers a comprehensive suite of features designed to streamline
312338
the conversion process from Markdown to vimdoc:
@@ -316,11 +342,12 @@ the conversion process from Markdown to vimdoc:
316342
- Automatically handles the generation of links and tags.
317343
- Maintains markdown syntax for tables, ensuring proper rendering.
318344
- Allows for manual control through raw vimdoc syntax where necessary.
319-
- Offers the ability to include multiple Markdown files, providing flexibility in documentation structure.
345+
- Offers the ability to include multiple Markdown files, providing flexibility in documentation
346+
structure.
320347

321348

322349
==============================================================================
323-
7. Specification *panvimdoc-specification*
350+
8. Specification *panvimdoc-specification*
324351

325352
The specification is described in panvimdoc.md <./doc/panvimdoc.md> along with
326353
examples. The generated output is in panvimdoc.txt <./doc/panvimdoc.txt>. The
@@ -330,7 +357,7 @@ this script, or check the |panvimdoc-usage| section.
330357

331358

332359
==============================================================================
333-
8. References *panvimdoc-references*
360+
9. References *panvimdoc-references*
334361

335362
- <https://learnvimscriptthehardway.stevelosh.com/chapters/54.html>
336363
- <https://github.com/nanotee/vimdoc-notes>
@@ -341,7 +368,7 @@ this script, or check the |panvimdoc-usage| section.
341368

342369

343370
==============================================================================
344-
9. Specification *panvimdoc-specification*
371+
10. Specification *panvimdoc-specification*
345372

346373
See ./panvimdoc.txt <./panvimdoc.txt> for generated output of this file.
347374

@@ -388,7 +415,7 @@ generated vimdoc (for mappings, options etc).
388415

389416

390417
==============================================================================
391-
10. Title *panvimdoc-title*
418+
11. Title *panvimdoc-title*
392419

393420
The first line of the documentation that is generated will look something like
394421
this:
@@ -399,7 +426,7 @@ this:
399426

400427

401428
==============================================================================
402-
11. Heading *panvimdoc-heading*
429+
12. Heading *panvimdoc-heading*
403430

404431
Main headings are numbered.
405432

@@ -746,10 +773,12 @@ REMOVE EMOJIS *panvimdoc-heading-remove-emojis*
746773
:PACKAGE: INSTALLATION ~
747774

748775
==============================================================================
749-
12. Links *panvimdoc-links*
776+
13. Links *panvimdoc-links*
750777

751778
1. *Docs*: https:/img.shields.io/badge/docs-dev-blue.svg
752779
2. *Build*: https:/github.com/kdheepak/panvimdoc/actions/workflows/test.yml/badge.svg?branch=main
780+
3. *Sponsor @kdheepak*: https:/img.shields.io/badge/GitHub_Sponsor-%E2%9D%A4-blue
781+
4. *Donate*: https:/img.shields.io/badge/Donate_Via_Stripe-%E2%9D%A4-blue
753782

754783
Generated by panvimdoc <https://github.com/kdheepak/panvimdoc>
755784

0 commit comments

Comments
 (0)