diff --git a/Makefile b/Makefile index 058c8a3..2f17805 100644 --- a/Makefile +++ b/Makefile @@ -23,6 +23,7 @@ DEST = project PYMODEL = $(SRC)/$(SCHEMA_NAME)/datamodel DOCDIR = docs EXAMPLEDIR = examples +TEMPLATEDIR = doc-templates SHEET_MODULE = personinfo_enums SHEET_ID = $(LINKML_SCHEMA_GOOGLE_SHEET_ID) SHEET_TABS = $(LINKML_SCHEMA_GOOGLE_SHEET_TABS) @@ -199,8 +200,12 @@ $(DOCDIR): mkdir -p $@ gendoc: $(DOCDIR) - cp -rf $(SRC)/docs/* $(DOCDIR) ; \ - $(RUN) gen-doc ${GEN_DOC_ARGS} -d $(DOCDIR) $(SOURCE_SCHEMA_PATH) + # added copying of images and renaming of TEMP.md + cp $(SRC)/docs/*md $(DOCDIR) ; \ + cp -r $(SRC)/docs/images $(DOCDIR) ; \ + $(RUN) gen-doc -d $(DOCDIR) --template-directory $(SRC)/$(TEMPLATEDIR) $(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 2a1e7ea..a81dfe4 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,5 +1,5 @@ --- -site_name: "mifc" +site_name: mifc theme: name: material # palette: @@ -12,6 +12,13 @@ plugins: - 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