Skip to content

Commit 3935681

Browse files
committed
comment
1 parent bced1e3 commit 3935681

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/src/model/category.dart

+2
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

+1-1
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)