1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-26 04:17:33 +00:00
conky/doc
Brenden Matthews 670973a678 Update extras (syntax files) w/ new docs.
Generate the list of symbols for vim & nano syntax files using
docs data + jinja2.

Also refactored the doc handling a bit.
2022-10-04 18:18:08 -04:00
..
.gitignore Refactor docs, make a new website. 2022-09-30 18:21:24 -04:00
CMakeLists.txt Update extras (syntax files) w/ new docs. 2022-10-04 18:18:08 -04:00
config_settings.yaml Refactor docs. 2022-09-30 18:21:24 -04:00
lua.yaml Update extras (syntax files) w/ new docs. 2022-10-04 18:18:08 -04:00
man.md.j2 Refactor docs. 2022-09-30 18:21:24 -04:00
README.md Refactor doc component, update doc docs. 2022-09-30 18:21:24 -04:00
render.py Update extras (syntax files) w/ new docs. 2022-10-04 18:18:08 -04:00
variables.yaml Add note about optional args. 2022-10-04 15:29:33 -05:00

Conky docs

There are 3 YAML files which contain the documentation:

The desc field within the docs can be formatted with markdown, however do not include headings within the desc fields, as it will mess up the man page output. In markdown, headings begin with #.

The supported documentation fields are:

  • name: the name of the thing
  • desc: a markdown-formatted description of the thing
  • args: optional list of arguments
  • default: an optional default value, if applicable

Updating docs

The man page is based on man.md.j2 which is a Jinja2 template. The generated markdown is used to generate a final man page using pandoc. Generating the final man page is a 2 step process:

  1. Run docgen.py to process man.md.j2:
    $ ./docgen.py man.md.j2 > man.md
    
  2. Run pandoc to convert the markdown into a man page:
    $ pandoc -f markdown -t man.md > conky.1
    

These steps are also part of the CMake build, and can be executed by configuring the build with -DBUILD_DOCS=ON.