Skip to content

Commit 9f305ff

Browse files
authored
Merge pull request #185 from isamplesorg/20250207-adjustments
20250207 adjustments
2 parents dfb9a96 + a797cea commit 9f305ff

5 files changed

Lines changed: 3372 additions & 2250 deletions

File tree

development_notes.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# iSamples Schema Development Notes
2+
3+
1. All artifacts should be built from the source schema.
4+
2. The source schema is `src/schemas/isamples_core.yaml`.
5+
3. The source schema is defined using LinkML YAML.
6+
4. Artifacts are generated using the linkml tools.
7+
5. HTML documentation is built with Quarto, with linkml used to generate the `.qmd`
8+
9+
## Generating HTML
10+
11+
Destination = `docs/`. On GitHub, that folder is used to serve the content using GitHub pages. An intermediate folder `build/docs` is used to hold ther intermediate files prior to running the markdown to html generator.
12+
13+
Generating the `.qmd` files:
14+
```
15+
python tools/docgen.py \
16+
--log_level INFO
17+
--dialect quarto \
18+
--sort-by name \
19+
--format quarto \
20+
--mergeimports \
21+
--metadata \
22+
--directory docs \
23+
src/schema/isamples_core.yaml
24+
```
25+
26+
Building the HTML using quarto:
27+
```
28+
# create intermediate folder
29+
mkdir docs
30+
# Copy static stuff from source to destination
31+
cp src/docs/*.md docs/
32+
# Copy quarto config and related artifacts to docs
33+
cp quarto/* docs/
34+
touch docs/.nojekyll
35+
pushd docs
36+
quarto render
37+
popd
38+
```

0 commit comments

Comments
 (0)