History

Requested review changes

Suraj Yadav committed 2 years ago

Commit 775218e1 parent 49cb0772 files · +14 −19Browse files

Unified · Split

2 files
  1. docs/file-scrapers.md +4 −4
  2. lib/docs/scrapers/opengl.rb +10 −15
docs/file-scrapers.md+4−4
@@ -168,10 +168,10 @@ Clone https://github.com/KhronosGroup/OpenGL-Refpages.git · 167 unmodified lines
168```sh168```sh
169DEVDOCS_ROOT=/path/to/devdocs169DEVDOCS_ROOT=/path/to/devdocs
170git clone https://github.com/KhronosGroup/OpenGL-Refpages.git170git clone https://github.com/KhronosGroup/OpenGL-Refpages.git
171mkdir $DEVDOCS_ROOT/docs/opengl~gl4171mkdir $DEVDOCS_ROOT/docs/opengl~4
172mkdir $DEVDOCS_ROOT/docs/opengl~gl2.1172mkdir $DEVDOCS_ROOT/docs/opengl~2.1
173cp -r OpenGL-Refpages/gl4/html/* "$DEVDOCS_ROOT/docs/opengl~gl4"173cp -r OpenGL-Refpages/gl4/html/* "$DEVDOCS_ROOT/docs/opengl~4"
174cp -r OpenGL-Refpages/gl2.1/xhtml/* "$DEVDOCS_ROOT/docs/opengl~gl2.1"174cp -r OpenGL-Refpages/gl2.1/xhtml/* "$DEVDOCS_ROOT/docs/opengl~2.1"
175```175```
176 176
177## OpenJDK177## OpenJDK
lib/docs/scrapers/opengl.rb+10−15
@@ -10,25 +10,20 @@ module Docs · 9 unmodified lines
10 # indexflat.php is a copy of index.php10 # indexflat.php is a copy of index.php
11 options[:skip] = %w(indexflat.php)11 options[:skip] = %w(indexflat.php)
12 12
13 options[:attribution] = <<-HTML13 options[:attribution] = ->(filter) {
14 Copyright 2017-2021 The Khronos Group, Inc.. This work is licensed14 # copyright is the last section in these pages
15 under a <a href="http://creativecommons.org/licenses/by/4.0/">Creative15 return filter.css('.refsect1:last-child').css('p').inner_text
16 Commons Attribution 4.0 International License</a>.16 }
17 HTML
18 17
19 version 'gl2.1' do18 version '2.1' do
20 self.root_path = 'index.html'19 self.root_path = 'index.html'
21 self.release = 'gl2.1'20 self.release = '2.1'
22 self.base_url = "https://registry.khronos.org/OpenGL-Refpages/#{self.version}/"21 self.base_url = "https://registry.khronos.org/OpenGL-Refpages/gl#{self.version}/"
23 end22 end
24 version 'gl4' do23 version '4' do
25 self.root_path = 'index.php'24 self.root_path = 'index.php'
26 self.release = 'gl4'25 self.release = '4'
27 self.base_url = "https://registry.khronos.org/OpenGL-Refpages/#{self.version}/"26 self.base_url = "https://registry.khronos.org/OpenGL-Refpages/gl#{self.version}/"
28 end
29
30 def get_latest_version(opts)
31 return 'v1.0.0'
32 end27 end
33 end28 end
34end29end