Skip to content

Commit a5ce8d0

Browse files
authored
Merge pull request #20 from linkml/additional-docs
Additional docs
2 parents e5e906b + 3509438 commit a5ce8d0

29 files changed

+2049
-1430
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ db/
44
tests/output/
55
tests/input/integration/
66
tmp/
7+
*.TEST-RUN.ipynb
8+
*.tmp
79

810

911
# Byte-compiled / optimized / DLL files

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@ DOCTEST_DIR = docs src/linkml_store/api src/linkml_store/index src/linkml_store/
2525
doctest:
2626
find $(DOCTEST_DIR) -type f \( -name "*.rst" -o -name "*.md" -o -name "*.py" \) -print0 | xargs -0 $(RUN) python -m doctest --option ELLIPSIS --option NORMALIZE_WHITESPACE
2727

28+
NB_DIRS = tutorials how-to
29+
NB_DIRS_EXPANDED = $(patsubst %, docs/%/*.ipynb, $(NB_DIRS))
30+
NOTEBOOKS = $(wildcard ls $(NB_DIRS_EXPANDED))
31+
NB_TGTS = $(patsubst docs/%, tmp/docs/%, $(NOTEBOOKS))
32+
nbtest: $(NB_TGTS)
33+
echo $(NOTEBOOKS)
34+
35+
tmp/docs/%.ipynb: docs/%.ipynb
36+
mkdir -p $(dir $@) && \
37+
$(RUN) papermill --cwd $(dir $<) $< $@.tmp.ipynb && mv $@.tmp $@.ipynb && $(RUN) nbdiff -M -D $< $@
2838

2939
doctest-%:
3040
find $* -type f \( -name "*.py" \) -print0 | xargs -0 $(RUN) python -m doctest --option ELLIPSIS --option NORMALIZE_WHITESPACE

docs/how-to/Index-Phenopackets.ipynb

Lines changed: 93 additions & 374 deletions
Large diffs are not rendered by default.

docs/how-to/Index-caDSR.ipynb

Lines changed: 582 additions & 540 deletions
Large diffs are not rendered by default.

docs/how-to/Use-Semantic-Search.ipynb

Lines changed: 97 additions & 89 deletions
Large diffs are not rendered by default.

docs/reference/linkml_store.api.stores.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ Subpackages
1212
.. toctree::
1313
:maxdepth: 2
1414

15-
linkml_store.api.stores.chromadb
1615
linkml_store.api.stores.duckdb
17-
linkml_store.api.stores.filesystem
18-
linkml_store.api.stores.hdf5
1916
linkml_store.api.stores.mongodb
17+
linkml_store.api.stores.filesystem
2018
linkml_store.api.stores.solr
19+
linkml_store.api.stores.hdf5
20+
linkml_store.api.stores.chromadb

0 commit comments

Comments
 (0)