File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -298,7 +298,9 @@ Make sure to set the version per the release tag (e.g. r160). Note that the r pr
298
298
curl https://codeload.github.com/mrdoob/three.js/tar.gz/refs/tags/r${VERSION} > threejs.tar.gz
299
299
tar -xzf threejs.tar.gz
300
300
mkdir -p docs/threejs~${VERSION}
301
+ mv three.js-r${VERSION} /list.json /tmp/list.json
301
302
mv three.js-r${VERSION} /docs/* docs/threejs~${VERSION} /
303
+
302
304
rm -rf three.js-r${VERSION} /
303
305
rm threejs.tar.gz
304
306
```
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ class CleanHtmlFilter < Filter
4
4
def call
5
5
# Remove unnecessary elements
6
6
css ( 'head, script, style' ) . remove
7
+
7
8
# Wrap code blocks with pre tags and add syntax highlighting
8
9
css ( 'code' ) . each do |node |
9
10
unless node . parent . name == 'pre'
Original file line number Diff line number Diff line change @@ -40,8 +40,6 @@ class Threejs < FileScraper
40
40
Licensed under the MIT License.
41
41
HTML
42
42
43
- self . class_attribute :release
44
-
45
43
version '171' do
46
44
self . release = '171'
47
45
self . base_url = "https://threejs.org/docs"
@@ -53,7 +51,7 @@ def get_latest_version(opts)
53
51
54
52
def initial_paths
55
53
paths = [ ]
56
- json_path = File . expand_path ( "docs/threejs~ #{ self . release } /list.json" )
54
+ json_path = File . expand_path ( "/tmp /list.json" )
57
55
json_content = File . read ( json_path )
58
56
json_data = JSON . parse ( json_content )
59
57
You can’t perform that action at this time.
0 commit comments