diff --git a/web/dart/parse_sitemap.dart b/web/dart/parse_sitemap.dart index 33ccd94..c0ca0d7 100644 --- a/web/dart/parse_sitemap.dart +++ b/web/dart/parse_sitemap.dart @@ -3,6 +3,8 @@ import 'dart:html' show HttpRequest; import 'package:html/parser.dart' show parse; import 'package:html/dom.dart' show Element; +final excluded_keywords = ['index', 'CONTRIBUTING', 'LICENSE', 'README']; + // Get the sitemap content Future getSitemap() async { const path = 'sitemap.html'; @@ -18,9 +20,12 @@ Future getSitemap() async { Map detectPages(List sitemap, [String prefix]) { final links = {}; for (var elem in sitemap) { - if (elem.outerHtml.contains('index')) { - continue; - } else if (elem.innerHtml.startsWith('