Skip to content

Commit

Permalink
update makefile with postmancollection and deployGH
Browse files Browse the repository at this point in the history
  • Loading branch information
aloccid-iata committed Aug 18, 2023
1 parent accb048 commit 9f48d99
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions working_draft/API/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ copy-assets:
rm -rf docs/assets/ONE-Record-API-OpenAPI.yaml; cp ONE-Record-API-OpenAPI.yaml docs/assets/ONE-Record-API-OpenAPI.yaml
rm -rf docs/assets/ONE-Record-API-OpenAPI.recommended.yaml; cp ONE-Record-API-OpenAPI.recommended.yaml docs/assets/ONE-Record-API-OpenAPI.recommended.yaml
rm -rf docs/assets/ONE-Record-API-Ontology.csv; cp ONE-Record-API-Ontology.csv docs/assets/ONE-Record-API-Ontology.csv
rm -rf docs/assets/ONE-Record-API-Collections.postman_collection; cp ONE-Record-API-Collections.postman_collection docs/assets/ONE-Record-API-Collections.postman_collection

create-symlinks:
ln -fs ../CHANGELOG.md docs/changelog.md
Expand All @@ -27,6 +28,7 @@ create-symlinks:
ln -fs ../../ONE-Record-API-OpenAPI.yaml docs/assets/ONE-Record-API-OpenAPI.yaml
ln -fs ../../ONE-Record-API-OpenAPI.recommended.yaml docs/assets/ONE-Record-API-OpenAPI.recommended.yaml
ln -fs ../../ONE-Record-API-Ontology.csv docs/assets/ONE-Record-API-Ontology.csv
ln -fs ../../ONE-Record-API-Collections.postman_collection docs/assets/ONE-Record-API-Collections.postman_collection

serve:
$(MAKE) create-symlinks
Expand All @@ -44,6 +46,10 @@ deploy:
mkdocs gh-deploy --ignore-version --no-history
$(MAKE) create-symlinks

deployGH:
$(MAKE) copy-assets
mkdocs gh-deploy --ignore-version --no-history

clean:
rm -rf $(SITE_DIR)

Expand Down

0 comments on commit 9f48d99

Please sign in to comment.