File tree Expand file tree Collapse file tree 2 files changed +14
-19
lines changed Expand file tree Collapse file tree 2 files changed +14
-19
lines changed Original file line number Diff line number Diff line change @@ -168,10 +168,10 @@ Clone https://github.com/KhronosGroup/OpenGL-Refpages.git
168
168
``` sh
169
169
DEVDOCS_ROOT=/path/to/devdocs
170
170
git clone https://github.com/KhronosGroup/OpenGL-Refpages.git
171
- mkdir $DEVDOCS_ROOT /docs/opengl~gl4
172
- mkdir $DEVDOCS_ROOT /docs/opengl~gl2 .1
173
- cp -r OpenGL-Refpages/gl4/html/* " $DEVDOCS_ROOT /docs/opengl~gl4 "
174
- cp -r OpenGL-Refpages/gl2.1/xhtml/* " $DEVDOCS_ROOT /docs/opengl~gl2 .1"
171
+ mkdir $DEVDOCS_ROOT /docs/opengl~4
172
+ mkdir $DEVDOCS_ROOT /docs/opengl~2 .1
173
+ cp -r OpenGL-Refpages/gl4/html/* " $DEVDOCS_ROOT /docs/opengl~4 "
174
+ cp -r OpenGL-Refpages/gl2.1/xhtml/* " $DEVDOCS_ROOT /docs/opengl~2 .1"
175
175
```
176
176
177
177
## OpenJDK
Original file line number Diff line number Diff line change @@ -10,25 +10,20 @@ class Opengl < FileScraper
10
10
# indexflat.php is a copy of index.php
11
11
options [ :skip ] = %w( indexflat.php )
12
12
13
- options [ :attribution ] = <<-HTML
14
- Copyright 2017-2021 The Khronos Group, Inc.. This work is licensed
15
- under a < a href ="http://creativecommons.org/licenses/by/4.0/ "> Creative
16
- Commons Attribution 4.0 International License</ a > .
17
- HTML
13
+ options [ :attribution ] = -> ( filter ) {
14
+ # copyright is the last section in these pages
15
+ return filter . css ( '.refsect1:last-child' ) . css ( 'p' ) . inner_text
16
+ }
18
17
19
- version 'gl2 .1' do
18
+ version '2 .1' do
20
19
self . root_path = 'index.html'
21
- self . release = 'gl2 .1'
22
- self . base_url = "https://registry.khronos.org/OpenGL-Refpages/#{ self . version } /"
20
+ self . release = '2 .1'
21
+ self . base_url = "https://registry.khronos.org/OpenGL-Refpages/gl #{ self . version } /"
23
22
end
24
- version 'gl4 ' do
23
+ version '4 ' do
25
24
self . root_path = 'index.php'
26
- self . release = 'gl4'
27
- self . base_url = "https://registry.khronos.org/OpenGL-Refpages/#{ self . version } /"
28
- end
29
-
30
- def get_latest_version ( opts )
31
- return 'v1.0.0'
25
+ self . release = '4'
26
+ self . base_url = "https://registry.khronos.org/OpenGL-Refpages/gl#{ self . version } /"
32
27
end
33
28
end
34
29
end
You can’t perform that action at this time.
0 commit comments