Updated instructions for downloading the documentation

pull/2392/head
Chaitanya Rahalkar 1 month ago
parent e08baefb52
commit 71729cfa4d

@ -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;
}
}

@ -291,9 +291,14 @@ curl https://sqlite.org/2022/sqlite-doc-3400000.zip | bsdtar --extract --file -
``` ```
## Three.js ## 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 ```sh
git clone --depth 1 --branch r${VERSION} https://github.com/mrdoob/three.js.git curl https://codeload.github.com/mrdoob/three.js/tar.gz/refs/tags/r${VERSION} > threejs.tar.gz
mv three.js/docs/ docs/threejs~${VERSION}/ tar -xzf threejs.tar.gz
rm -rf three.js/ mkdir -p docs/threejs~${VERSION}
mv three.js-r${VERSION}/docs/* docs/threejs~${VERSION}/
rm -rf three.js-r${VERSION}/
rm threejs.tar.gz
``` ```

Loading…
Cancel
Save