1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-10-02 15:09:07 +00:00
conky/doc
tranquillity-codes 4b8d5eb34a
Add an above-all overlay mode for own_window_type, utility (#1402)
* Add libXdamage to flake.nix

* Add TYPE_UTILITY as above-all alternative to TYPE_OVERRIDE

* Click-through for TYPE_UTILITY

* Added libxfixes to MacOS CI workflow

* Disable building of XFIXES on MacOS

* Fix build for xinerama/xfixes on macos.

* Update Lua version check.

* Tidy this up.

* Fix BUILD_XFIXES on Linux

* Sigh, fix this.

---------

Co-authored-by: tranquillity-codes <dev@itycodes.org>
Co-authored-by: Brenden Matthews <brenden@brndn.io>
2023-02-16 22:03:14 -05:00
..
.gitignore Refactor docs, make a new website. 2022-09-30 18:21:24 -04:00
CMakeLists.txt Fix man page formatting. 2022-10-12 11:19:43 -04:00
config_settings.yaml Add an above-all overlay mode for own_window_type, utility (#1402) 2023-02-16 22:03:14 -05:00
lua.yaml Fix create/destroy/set/get Lua Rsvg functions. 2022-10-16 13:00:05 -04:00
man.md.j2 Fix dates in man page. 2022-10-16 12:15:10 -05:00
README.md More doc fixes. 2022-10-12 12:56:12 -04:00
render.py Fix dates in man page. 2022-10-16 12:15:10 -05:00
variables.yaml docs/variables.yaml: A better description for memlaundry. 2022-12-24 08:55:20 -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 render.py to process man.md.j2:
    $ ./render.py man.md.j2 > man.md
    
  2. Run pandoc to convert the markdown into a man page:
    $ pandoc --standalone -f markdown -t man 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. When building the docs with CMake, target files are written to the CMake build directory, and not necessarily the same path as the source files.