mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
f7b213c4d3
Ref #25.
26 lines
648 B
Ruby
26 lines
648 B
Ruby
module Docs
|
|
class Clojure < UrlScraper
|
|
self.type = 'clojure'
|
|
self.root_path = 'api-index.html'
|
|
|
|
html_filters.push 'clojure/entries', 'clojure/clean_html'
|
|
|
|
options[:container] = '#content_view'
|
|
options[:only_patterns] = [/\Aclojure\./]
|
|
|
|
options[:attribution] = <<-HTML
|
|
© Rich Hickey<br>
|
|
Licensed under the Eclipse Public License 1.0.
|
|
HTML
|
|
|
|
version '1.8' do
|
|
self.release = '1.8'
|
|
self.base_url = 'https://clojure.github.io/clojure/'
|
|
end
|
|
|
|
version '1.7' do
|
|
self.release = '1.7'
|
|
self.base_url = 'https://clojure.github.io/clojure/branch-clojure-1.7.0/'
|
|
end
|
|
end
|
|
end
|