Skip to content

Commit

Permalink
install zod2md manually
Browse files Browse the repository at this point in the history
  • Loading branch information
clemiller committed Oct 21, 2024
1 parent 4fdae96 commit 13f02c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/deploy-docusaurus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ jobs:
with:
node-version: '18'

- name: Install zod2md
run: npm install zod2md

- name: Install schema dependencies
run: npm install
working-directory: ./
Expand All @@ -42,10 +45,11 @@ jobs:

- name: Debug
run: |
ls -l
tree src/schemas
cat src/schemas/sdo/asset.schema.ts
tree ./docusaurus/docs/
cat ./docusaurus/docs/sdo/asset.schema.md
tree .
- name: Build Docusaurus site
run: npm run build
Expand Down
2 changes: 1 addition & 1 deletion generate-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ find $SCHEMA_DIR -name "*.schema.ts" | while read schemaFile; do
outputFile="$OUTPUT_DIR/${relativePath/.ts/.md}"

# convert zod schemas to md
npx zod2md --entry $schemaFile --title "$title Schema" --output "$outputFile"
npx zod2md --entry $schemaFile --title "$title schema" --output "$outputFile"

done

0 comments on commit 13f02c5

Please sign in to comment.