Skip to content

Commit

Permalink
Fix documentation build/deployment Action (#335)
Browse files Browse the repository at this point in the history
  • Loading branch information
sujaypatil96 authored Nov 15, 2023
1 parent 4334dce commit 9c2af81
Show file tree
Hide file tree
Showing 4 changed files with 563 additions and 372 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ jobs:
run: |
mkdir docs
touch docs/.nojekyll
cp -r src/docs/* docs/
poetry run gen-doc -d docs src/sssom_schema/schema/sssom_schema.yaml --template-directory src/doc-templates
poetry run mkdocs gh-deploy
make gendoc
([ ! -f docs/about.md ] && cp src/docs/about.md docs/) || true
make mkd-gh-deploy
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,14 @@ deploy: all mkd-gh-deploy

# generates all project files
gen-project: $(PYMODEL)
$(RUN) gen-project -d $(DEST) $(SOURCE_SCHEMA_PATH) && mv $(DEST)/*.py $(PYMODEL)
$(RUN) gen-project \
--exclude owl \
-d $(DEST) $(SOURCE_SCHEMA_PATH) && mv $(DEST)/*.py $(PYMODEL)

test:
$(RUN) gen-project -d tmp $(SOURCE_SCHEMA_PATH)
$(RUN) gen-project \
--exclude owl \
-d tmp $(SOURCE_SCHEMA_PATH)

check-config:
@(grep my-datamodel about.yaml > /dev/null && printf "\n**Project not configured**:\n\n - Remember to edit 'about.yaml'\n\n" || exit 0)
Expand Down
Loading

0 comments on commit 9c2af81

Please sign in to comment.