mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-17 02:25:09 +00:00
6adf6b9dd4
- Separated displays so they don't have to all be included in build even when the features are disabled. - Removed weird linker magic for display init and replaced it with straightforward (and faster) template functions that behave the same. - Replaced `disabled_display_output` classes with log messages. - Add explicit compiler errors when feature dependent headers get included where they shouldn't (wl, x11). - Switch BUILD_MOUSE_EVENTS dependency from OWN_WINDOW to BUILD_X11. - Other minor improvements to some existing code which shouldn't affect behavior. - Improve documentation. - Remove X11 from unrelated headers. - This reaches 0% unneeded X11 polution in the sources. - Reenabled parts of window_type which would work in Wayland. - Remove unneeded guards. - Display files are now no longer compiled if their features are disabled. Signed-off-by: Tin Švagelj <tin.svagelj@live.com> |
||
---|---|---|
.. | ||
.gitignore | ||
CMakeLists.txt | ||
config_settings.yaml | ||
lua.yaml | ||
man.md.j2 | ||
README.md | ||
render.py | ||
variables.yaml |
Conky docs
There are 3 YAML files which contain the documentation:
variables.yaml
: Documents each object/variableconfig_settings.yaml
: Documents global configuration settingslua.yaml
: Documents Conky's Lua API
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 thingdesc
: a markdown-formatted description of the thingargs
: optional list of argumentsdefault
: 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:
- Run
render.py
to processman.md.j2
:$ ./render.py man.md.j2 > man.md
- 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.