Skip to content

Commit 2614106

Browse files
parloughschultek
andauthored
Apply suggestion about setting keepSuffixPattern
Co-authored-by: Kilian Schulte <[email protected]>
1 parent 42dd92d commit 2614106

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

site/lib/main.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ void main() {
3333
Component get _docsFlutterDevSite => ContentApp.custom(
3434
eagerlyLoadAllPages: true,
3535
loaders: [
36-
FilesystemLoader(path.join(siteSrcDirectoryPath, 'content')),
36+
FilesystemLoader(
37+
path.join(siteSrcDirectoryPath, 'content'),
38+
keepSuffixPattern: RegExp(r'.*\.(txt|json|pdf)$'),
39+
),
3740
MemoryLoader(pages: allMemoryPages),
3841
],
3942
configResolver: PageConfig.all(

0 commit comments

Comments
 (0)