Skip to content

Commit b7d5e2d

Browse files
authored
Exclude secondary Markdown files from sitemap (#12685)
As their original HTML version is already present and these being indexed results in odd search results as seen by dart-lang/site-www#7017.
1 parent 30d6e4d commit b7d5e2d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tool/dash_site/lib/src/commands/build.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ final class BuildSiteCommand extends Command<int> {
4747
// those specified by jaspr_cli.
4848
'--no-managed-build-options',
4949
'--sitemap-domain=https://docs.flutter.dev',
50+
// Exclude secondary Markdown output files from sitemap.
51+
r'--sitemap-exclude=\.html\.md$',
5052
'--dart-define=PRODUCTION=$productionRelease',
5153
],
5254
workingDirectory: 'site',

0 commit comments

Comments
 (0)