Browse Source

Updated instructions for downloading the documentation

Chaitanya Rahalkar 11 months ago
parent
commit
71729cfa4d
2 changed files with 8 additions and 59 deletions
  1. 0 56
      assets/stylesheets/pages/_threejs.scss
  2. 8 3
      docs/file-scrapers.md

+ 0 - 56
assets/stylesheets/pages/_threejs.scss

@@ -1,56 +0,0 @@
-._threejs {
-  // Code blocks
-  pre, code {
-    background-color: #f5f5f5;
-    border-radius: 3px;
-    padding: 0.2em 0.4em;
-  }
-
-  pre {
-    padding: 1em;
-    margin: 1em 0;
-    overflow: auto;
-
-    code {
-      background: none;
-      padding: 0;
-    }
-  }
-
-  // Links
-  a {
-    color: #049EF4;
-    text-decoration: none;
-
-    &:hover {
-      text-decoration: underline;
-    }
-  }
-
-  // Headings
-  h2 {
-    margin-top: 2em;
-    padding-bottom: 0.3em;
-    border-bottom: 1px solid #eaecef;
-  }
-
-  h3 {
-    margin-top: 1.5em;
-  }
-
-  // Tables
-  table {
-    border-collapse: collapse;
-    margin: 1em 0;
-    width: 100%;
-  }
-
-  th, td {
-    border: 1px solid #dfe2e5;
-    padding: 6px 13px;
-  }
-
-  tr:nth-child(2n) {
-    background-color: #f6f8fa;
-  }
-} 

+ 8 - 3
docs/file-scrapers.md

@@ -291,9 +291,14 @@ curl https://sqlite.org/2022/sqlite-doc-3400000.zip | bsdtar --extract --file -
 ```
 
 ## Three.js
+Download the docs from https://github.com/mrdoob/three.js/tree/dev/files or run the following commands in your terminal:
+Make sure to set the version per the release tag (e.g. r160). Note that the r prefix is already included, only the version number is needed.
 
 ```sh
-git clone --depth 1 --branch r${VERSION} https://github.com/mrdoob/three.js.git
-mv three.js/docs/ docs/threejs~${VERSION}/
-rm -rf three.js/
+curl https://codeload.github.com/mrdoob/three.js/tar.gz/refs/tags/r${VERSION} > threejs.tar.gz
+tar -xzf threejs.tar.gz
+mkdir -p docs/threejs~${VERSION}
+mv three.js-r${VERSION}/docs/* docs/threejs~${VERSION}/
+rm -rf three.js-r${VERSION}/
+rm threejs.tar.gz
 ```