-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathdocumentation.Makefile
35 lines (30 loc) · 1.76 KB
/
documentation.Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
RUN = poetry run
DOCDIR = docs
$(DOCDIR):
mkdir -p $@
gendoc: $(DOCDIR)
$(RUN) gen-doc -d $(DOCDIR) $(SOURCE_SCHEMA_PATH)
cp $(SRC)/information_resource_registry/translator_dataflow/data/data_flow_diagram.png $(DOCDIR)/data_flow_diagram.png ; \
# DO NOT REMOVE: these cp statements are crucial to maintain the w3 ids for the model artifacts
cp $(DEST)/owl/information_resource_registry.owl.ttl $(DOCDIR)/information_resource_registry.owl.ttl ; \
cp $(DEST)/jsonld/information_resource_registry.context.jsonld $(DOCDIR)/information_resource_registry.context.jsonld ; \
cp $(DEST)/jsonld/information_resource_registry.context.jsonld $(DOCDIR)/context.jsonld ; \
cp $(DEST)/jsonld/information_resource_registry.jsonld $(DOCDIR)/information_resource_registry.jsonld ; \
cp $(DEST)/jsonschema/information_resource_registry.schema.json $(DOCDIR)/information_resource_registry.json ; \
cp $(DEST)/graphql/information_resource_registry.graphql $(DOCDIR)/information_resource_registry.graphql ; \
cp $(DEST)/shex/information_resource_registry.shex $(DOCDIR)/information_resource_registryn.shex ; \
cp $(DEST)/shacl/information_resource_registry.shacl.ttl $(DOCDIR)/information_resource_registry.shacl.ttl ; \
cp infores_catalog.yaml $(DOCDIR) ; \
cp $(SRC)/information_resource_registry/schema/information_resource_registry.yaml $(DOCDIR) ; \
cp -r $(SRC)/docs/* $(DOCDIR) ; \
cp -r $(SRC)/docs/images $(DOCDIR)/images ; \
# the .json cp here is the data required for the d3 visualizations
# this supports the display of our d3 visualizations
cp $(SRC)/docs/*.css $(DOCDIR) ; \
$(RUN) gen-doc -d $(DOCDIR) --template-directory $(SRC)/$(TEMPLATEDIR) $(SOURCE_SCHEMA_PATH)
testdoc: gendoc serve
# Test documentation locally
serve: mkd-serve
MKDOCS = $(RUN) mkdocs
mkd-%:
$(MKDOCS) $*