File tree Expand file tree Collapse file tree 7 files changed +23
-29
lines changed Expand file tree Collapse file tree 7 files changed +23
-29
lines changed Original file line number Diff line number Diff line change 1
1
[
2
2
[
3
3
" 2018-07-29" ,
4
- " New documentations: <a href=\" /bash/\" >Bash</a> and <a href=\" /pygame/\" >Pygame</a>"
4
+ " New documentations: <a href=\" /bash/\" >Bash</a>, <a href= \" /graphite/ \" >Graphite</a> and <a href=\" /pygame/\" >Pygame</a>"
5
5
], [
6
6
" 2018-07-08" ,
7
7
" New documentations: <a href=\" /leaflet/\" >Leaflet</a>, <a href=\" /terraform/\" >Terraform</a> and <a href=\" /koa/\" >Koa</a>"
Original file line number Diff line number Diff line change @@ -297,7 +297,7 @@ credits = [
297
297
' https://raw.githubusercontent.com/godotengine/godot/master/LICENSE.txt'
298
298
], [
299
299
' Graphite' ,
300
- ' 2008-2012 Chris Davis; 2011-2016 The Graphite Project' ,
300
+ ' 2008-2012 Chris Davis<br>© ; 2011-2016 The Graphite Project' ,
301
301
' Apache' ,
302
302
' https://raw.githubusercontent.com/graphite-project/graphite-web/master/LICENSE'
303
303
], [
Original file line number Diff line number Diff line change 94
94
._icon-marionette :before { background-position : -6rem -5rem ; }
95
95
._icon-jsdoc :before ,
96
96
._icon-koa :before ,
97
+ ._icon-graphite :before ,
97
98
._icon-mongoose :before { background-position : -7rem -5rem ; }
98
99
._icon-phpunit :before { background-position : -8rem -5rem ; }
99
100
._icon-nokogiri :before { background-position : -9rem -5rem ; @extend %darkIconFix !optional ; }
Original file line number Diff line number Diff line change 1
1
._graphite {
2
2
@extend %simple ;
3
3
4
- h1 {
5
- @extend %lined-heading ;
6
- }
7
-
8
- .section :first-child h1 {
9
- margin-top : 0 ;
10
- }
11
-
12
4
dl > dt {
13
- @extend %note , %note-blue ;
14
- padding : 1px 0.5rem 2px 0.5rem ;
15
- font-weight : bold ;
16
- }
17
-
18
- dl .function > dt {
19
- code {
20
- font-weight : bold ;
21
- }
22
- em {
23
- font-style : normal ;
24
- }
5
+ @extend %block-label , %label-blue ;
25
6
}
26
7
}
Original file line number Diff line number Diff line change @@ -5,10 +5,19 @@ def call
5
5
# Remove the paragraph icon after all headers
6
6
css ( '.headerlink' ) . remove
7
7
8
- # Extract the text from function titles to get rid of the inconsistent styling
9
8
css ( 'dl.function > dt' ) . each do |node |
10
- node [ 'data-name' ] = node . at_css ( '.descname' ) . inner_html . to_s
11
- node . content = node . text
9
+ node . content = node . content
10
+ end
11
+
12
+ css ( '.section' ) . each do |node |
13
+ node . before ( node . children ) . remove
14
+ end
15
+
16
+ css ( 'div[class*="highlight-"]' ) . each do |node |
17
+ node . content = node . content . strip
18
+ node . name = 'pre'
19
+ node [ 'data-language' ] = node [ 'class' ] [ /highlight\- (\w +)/ , 1 ]
20
+ node . remove_attribute ( 'class' )
12
21
end
13
22
14
23
doc
Original file line number Diff line number Diff line change @@ -34,7 +34,9 @@ def additional_entries
34
34
35
35
# Functions
36
36
css ( 'dl.function > dt' ) . each do |node |
37
- entries << [ node [ 'data-name' ] , node [ 'id' ] , 'List of functions' ]
37
+ name = node . at_css ( '.descname' ) . content
38
+ name << '()'
39
+ entries << [ name , node [ 'id' ] , 'Functions' ]
38
40
end
39
41
40
42
entries
Original file line number Diff line number Diff line change @@ -2,18 +2,19 @@ module Docs
2
2
class Graphite < UrlScraper
3
3
self . type = 'graphite'
4
4
self . release = '1.1.3'
5
- self . base_url = 'http ://graphite.readthedocs.io/en/latest/'
5
+ self . base_url = 'https ://graphite.readthedocs.io/en/latest/'
6
6
self . links = {
7
7
code : 'https://github.com/graphite-project/graphite-web'
8
8
}
9
9
10
- html_filters . push 'graphite/clean_html ' , 'graphite/entries '
10
+ html_filters . push 'graphite/entries ' , 'graphite/clean_html '
11
11
12
12
options [ :container ] = '.document > div'
13
13
options [ :skip ] = %w( releases.html who-is-using.html composer.html search.html py-modindex.html genindex.html )
14
14
15
15
options [ :attribution ] = <<-HTML
16
- © 2008-2012 Chris Davis; 2011-2016 The Graphite Project< br >
16
+ © 2008–2012 Chris Davis< br >
17
+ © 2011–2016 The Graphite Project< br >
17
18
Licensed under the Apache License, Version 2.0.
18
19
HTML
19
20
end
You can’t perform that action at this time.
0 commit comments