mirror of
https://github.com/hwchase17/langchain
synced 2024-10-31 15:20:26 +00:00
cd4c54282a
Refactors the docs build in order to: - run the same `make build` command in both vercel and local build - incrementally build artifacts in 2 distinct steps, instead of building all docs in-place (in vercel) or in a _dist dir (locally) Highlights: - introduces `make build` in order to build the docs - collects and generates all files for the build in `docs/build/intermediate` - renders those jupyter notebook + markdown files into `docs/build/outputs` And now the outputs to host are in `docs/build/outputs`, which will need a vercel settings change. Todo: - [ ] figure out how to point the right directory (right now deleting and moving docs dir in vercel_build.sh isn't great)
10 lines
135 B
Bash
Executable File
10 lines
135 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
make install-vercel-deps
|
|
|
|
QUARTO_CMD="./quarto-1.3.450/bin/quarto" make build
|
|
|
|
rm -rf docs
|
|
mv build/output/docs ./ |