doc: fix missing titles on kconfig reference entry HTML files

Add a document.title='xxx' via on-page javascript for the
.rst files generated by the genrest.py script

Jira: ZEP-459
Change-Id: I2b3dbb97758cfa232006a0cd98c4bd8394d8183e
Signed-off-by: David Kinder <david.b.kinder@intel.com>
This commit is contained in:
David Kinder 2016-06-16 10:29:34 -07:00 committed by Inaky Perez-Gonzalez
parent a66780ea2a
commit 9c9ee5da8f

View file

@ -39,6 +39,8 @@ def print_items(items, outdir, indent):
f.write(" - %s\n" %p)
config = open("%s/%s.rst" % (outdir, var), "w")
config.write(":orphan:\n\n")
config.write(".. raw:: HTML\n\n <script>document.title = '%s'</script>\n\n"
%item.get_name())
config.write(".. option:: CONFIG_%s:\n" %item.get_name())
config.write(".. _CONFIG_%s:\n" %item.get_name())
if text: