mirror of
https://git.rtems.org/rtems-docs/
synced 2025-10-19 06:44:06 +08:00
waf: Add a title to the XML Catalogue.
This commit is contained in:
@@ -313,7 +313,7 @@ def cmd_configure_path(ctx):
|
||||
|
||||
cmd_configure(ctx)
|
||||
|
||||
def xml_catalogue(ctx, building):
|
||||
def xml_catalogue(ctx, building, title):
|
||||
#
|
||||
# The following is a hack to find the top_dir because the task does
|
||||
# provided a reference to top_dir like a build context.
|
||||
@@ -353,6 +353,11 @@ def xml_catalogue(ctx, building):
|
||||
root.setAttribute('date', 'today')
|
||||
cat.appendChild(root)
|
||||
|
||||
heading = cat.createElement('catalogue')
|
||||
text = cat.createTextNode(title)
|
||||
heading.appendChild(text)
|
||||
root.appendChild(heading)
|
||||
|
||||
builds = ['html']
|
||||
if ctx.env.BUILD_PDF == 'yes':
|
||||
builds += ['pdf']
|
||||
|
Reference in New Issue
Block a user