diff --git a/.github/workflows/deploy-docs.yaml b/.github/workflows/deploy-docs.yaml index 6df9b8b..4517f94 100644 --- a/.github/workflows/deploy-docs.yaml +++ b/.github/workflows/deploy-docs.yaml @@ -27,5 +27,5 @@ jobs: run: | mkdir -p docs touch docs/.nojekyll - poetry run gen-doc -d docs src/linkml/include_schema.yaml + make gendoc poetry run mkdocs gh-deploy \ No newline at end of file diff --git a/Makefile b/Makefile index e544a4e..2815318 100644 --- a/Makefile +++ b/Makefile @@ -85,6 +85,11 @@ $(DOCDIR): # cp $(SRC)/docs/*md $(DOCDIR) ; \ # $(RUN) gen-doc -d $(DOCDIR) --template-directory $(SRC)/$(TEMPLATEDIR) $(SOURCE_SCHEMA_PATH) +update-docs: + cp $(SRC)/docs/about.md $(DOCDIR)/about.md + @echo "Updated docs/about.md from src/docs/about.md" + +# Include update-docs target in gendoc target gendoc: $(DOCDIR) @initial_branch=$$(git branch --show-current); \ latest_version=$$(git tag | sort -V | tail -n 1); \ @@ -104,6 +109,7 @@ gendoc: $(DOCDIR) fi; \ done; \ git checkout $$initial_branch + update-docs testdoc: gendoc serve