From 5d922fc53b5f979a74bda855a056d2822f658f48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Kr=C3=B6g?= Date: Sun, 9 Feb 2020 15:50:40 +0100 Subject: [PATCH] Cleanup navigation.tmpl and the generated html - Add a function that is used to generate all four types of member lists. - Only use one line per list item. - Don't generate empty `class=""` attributes when item is stable. - Remove closing `` tag, as is allowed by the html 5 standard. Overall this reduces the filesize for the generated html pages by ~33%. --- .../jsdoc/api/template/tmpl/navigation.tmpl | 122 ++++++------------ 1 file changed, 42 insertions(+), 80 deletions(-) diff --git a/config/jsdoc/api/template/tmpl/navigation.tmpl b/config/jsdoc/api/template/tmpl/navigation.tmpl index efec83c155..1fb92b4b28 100644 --- a/config/jsdoc/api/template/tmpl/navigation.tmpl +++ b/config/jsdoc/api/template/tmpl/navigation.tmpl @@ -1,95 +1,57 @@ { ?> +
  • { + const cls = v.stability && v.stability !== 'stable' ? ' class="unstable"' : ''; ?> +
  • > +