Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Clean-up the doc-setup step #3336

Merged
merged 3 commits into from
Oct 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ scripts:

doc-setup:
steps:
- "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:"
- '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."
- 'echo Installing dartdoc_json:'
- 'dart pub global activate dartdoc_json'
- 'echo Done.'
description: Prepares the environment for documentation development.

doc-build:
Expand Down