@@ -6,26 +6,27 @@ class Hammerspoon < UrlScraper
66 home : 'https://www.hammerspoon.org' ,
77 code : 'https://github.com/Hammerspoon/hammerspoon'
88 }
9+ self . base_url = 'https://www.hammerspoon.org/docs/'
10+ self . release = '0.9.100'
911
1012 html_filters . push 'hammerspoon/clean_html' , 'hammerspoon/entries'
1113
1214 # links with no content will still render a page, this is an error in the docs
1315 # (see: https://github.com/Hammerspoon/hammerspoon/pull/3579)
1416 options [ :skip ] = [ 'module.lp/matrix.md' ]
15- # Replace '/module.lp/' with '' in URLs
16- options [ :replace_paths ] = { 'localhost:12345/module.lp/MATRIX.md' => 'localhost:12345/module.lp/hs.canvas.matrix' }
17+ options [ :skip_patterns ] = [
18+ /LuaSkin/ ,
19+ ]
1720
1821 # Hammerspoon docs don't have a license (MIT specified in the hammerspoon repo)
1922 # https://github.com/Hammerspoon/hammerspoon/blob/master/LICENSE
2023 options [ :attribution ] = <<-HTML
21- Hammerspoon
24+ © 2014–2017 Hammerspoon contributors< br >
25+ Licensed under the MIT License.
2226 HTML
2327
24-
25- version '0.9.100' do
26- self . release = '0.9.100'
27- # add `hs.doc.hsdocs.start()` to your init.lua to enable the docs server
28- self . base_url = 'http://localhost:12345/'
28+ def get_latest_version ( opts )
29+ get_latest_github_release ( 'Hammerspoon' , 'hammerspoon' , opts )
2930 end
3031
3132 end
0 commit comments