Skip to content

Commit a836758

Browse files
committed
Ignore non-existing paths
A bug in crystals doc generation causes the docs to contain links to non-documented and therefore non-existing types.
1 parent 500f45b commit a836758

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/docs/scrapers/crystal.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ def initial_urls
1919

2020
html_filters.push 'crystal/entries', 'crystal/clean_html'
2121

22+
options[:skip_patterns] = [
23+
%r{\ACrystal/System/},
24+
%r{\AIO/Evented.html\z},
25+
%r{\ARegex/PCRE2.html\z}
26+
]
27+
2228
options[:attribution] = ->(filter) {
2329
if filter.current_url.path.start_with?('/reference/')
2430
<<-HTML

0 commit comments

Comments
 (0)