Fix missing output in generated CLI/config 69/3169/2
authorChris Luke <chrisy@flirble.org>
Mon, 26 Sep 2016 22:51:56 +0000 (15:51 -0700)
committerDamjan Marion <dmarion.lists@gmail.com>
Tue, 27 Sep 2016 18:15:58 +0000 (18:15 +0000)
The templates were looking for the name of the CLI_COMMAND
and CONFIG_FUNCTION structures in the srong place.

Change-Id: I709d6716216173ba6a7ed41a260728238f96d2db
Signed-off-by: Chris Luke <chrisy@flirble.org>
doxygen/siphon/process.py
doxygen/siphon_templates/clicmd/item_format.md
doxygen/siphon_templates/syscfg/item_format.md

index c7f8f1a..34e829c 100644 (file)
@@ -257,6 +257,7 @@ class Siphon(object):
                     "directory": o['meta']['directory'],
                     "file": o['meta']['file'],
                     "macro": o['macro'],
+                    "name": o['name'],
                     "key": key,
                     "label": self.item_label(group, key),
                 }
index 77d0484..288dae4 100644 (file)
@@ -31,7 +31,7 @@
 ### Long help
 
 {{ v['long_help'] }}
-{%- endif %}
+{% endif %}
 {% if 'siphon_block' in item['meta'] %}
 {% set sb = item["meta"]["siphon_block"] %}
 {% if sb %}
 {{ sb }}
 {% endif %}
 {% endif %}
-{% if "item" in meta or "function" in v %}
+{% if 'name' in meta or 'function' in v %}
 {# Gives some developer-useful linking #}
 
 ### Declaration and implementation
-{% if "item" in meta %}
+{% if "name" in meta %}
 
 {{ "Declaration: @ref %s (@ref %s line %d)" %
-   (meta['item'], meta["file"], item["meta"]["line_start"]) }}
+   (meta['name'], meta["file"], item["meta"]["line_start"]) }}
 {% endif %}
 {% if "function" in v %}
 
index 5d3bb5c..5313611 100644 (file)
 {{ sb }}
 {% endif %}
 {% endif %}
-{% if "item" in meta or "function" in item %}
+{% if "name" in meta or "function" in item %}
 {# Gives some developer-useful linking #}
 
 ### Declaration and implementation
-{% if "item" in meta %}
+{% if "name" in meta %}
 
 {{ "Declaration: @ref %s (@ref %s line %d)" %
-   (meta['item'], meta["file"], item["meta"]["line_start"]) }}
+   (meta['name'], meta["file"], item["meta"]["line_start"]) }}
 {% endif %}
 {% if "function" in item %}