Unified · Split
| @@ -1,56 +0,0 @@ | ||
| 1 | −._threejs { | |
| 2 | − // Code blocks | |
| 3 | − pre, code { | |
| 4 | − background-color: #f5f5f5; | |
| 5 | − border-radius: 3px; | |
| 6 | − padding: 0.2em 0.4em; | |
| 7 | − } | |
| 8 | − | |
| 9 | − pre { | |
| 10 | − padding: 1em; | |
| 11 | − margin: 1em 0; | |
| 12 | − overflow: auto; | |
| 13 | − | |
| 14 | − code { | |
| 15 | − background: none; | |
| 16 | − padding: 0; | |
| 17 | − } | |
| 18 | − } | |
| 19 | − | |
| 20 | − // Links | |
| 21 | − a { | |
| 22 | − color: #049EF4; | |
| 23 | − text-decoration: none; | |
| 24 | − | |
| 25 | − &:hover { | |
| 26 | − text-decoration: underline; | |
| 27 | − } | |
| 28 | − } | |
| 29 | − | |
| 30 | − // Headings | |
| 31 | − h2 { | |
| 32 | − margin-top: 2em; | |
| 33 | − padding-bottom: 0.3em; | |
| 34 | − border-bottom: 1px solid #eaecef; | |
| 35 | − } | |
| 36 | − | |
| 37 | − h3 { | |
| 38 | − margin-top: 1.5em; | |
| 39 | − } | |
| 40 | − | |
| 41 | − // Tables | |
| 42 | − table { | |
| 43 | − border-collapse: collapse; | |
| 44 | − margin: 1em 0; | |
| 45 | − width: 100%; | |
| 46 | − } | |
| 47 | − | |
| 48 | − th, td { | |
| 49 | − border: 1px solid #dfe2e5; | |
| 50 | − padding: 6px 13px; | |
| 51 | − } | |
| 52 | − | |
| 53 | − tr:nth-child(2n) { | |
| 54 | − background-color: #f6f8fa; | |
| 55 | − } | |
| 56 | −} | |
| @@ -291,9 +291,14 @@ curl https://sqlite.org/2022/sqlite-doc-3400000.zip | bsdtar --extract --file - · 290 unmodified lines | ||
| 291 | 291 | ``` |
| 292 | 292 | |
| 293 | 293 | ## Three.js |
| 294 | +Download the docs from https://github.com/mrdoob/three.js/tree/dev/files or run the following commands in your terminal: | |
| 295 | +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. | |
| 294 | 296 | |
| 295 | 297 | ```sh |
| 296 | −git clone --depth 1 --branch r${VERSION} https://github.com/mrdoob/three.js.git | |
| 297 | −mv three.js/docs/ docs/threejs~${VERSION}/ | |
| 298 | −rm -rf three.js/ | |
| 298 | +curl https://codeload.github.com/mrdoob/three.js/tar.gz/refs/tags/r${VERSION} > threejs.tar.gz | |
| 299 | +tar -xzf threejs.tar.gz | |
| 300 | +mkdir -p docs/threejs~${VERSION} | |
| 301 | +mv three.js-r${VERSION}/docs/* docs/threejs~${VERSION}/ | |
| 302 | +rm -rf three.js-r${VERSION}/ | |
| 303 | +rm threejs.tar.gz | |
| 299 | 304 | ``` |