summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2017-09-04 03:10:24 (UTC)
committerChris Johns <chrisj@rtems.org>2017-09-04 03:10:24 (UTC)
commit7eed3cecc3d6f729550468d973641d13e9ce7956 (patch)
tree3b102a943647005d9ab33a81773f666963f9ae73
parent48c68f443af601d0b426e545a9508e20b9881667 (diff)
Fix main page release path and release page error message.
-rw-r--r--docs/docs.rtems.org/configuration.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/docs/docs.rtems.org/configuration.py b/docs/docs.rtems.org/configuration.py
index 99e2342..c14f871 100644
--- a/docs/docs.rtems.org/configuration.py
+++ b/docs/docs.rtems.org/configuration.py
@@ -246,11 +246,13 @@ class configuration:
tag = _release_tag(release)
if self.is_legacy_releases(name):
catalogue = "releases/%s.xml" % (name)
+ path = 'releases'
else:
catalogue = "releases/%s/catalogue.xml" % (label)
+ path = 'releases/%s' % (label)
return \
- '<script> loadCatalogue("%s", "releases", "%s", false); </script>\n' \
- % (catalogue, tag)
+ '<script> loadCatalogue("%s", "%s", "%s", false); </script>\n' \
+ % (catalogue, path, tag)
def _match_all(tag):
return True
@@ -286,7 +288,7 @@ class configuration:
tag = tagger(d)
if matcher(tag):
html += hindent + '<div id="rtems-catalogue-%s">\n' % (tag)
- html += hindent + ' No catalogue found.\n'
+ html += hindent + ' <b>%s</b> No catalogue found.\n' % (d[0])
html += hindent + '</div>\n'
scripts += ' ' * 3 + scripter(d)