libxkbcommon/doc/cool-uris.yaml

65 lines
1.7 KiB
YAML
Raw Normal View History

# WARNING: This file is autogenerated by: scripts/ensure-stable-doc-urls.py
# Do not edit manually.
annotated.html: []
classes.html: []
deprecated.html: []
dir_63ce773eee1f9b680e6e312b48cc99ca.html: []
dir_891596f32582d3133e8915e72908625f.html: []
dir_d44c64559bbebec7f509842c48db8b23.html: []
dir_e68e8157741866f444e17edd764ebbae.html: []
Structured log messages with a message registry Currently there is little structure in the log messages, making difficult to use them for the following use cases: - A user looking for help about a log message: the user probably uses a search engine, thus the results will depend on the proper indexing of our documentation and the various forums. It relies only on the wording of the message, which may change with time. - A user wants to filter the logs resulting of the use of one of the components of xkbcommon. A typical example would be testing xkeyboard-config against libxkbcommon. It requires the use of a pattern (simple words detection or regex). The issue is that the pattern may become silently out-of-sync with xkbcommon. A common practice (e.g. in compilers) is to assign unique error codes to reference theses messages, along with an error index for documentation. Thus this commit implements the following features: - Create a message registry (message-registry.yaml) that defines the log messages produced by xkbcommon. This is a simple YAML file that provides, for each message: - A unique numeric code as a short identifier. It is used in the output message and thus can be easily be filtered to spot errors or searched in the internet. It must not change: if the semantics of message changes, it is better to introduce a new message for clarity. - A unique text identifier, meant for two uses: 1. Generate constants dealing with log information in our code base. 2. Generate human-friendly names for the documentation. - A type: currently warning or error. Used to prefix the constants (see hereinabove) and for basic classification in documentation. - A short description, used as concise and mandatory documentation. - An optionnal detailed description. - Optional examples, intended to help the user to fix issues themself. - Version of xkbcommon it was added. For old entries this often unknown, so they will default to 1.0.0. - Version of xkbcommon it was removed (optional) No entry should ever be deleted from this index, even if the message is not used anymore: it ensures we have unique identifiers along the history of xkbcommon, and that users can refer to the documentation even for older versions. - Add the script update-message-registry.py to generate the following files: - messages.h: message code enumeration for the messages currently used in the code base. Currently a private API. - message.registry.md: the error index documentation page. - Modify the logging functions to use structured messages. This is a work in progress.
2023-09-18 10:17:34 -06:00
error-index.html: []
files.html: []
functions.html: []
functions_func.html: []
functions_type.html: []
functions_vars.html: []
globals.html: []
globals_defs.html: []
globals_enum.html: []
globals_eval.html: []
globals_func.html: []
globals_type.html: []
graph_legend.html: []
group__components.html: []
group__compose.html: []
group__context.html: []
group__include-path.html: []
group__keymap.html: []
group__keysyms.html: []
group__logging.html: []
group__registry.html: []
group__state.html: []
group__x11.html: []
index.html: []
keymap-text-format-v1.html:
- md_doc_keymap_format_text_v1.html
md_doc_quick_guide.html: []
md_doc_user_configuration.html: []
modules.html: []
pages.html: []
rule-file-format.html:
- md_doc_rules_format.html
structrxkb__context.html: []
structrxkb__iso3166__code.html: []
structrxkb__iso639__code.html: []
structrxkb__layout.html: []
structrxkb__model.html: []
structrxkb__option.html: []
structrxkb__option__group.html: []
structxkb__compose__state.html: []
structxkb__compose__table.html: []
structxkb__context.html: []
structxkb__keymap.html: []
structxkb__rule__names.html: []
structxkb__state.html: []
todo.html: []
xkb-intro.html: []
xkbcommon-compatibility.html:
- md_doc_compat.html
xkbcommon-compose_8h.html: []
xkbcommon-keysyms_8h.html: []
xkbcommon-names_8h.html: []
xkbcommon-x11_8h.html: []
xkbcommon_8h.html: []
xkbregistry_8h.html: []