From 71729cfa4d1b24fe8260d87c7b6fca108095cb2d Mon Sep 17 00:00:00 2001 From: Chaitanya Rahalkar Date: Mon, 23 Dec 2024 23:13:30 -0600 Subject: [PATCH] Updated instructions for downloading the documentation --- assets/stylesheets/pages/_threejs.scss | 56 -------------------------- docs/file-scrapers.md | 11 +++-- 2 files changed, 8 insertions(+), 59 deletions(-) delete mode 100644 assets/stylesheets/pages/_threejs.scss diff --git a/assets/stylesheets/pages/_threejs.scss b/assets/stylesheets/pages/_threejs.scss deleted file mode 100644 index 32b39ce1..00000000 --- a/assets/stylesheets/pages/_threejs.scss +++ /dev/null @@ -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; - } -} \ No newline at end of file diff --git a/docs/file-scrapers.md b/docs/file-scrapers.md index cdfed337..164b6f7d 100644 --- a/docs/file-scrapers.md +++ b/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 ```