File tree Expand file tree Collapse file tree 9 files changed +81
-0
lines changed
public/icons/docs/openlayers Expand file tree Collapse file tree 9 files changed +81
-0
lines changed Original file line number Diff line number Diff line change 1
1
[
2
+ [
3
+ " 2025-02-16" ,
4
+ " New documentation: <a href=\" /openlayers/\" >OpenLayers</a>"
5
+ ],
2
6
[
3
7
" 2024-11-23" ,
4
8
" New documentation: <a href=\" /duckdb/\" >DuckDB</a>"
Original file line number Diff line number Diff line change 97
97
' pages/nushell' ,
98
98
' pages/octave' ,
99
99
' pages/openjdk' ,
100
+ ' pages/openlayers' ,
100
101
' pages/perl' ,
101
102
' pages/phalcon' ,
102
103
' pages/phaser' ,
Original file line number Diff line number Diff line change
1
+ ._openlayers {
2
+ @extend %simple ;
3
+ .nameContainer {
4
+ @extend %block-label ;
5
+ > * { display : inline-block ; margin : 0 ; }
6
+ > .tag-source { float : right ; }
7
+ }
8
+ .card { @extend %box ; margin-bottom : 1rem ; padding : 1rem ; }
9
+ .signature , .type-signature { @extend %code ; }
10
+ }
Original file line number Diff line number Diff line change
1
+ module Docs
2
+ class Openlayers
3
+ class CleanHtmlFilter < Filter
4
+ def call
5
+ @doc = at_css ( 'section' )
6
+
7
+ at_css ( 'h2' ) . name = 'h1' if at_css ( 'h2' )
8
+
9
+ css ( 'pre.prettyprint' ) . each do |node |
10
+ node [ 'data-language' ] = node [ 'class' ] . include? ( 'html' ) ? 'html' : 'js'
11
+ node . content = node . content
12
+ end
13
+
14
+ doc
15
+ end
16
+ end
17
+ end
18
+ end
Original file line number Diff line number Diff line change
1
+ module Docs
2
+ class Openlayers
3
+ class EntriesFilter < Docs ::EntriesFilter
4
+ def get_name
5
+ at_css ( 'h2' ) . text . split ( '~' ) . last . strip
6
+ end
7
+
8
+ def get_type
9
+ slug [ /ol_([^_]+)_/ , 1 ] or 'ol'
10
+ end
11
+
12
+ def additional_entries
13
+ css ( 'h4.name' ) . each_with_object [ ] do |node , entries |
14
+ node [ 'id' ] = node . previous_element [ 'id' ]
15
+ name = node . children . find { |n | n . text? } . text . strip
16
+ name . prepend "#{ self . name } ."
17
+ entries << [ name , node [ 'id' ] ]
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
Original file line number Diff line number Diff line change
1
+ module Docs
2
+ class Openlayers < UrlScraper
3
+ self . name = 'OpenLayers'
4
+ self . type = 'openlayers'
5
+ self . slug = 'openlayers'
6
+ self . release = '10.4.0'
7
+ self . base_url = "https://openlayers.org/en/latest/apidoc/"
8
+ self . links = {
9
+ home : 'https://openlayers.org/' ,
10
+ code : 'https://github.com/openlayers/openlayers'
11
+ }
12
+
13
+ html_filters . push 'openlayers/entries' , 'openlayers/clean_html'
14
+
15
+ options [ :attribution ] = <<-HTML
16
+ © 2005-present, OpenLayers Contributors All rights reserved.
17
+ Licensed under the BSD 2-Clause License.
18
+ HTML
19
+
20
+ def get_latest_version ( opts )
21
+ get_npm_version ( 'ol' , opts )
22
+ end
23
+ end
24
+ end
Original file line number Diff line number Diff line change
1
+ https://github.com/openlayers
2
+ https://avatars.githubusercontent.com/u/240579?s=64
You can’t perform that action at this time.
0 commit comments