mirror of
https://github.com/flame-engine/flame.git
synced 2025-10-28 03:16:09 +08:00
ci: Moved doc setup to separate script (#3339)
Since there seems to be some problem with the doc setup on the GitHub runners, let's try running it as a separate script.
This commit is contained in:
10
scripts/doc-setup.sh
Executable file
10
scripts/doc-setup.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
echo Checking python version:
|
||||
python3 --version && python3 -c "import sys; sys.exit(0 if sys.version_info >= (3,8) else 2)" || (echo "Error: Python 3.8+ is required" && exit 1)
|
||||
echo Installing required python modules:
|
||||
python3 -m pip install -r "$MELOS_ROOT_PATH/doc/_sphinx/requirements.txt"
|
||||
echo Installing dartdoc_json:
|
||||
dart pub global activate dartdoc_json
|
||||
echo Done.
|
||||
Reference in New Issue
Block a user