Unified · Split
| @@ -168,10 +168,10 @@ Clone https://github.com/KhronosGroup/OpenGL-Refpages.git · 167 unmodified lines | |||
| 168 | ```sh | 168 | ```sh |
| 169 | DEVDOCS_ROOT=/path/to/devdocs | 169 | DEVDOCS_ROOT=/path/to/devdocs |
| 170 | git clone https://github.com/KhronosGroup/OpenGL-Refpages.git | 170 | git clone https://github.com/KhronosGroup/OpenGL-Refpages.git |
| 171 | mkdir $DEVDOCS_ROOT/docs/opengl~gl4 | 171 | mkdir $DEVDOCS_ROOT/docs/opengl~4 |
| 172 | mkdir $DEVDOCS_ROOT/docs/opengl~gl2.1 | 172 | mkdir $DEVDOCS_ROOT/docs/opengl~2.1 |
| 173 | cp -r OpenGL-Refpages/gl4/html/* "$DEVDOCS_ROOT/docs/opengl~gl4" | 173 | cp -r OpenGL-Refpages/gl4/html/* "$DEVDOCS_ROOT/docs/opengl~4" |
| 174 | cp -r OpenGL-Refpages/gl2.1/xhtml/* "$DEVDOCS_ROOT/docs/opengl~gl2.1" | 174 | cp -r OpenGL-Refpages/gl2.1/xhtml/* "$DEVDOCS_ROOT/docs/opengl~2.1" |
| 175 | ``` | 175 | ``` |
| 176 | 176 | ||
| 177 | ## OpenJDK | 177 | ## OpenJDK |
| @@ -10,25 +10,20 @@ module Docs · 9 unmodified lines | |||
| 10 | # indexflat.php is a copy of index.php | 10 | # 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] = <<-HTML | 13 | options[:attribution] = ->(filter) { |
| 14 | Copyright 2017-2021 The Khronos Group, Inc.. This work is licensed | 14 | # copyright is the last section in these pages |
| 15 | under a <a href="http://creativecommons.org/licenses/by/4.0/">Creative | 15 | 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' do | 18 | 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 | end | 22 | end |
| 24 | version 'gl4' do | 23 | 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 | end | 27 | end |
| 33 | end | 28 | end |
| 34 | end | 29 | end |