mirror of https://github.com/freeCodeCamp/devdocs
parent
bc95cfdbfa
commit
b035be3e2c
@ -1,12 +1,8 @@
|
|||||||
._less {
|
._less {
|
||||||
padding-left: 1rem;
|
padding-left: 1rem;
|
||||||
|
|
||||||
> h1, > h2, > h3 { margin-left: -1rem; }
|
> h1, > h2, h3, h4 { margin-left: -1rem; }
|
||||||
> h2, > h3 { @extend %block-heading; }
|
> h2 { @extend %block-heading; }
|
||||||
> h4 { margin-top: 2em; }
|
h3, h4 { @extend %block-label, %label-blue; }
|
||||||
|
code { @extend %label; }
|
||||||
> .function {
|
|
||||||
margin-left: -1rem;
|
|
||||||
@extend %block-label, %label-blue;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -1,18 +1,21 @@
|
|||||||
module Docs
|
module Docs
|
||||||
class Less < UrlScraper
|
class Less < UrlScraper
|
||||||
self.type = 'less'
|
self.type = 'less'
|
||||||
self.version = '1.6.0'
|
self.version = '1.6.3'
|
||||||
self.base_url = 'http://lesscss.org'
|
self.base_url = 'http://lesscss.org'
|
||||||
|
self.root_path = '/features'
|
||||||
|
self.initial_paths = %w(/functions)
|
||||||
|
|
||||||
html_filters.push 'less/clean_html', 'less/entries', 'title'
|
html_filters.push 'less/entries', 'less/clean_html', 'title'
|
||||||
|
|
||||||
options[:title] = 'LESS'
|
options[:title] = 'Less'
|
||||||
options[:container] = 'section'
|
options[:container] = 'div[role=main]'
|
||||||
options[:skip_links] = true
|
options[:follow_links] = false
|
||||||
|
options[:trailing_slash] = false
|
||||||
|
|
||||||
options[:attribution] = <<-HTML
|
options[:attribution] = <<-HTML
|
||||||
© 2009–2014 Alexis Sellier & The Core Less Team<br>
|
© 2009–2014 The Core Less Team<br>
|
||||||
Licensed under the Apache License v2.0.
|
Licensed under the Creative Commons Attribution License 3.0.
|
||||||
HTML
|
HTML
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in new issue