Skip to content

Merge pull request #33 from puja-trivedi/gars #25

Merge pull request #33 from puja-trivedi/gars

Merge pull request #33 from puja-trivedi/gars #25

name: generating documentation
on:
push:
branches:
- main
permissions:
contents: write
jobs:
generate:
runs-on: ubuntu-latest
steps:
- name: Checkout this repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install the required python packages
run: python -m pip install .[docs]
- name: Other installations
run: |
sudo apt-get update
sudo apt-get install -y build-essential git wget curl
- name: Create local docs
run: |
mkdir docs
cp -r src/docs/* docs/
touch docs/.nojekyll
gen-doc -d docs linkml-schema/purple_boxes.yaml
mv docs/index.md docs/index_purple.md
gen-doc -d docs linkml-schema/gars.yaml
mv docs/index.md docs/index_gars.md
mv docs/index_main.md docs/index.md
- name: Deploy to GitHub Pages
run: mkdocs gh-deploy --force