Skip to content

Commit 2a9046e

Browse files
committed
comment
1 parent bced1e3 commit 2a9046e

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

lib/src/generator/templates.aot_renderers_for_html.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,8 @@ String renderCategoryRedirect(CategoryTemplateData context0) {
263263
buffer.writeEscaped(context0.self.href);
264264
buffer.write('''">New URL</a></p>
265265
</body>
266-
</html>''');
266+
</html>
267+
''');
267268

268269
return buffer.toString();
269270
}

lib/src/model/category.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ class Category
112112

113113
String get filePath => 'topics/$fileName';
114114

115+
/// Prior to dartdoc 8.3.4 the `displayName` was used in the file path
116+
/// for category pages. We now create a redirect file here instead.
115117
String get redirectFilePath => 'topics/$name-topic.html';
116118

117119
@override

lib/templates/category_redirect.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
<body>
88
<p><a href="{{ #useBaseHref }}{{ #htmlBase }}{{{ htmlBase }}}{{ /htmlBase }}{{ /useBaseHref }}{{ self.href }}">New URL</a></p>
99
</body>
10-
</html>
10+
</html>

0 commit comments

Comments
 (0)