Skip to content

Commit

Permalink
fix: doc generation
Browse files Browse the repository at this point in the history
  • Loading branch information
j4qfrost committed Jan 8, 2023
1 parent c830ab3 commit 973ed97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
tag_name: ${{ env.release_tag }}
body_path: CHANGES.txt
- name: Generate docs
run: melos gen-docs && echo "mkdocs-monorepo-plugin=1.0.4" > requirements.txt
run: melos bootstrap && melos gen-docs && echo "mkdocs-monorepo-plugin=1.0.4" > requirements.txt
- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
env:
Expand Down
2 changes: 1 addition & 1 deletion melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ scripts:
run: melos exec -- "rm -rf '\$MELOS_PACKAGE_PATH/.dart_tool' '\$MELOS_PACKAGE_PATH/pubspec.lock'"
gen-docs:
run: |
yq -i 'with(.nav[] | select(has("API")); . = {"API": []})' $MELOS_ROOT_PATH/mkdocs.yml && melos exec --ignore "*common*" -c 1 -- "dart doc && CONF=\$(echo \$MELOS_PACKAGE_PATH/mkdocs.yml | sed -e 's#^$MELOS_ROOT_PATH#!include .#') yq -i 'with(.nav[] | select(has(\"API\")); .[] += {\"\$MELOS_PACKAGE_NAME\" : strenv(CONF)})' $MELOS_ROOT_PATH/mkdocs.yml"
yq -i 'with(.nav[] | select(has("API")); . = {"API": []})' $MELOS_ROOT_PATH/mkdocs.yml && melos exec --ignore "*common*" -- "dart doc && CONF=\$(echo \$MELOS_PACKAGE_PATH/mkdocs.yml | sed -e 's#^$MELOS_ROOT_PATH#!include .#') yq -i 'with(.nav[] | select(has(\"API\")); .[] += {\"\$MELOS_PACKAGE_NAME\" : strenv(CONF)})' $MELOS_ROOT_PATH/mkdocs.yml"
select-pacakge:
no-private: true
fix:
Expand Down

0 comments on commit 973ed97

Please sign in to comment.