-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #250 from aloccid-iata/master
API Documentation separation
- Loading branch information
Showing
103 changed files
with
321 additions
and
206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: ONE Record Github pages deployer | ||
name: ONE Record Github Pages deployer (development) | ||
on: | ||
push: | ||
branches: | ||
|
@@ -10,17 +10,22 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
continue-on-error: true | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.x | ||
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV | ||
- uses: actions/cache@v3 | ||
fetch-depth: 0 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
key: mkdocs-material-${{ env.cache_id }} | ||
path: .cache | ||
restore-keys: | | ||
mkdocs-material- | ||
- run: pip install mkdocs mkdocs-material | ||
- run: make deployGH | ||
working-directory: ./working_draft/API/ | ||
python-version: 3.10.6 | ||
- name: Install Dependencies | ||
run: | | ||
pip install mkdocs-material | ||
pip install mike | ||
- name: Setup Docs Deploy | ||
run: | | ||
git config --global user.name "IATA-Cargo" | ||
git config --global user.email "[email protected]" | ||
- name: Build Docs Website | ||
run: | | ||
make copy-assets | ||
mike deploy --push development | ||
working-directory: ./Documentation_website | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Github Pages Eraser | ||
on: | ||
workflow_dispatch: | ||
permissions: | ||
contents: write | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.10.6 | ||
- name: Install Dependencies | ||
run: | | ||
pip install mkdocs-material | ||
pip install mike | ||
- name: Setup Docs Deploy | ||
run: | | ||
git config --global user.name "IATA-Cargo" | ||
git config --global user.email "[email protected]" | ||
- name: Build Docs Website | ||
run: | | ||
mike delete --push --all | ||
working-directory: ./Documentation_website |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: ONE Record new release publisher | ||
on: | ||
release: | ||
types: [published] | ||
|
||
permissions: | ||
contents: write | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.10.6 | ||
- name: Install Dependencies | ||
run: | | ||
pip install mkdocs-material | ||
pip install mike | ||
- name: Setup Docs Deploy | ||
run: | | ||
git config --global user.name "Docs Deploy" | ||
git config --global user.email "[email protected]" | ||
- name: Build Docs Website | ||
run: | | ||
make copy-assets | ||
mike deploy --push --update-aliases ${{ github.event.release.tag_name }} stable | ||
mike set-default --push stable | ||
working-directory: ./Documentation_website |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
SITE_DIR := $(CURDIR)/site | ||
VERSION := 2.0.0-dev | ||
|
||
install: | ||
pip install pip --upgrade | ||
pip install -r requirements.txt | ||
|
||
upgrade: | ||
pip install pip --upgrade | ||
pip install -r requirements.txt --upgrade | ||
|
||
copy-assets: | ||
rm -rf docs/API-Security/changelog.md; cp ../working_draft/API/CHANGELOG.md docs/API-Security/changelog.md | ||
rm -rf docs/API-Security/license.md; cp ../LICENSE docs/API-Security/license.md | ||
rm -rf docs/API-Security/assets/ONE-Record-API-Ontology.ttl; cp ../working_draft/API/ONE-Record-API-Ontology.ttl docs/API-Security/assets/ONE-Record-API-Ontology.ttl | ||
rm -rf docs/API-Security/assets/ONE-Record-API-Class-Diagram.md; cp ../working_draft/API/ONE-Record-API-Class-Diagram.md docs/API-Security/assets/ONE-Record-API-Class-Diagram.md | ||
rm -rf docs/API-Security/assets/ONE-Record-API-OpenAPI.yaml; cp ../working_draft/API/ONE-Record-API-OpenAPI.yaml docs/API-Security/assets/ONE-Record-API-OpenAPI.yaml | ||
rm -rf docs/API-Security/assets/ONE-Record-API-Ontology.csv; cp ../working_draft/API/ONE-Record-API-Ontology.csv docs/API-Security/assets/ONE-Record-API-Ontology.csv | ||
rm -rf docs/API-Security/assets/ONE-Record-API-Collections.postman_collection; cp ../working_draft/API/ONE-Record-API-Collections.postman_collection docs/API-Security/assets/ONE-Record-API-Collections.postman_collection | ||
|
||
serve: | ||
$(MAKE) copy-assets | ||
mkdocs serve | ||
|
||
build: | ||
$(MAKE) copy-assets | ||
mkdocs build | ||
mkdir -p $(SITE_DIR)/ns/api/$(VERSION) | ||
echo "<!DOCTYPE html> <meta charset=\"utf-8\"> <title>Redirecting to versioned ontology</title> <meta http-equiv=\"refresh\" content=\"0; URL=./2.0.0-dev\"> <link rel=\"canonical\" href=\"2.0.0-dev\">" > $(SITE_DIR)/ns/api/index.html | ||
python -m pylode ONE-Record-API-Ontology.ttl -o $(SITE_DIR)/ns/api/$(VERSION)/index.html | ||
|
||
|
||
deployGH: | ||
$(MAKE) copy-assets | ||
mkdocs gh-deploy --ignore-version --no-history | ||
|
||
clean: | ||
rm -rf $(SITE_DIR) | ||
|
||
ghp-deploy: | ||
ghp-import -m "updating docs" --no-history -p site | ||
|
||
mike-deploy: | ||
$(MAKE) copy-assets | ||
mike deploy --push development | ||
|
||
mike-release: | ||
$(MAKE) copy-assets | ||
mike deploy --push --update-aliases ${{ github.event.release.tag_name }} latest | ||
|
||
.PHONY: install upgrade copy-assets serve build deployGH clean ghp-deploy |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.