mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 08:11:12 +00:00
Comment out a bunch of stuff in build.sh to fix it for now.
This commit is contained in:
parent
d6681f4e0a
commit
30f91d1968
1 changed files with 22 additions and 17 deletions
39
www/build.sh
39
www/build.sh
|
@ -11,21 +11,26 @@ cd $SCRIPT_RELATIVE_DIR
|
||||||
rm -rf build/
|
rm -rf build/
|
||||||
cp -r public/ build/
|
cp -r public/ build/
|
||||||
|
|
||||||
pushd ..
|
# grab the source code and copy it to Netlify's server; if it's not there, fail the build.
|
||||||
echo 'Generating docs...'
|
pushd build
|
||||||
cargo --version
|
wget https://github.com/rtfeldman/elm-css/files/8037422/roc-source-code.zip
|
||||||
rustc --version
|
|
||||||
# We run the CLI with --no-default-features because that way we don't have the
|
|
||||||
# "llvm" feature and therefore don't depend on LLVM being installed on the
|
|
||||||
# system. (Netlify's build servers have Rust installed, but not LLVM.)
|
|
||||||
#
|
|
||||||
# We set RUSTFLAGS to -Awarnings to ignore warnings during this build,
|
|
||||||
# because when building without "the" llvm feature (which is only ever done
|
|
||||||
# for this exact use case), the result is lots of "unused" warnings!
|
|
||||||
#
|
|
||||||
# We set ROC_DOCS_ROOT_DIR=builtins so that links will be generated relative to
|
|
||||||
# "/builtins/" rather than "/" - which is what we want based on how the server
|
|
||||||
# is set up to serve them.
|
|
||||||
RUSTFLAGS=-Awarnings ROC_DOCS_URL_ROOT=builtins cargo run -p roc_cli --no-default-features docs compiler/builtins/docs/*.roc
|
|
||||||
mv generated-docs/ www/build/builtins
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
# pushd ..
|
||||||
|
# echo 'Generating docs...'
|
||||||
|
# cargo --version
|
||||||
|
# rustc --version
|
||||||
|
# # We run the CLI with --no-default-features because that way we don't have the
|
||||||
|
# # "llvm" feature and therefore don't depend on LLVM being installed on the
|
||||||
|
# # system. (Netlify's build servers have Rust installed, but not LLVM.)
|
||||||
|
# #
|
||||||
|
# # We set RUSTFLAGS to -Awarnings to ignore warnings during this build,
|
||||||
|
# # because when building without "the" llvm feature (which is only ever done
|
||||||
|
# # for this exact use case), the result is lots of "unused" warnings!
|
||||||
|
# #
|
||||||
|
# # We set ROC_DOCS_ROOT_DIR=builtins so that links will be generated relative to
|
||||||
|
# # "/builtins/" rather than "/" - which is what we want based on how the server
|
||||||
|
# # is set up to serve them.
|
||||||
|
# RUSTFLAGS=-Awarnings ROC_DOCS_URL_ROOT=builtins cargo run -p roc_cli --no-default-features docs compiler/builtins/docs/*.roc
|
||||||
|
# mv generated-docs/ www/build/builtins
|
||||||
|
# popd
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue