docs: show aliases for settings in man nm-settings-nmcli

This commit is contained in:
Thomas Haller 2020-06-12 14:01:26 +02:00
parent 3347278799
commit 125cbf5737
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728
3 changed files with 12 additions and 2 deletions

View file

@ -33,10 +33,14 @@ main (int argc, char *argv[])
g_print ("<nm-setting-docs>\n");
for (i_sett_infos = 0; i_sett_infos < G_N_ELEMENTS (nm_meta_setting_infos_editor); i_sett_infos++) {
const NMMetaSettingInfoEditor *sett_info = &nm_meta_setting_infos_editor[i_sett_infos];
gs_free char *tmp1 = NULL;
gs_free char *tmp_s1 = NULL;
gs_free char *tmp_s2 = NULL;
g_print ("%s<setting", _indent_level (INDENT));
g_print (" name=%s >\n", tmp1 = _xml_escape_attribute (sett_info->general->setting_name));
g_print (" name=%s", tmp_s1 = _xml_escape_attribute (sett_info->general->setting_name));
if (sett_info->alias)
g_print ("\n%salias=%s", _indent_level (INDENT + 9), tmp_s2 = _xml_escape_attribute (sett_info->alias));
g_print (" >\n");
for (i_property = 0; i_property < sett_info->properties_num; i_property++) {
const NMMetaPropertyInfo *prop_info = sett_info->properties[i_property];

View file

@ -120,6 +120,11 @@
<xsl:template match="setting">
<refsect2>
<title><xsl:value-of select="@name"/> setting</title>
<xsl:if test="@alias">
<para>
Alias: <xsl:value-of select="@alias"/>
</para>
</xsl:if>
<para><xsl:value-of select="@description"/>.</para>
<para>
Properties:

View file

@ -145,6 +145,7 @@ for setting_name in iter_keys_of_dicts(settings_roots, key_fcn_setting_name):
node_set_attr(setting_node, 'description', settings)
node_set_attr(setting_node, 'name_upper', settings)
node_set_attr(setting_node, 'alias', settings)
for property_name in iter_keys_of_dicts(properties):