Skip to content

Commit

Permalink
fix(docs): use fixed version of fadroma/schema
Browse files Browse the repository at this point in the history
  • Loading branch information
bdeneux committed Aug 17, 2023
1 parent 82a7a49 commit bda29c7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,6 @@ rm -rf ${DOCS_FOLDER}/*
dependencies = ["docs-clean", "schema"]
description = "Generate documentation"
script = '''
echo "📦 Installing fadroma-schema..."
npm install --save-dev @fadroma/[email protected]
echo "📚 Generating documentation in ${DOCS_FOLDER} folder..."
Expand All @@ -116,7 +113,7 @@ mkdir -p $DOCS_FOLDER
for SCHEMA in $(ls $SCHEMA_FOLDER); do
awk "{sub(\"#/definitions\",\"./${SCHEMA}/#/definitions\")} {print}" ${SCHEMA_FOLDER}/${SCHEMA} > ${SCHEMA_FOLDER}/tmp
npm exec fadroma-schema ${SCHEMA_FOLDER}/tmp > "${SCHEMA%.json}.md"
npx --yes @fadroma/schema@1.0.6 ${SCHEMA_FOLDER}/tmp > "${SCHEMA%.json}.md"
mv "${SCHEMA%.json}.md" "docs/${SCHEMA%.json}.md"
done
Expand Down

0 comments on commit bda29c7

Please sign in to comment.