cli docs don't work right now

This commit is contained in:
Anton-4 2023-01-20 18:17:28 +01:00
parent 002cbf2078
commit fdec3afd2e
No known key found for this signature in database
GPG Key ID: 0971D718C0A9B937

View File

@ -91,22 +91,4 @@ mv www/build/tutorial/tutorial.html www/build/tutorial/index.html
# cleanup
rm -rf roc_nightly roc_releases.json
echo 'Generating CLI example platform docs...'
# Change ROC_DOCS_ROOT_DIR=builtins so that links will be generated relative to
# "/packages/basic-cli/" rather than "/builtins/"
export ROC_DOCS_URL_ROOT=/packages/basic-cli
rm -rf ./downloaded-basic-cli
git clone --depth 1 https://github.com/roc-lang/basic-cli.git downloaded-basic-cli
cargo run --release --bin roc-docs downloaded-basic-cli/src/main.roc
rm -rf ./downloaded-basic-cli
BASIC_CLI_PACKAGE_DIR="www/build/packages/basic-cli"
mkdir -p $BASIC_CLI_PACKAGE_DIR
rm generated-docs/*.* # we already copied over the *.js and *.css files earlier, so just drop these.
mv generated-docs/* $BASIC_CLI_PACKAGE_DIR # move all the folders to build/packages/basic-cli
popd