From f6ec79518fc09b0e8111e02a27ce732217cf39cb Mon Sep 17 00:00:00 2001 From: Sujay Patil Date: Wed, 21 Aug 2024 16:45:52 -0700 Subject: [PATCH] update Makefile rules --- Makefile | 7 +++++-- mkdocs.yml | 10 +++++++++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 78ed7d0b..fe8b3ed5 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,8 @@ SRC = src DEST = project PYMODEL = $(SRC)/$(SCHEMA_NAME)/datamodel DOCDIR = docs -EXAMPLEDIR = examples +EXAMPLE_DIR = examples +TEMPLATE_DIR = doc-templates SHEET_MODULE = personinfo_enums SHEET_ID = $(shell ${SHELL} ./utils/get-value.sh google_sheet_id) SHEET_TABS = $(shell ${SHELL} ./utils/get-value.sh google_sheet_tabs) @@ -144,7 +145,9 @@ $(DOCDIR): gendoc: $(DOCDIR) cp $(SRC)/docs/*md $(DOCDIR) ; \ - $(RUN) gen-doc ${GEN_DARGS} -d $(DOCDIR) $(SOURCE_SCHEMA_PATH) + $(RUN) gen-doc ${GEN_DARGS} -d $(DOCDIR) --template-directory $(SRC)/$(TEMPLATE_DIR) $(SOURCE_SCHEMA_PATH) + mkdir -p $(DOCDIR)/javascripts + $(RUN) cp $(SRC)/scripts/*.js $(DOCDIR)/javascripts/ testdoc: gendoc serve diff --git a/mkdocs.yml b/mkdocs.yml index b7149d17..8aa51f50 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -8,7 +8,15 @@ theme: - content.tabs.link plugins: - search - - mermaid2 + - mermaid2: + version: 10.9.0 +markdown_extensions: + - admonition + - tables + - pymdownx.magiclink +extra_javascript: + - https://unpkg.com/tablesort@5.3.0/dist/tablesort.min.js + - javascripts/tablesort.js nav: # - Home: home.md - Index: index.md