Skip to content

Commit 99e0f79

Browse files
committed
fixes
1 parent 209cdf4 commit 99e0f79

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

lib/src/generator/template_data.dart

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,11 @@ class LibraryTemplateData extends TemplateData<Library>
215215
List<Documentable> get navLinks => [_packageGraph.defaultPackage];
216216

217217
@override
218-
String get layoutTitle => _layoutTitle(library.name, Kind.library.toString(),
219-
isDeprecated: library.isDeprecated);
218+
String get layoutTitle => _layoutTitle(
219+
library.breadcrumbName,
220+
Kind.library.toString(),
221+
isDeprecated: library.isDeprecated,
222+
);
220223

221224
@override
222225
Library get self => library;

lib/src/model/library.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ class Library extends ModelElement
338338
assert(!element.source.uri.isScheme('dart'));
339339
var relativePath = pathContext.relative(element.source.fullName,
340340
from: package.packagePath);
341-
assert(relativePath.startsWith('lib/'));
341+
assert(relativePath.startsWith('lib${pathContext.separator}'));
342342
const libDirectoryLength = 'lib/'.length;
343343
return relativePath.substring(libDirectoryLength);
344344
}

0 commit comments

Comments
 (0)