doc: print tilte of Kconfig on top
Add the symbol name on top and in the page title. This will enhance search results and adds a missing page header that is needed. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
9960dac090
commit
863c1708d3
1 changed files with 4 additions and 1 deletions
|
@ -528,9 +528,12 @@ def sym_header_rst(sym):
|
||||||
#
|
#
|
||||||
# - '.. title::' sets the title of the document (e.g. <title>). This seems
|
# - '.. title::' sets the title of the document (e.g. <title>). This seems
|
||||||
# to be poorly documented at the moment.
|
# to be poorly documented at the moment.
|
||||||
|
l = len(f"CONFIG_{sym.name}")
|
||||||
return ":orphan:\n\n" \
|
return ":orphan:\n\n" \
|
||||||
f".. title:: {sym.name}\n\n" \
|
f".. title:: CONFIG_{sym.name}\n\n" \
|
||||||
f".. kconfig:: CONFIG_{sym.name}\n\n" \
|
f".. kconfig:: CONFIG_{sym.name}\n\n" \
|
||||||
|
f"CONFIG_{sym.name}\n" \
|
||||||
|
f"{'#' * l}\n\n" \
|
||||||
f"{prompt_rst(sym)}\n\n" \
|
f"{prompt_rst(sym)}\n\n" \
|
||||||
f"Type: ``{kconfiglib.TYPE_TO_STR[sym.type]}``\n\n"
|
f"Type: ``{kconfiglib.TYPE_TO_STR[sym.type]}``\n\n"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue