@@ -2,7 +2,7 @@ module Docs
22 class Crystal < UrlScraper
33 self . type = 'crystal'
44 self . base_url = 'https://crystal-lang.org/'
5- self . initial_paths = %w( docs /index.html)
5+ self . initial_paths = %w( reference /index.html)
66 self . links = {
77 home : 'https://crystal-lang.org/' ,
88 code : 'https://github.com/crystal-lang/crystal'
@@ -11,7 +11,7 @@ class Crystal < UrlScraper
1111 html_filters . push 'crystal/entries' , 'crystal/clean_html'
1212
1313 options [ :attribution ] = -> ( filter ) {
14- if filter . slug . start_with? ( 'docs ' )
14+ if filter . slug . start_with? ( 'reference ' )
1515 <<-HTML
1616 To the extent possible under law, the persons who contributed to this work
1717 have waived< br > all copyright and related or neighboring rights to this work
@@ -26,15 +26,15 @@ class Crystal < UrlScraper
2626 }
2727
2828 version do
29- self . release = '0.35 .1'
29+ self . release = '0.36 .1'
3030 self . root_path = "api/#{ release } /index.html"
3131
32- options [ :only_patterns ] = [ /\A docs \/ / , / \ A api\/ #{ release } \/ /]
32+ options [ :only_patterns ] = [ /\A api\/ #{ release } \/ / , / \A reference \/ /]
3333 options [ :skip_patterns ] = [ /debug/i ]
3434
3535 options [ :replace_paths ] = {
3636 "api/#{ release } /" => "api/#{ release } /index.html" ,
37- 'docs /' => 'docs /index.html'
37+ 'reference /' => 'reference /index.html'
3838 }
3939 end
4040
0 commit comments