Skip to content

Commit beebfe1

Browse files
sujaypatil96claudematentzn
authored
Refresh linkml-model documentation pages with latest and greatest features (#226)
* upgrade linkml and other dependencies * config changes to accommodate latest doc features * remove redundant in make gen-doc cmd * Fix pydantic version mismatch in poetry.lock Update pydantic from 1.10.7 to 2.12.5 to be compatible with linkml 1.9.6 which requires GetPydanticSchema from pydantic v2.9+. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Update uv.lock --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com> Co-authored-by: Nico Matentzoglu <nicolas.matentzoglu@gmail.com>
1 parent e1b670f commit beebfe1

File tree

5 files changed

+19
-4
lines changed

5 files changed

+19
-4
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ gen-doc:
7676
cp -r $(PYMODEL) $(DOCDIR)/$(PYMODEL)
7777
rm -rf $(DOCDIR)/$(PYMODEL)/model/docs
7878
cp README.md $(DOCDIR)
79+
mkdir -p $(DOCDIR)/javascripts
80+
cp $(SRC)/utils/scripts/*.js $(DOCDIR)/javascripts/
7981

8082
test: test-schema test-python test-validate-schema test-examples
8183
test-schema:

mkdocs.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,23 @@ theme:
2121
name: Switch to dark mode
2222
plugins:
2323
- search
24-
- mermaid2
24+
- mermaid2:
25+
version: 10.9.0
2526
- mike:
2627
alias_type: symlink
2728
canonical_version: latest
2829
extra:
2930
version:
3031
provider: mike
31-
#markdown_extensions:
32+
markdown_extensions:
33+
- admonition
34+
- tables
35+
- pymdownx.magiclink
3236
# - toc:
3337
# permalink: true
38+
extra_javascript:
39+
- https://unpkg.com/tablesort@5.3.0/dist/tablesort.min.js
40+
- javascripts/tablesort.js
3441
docs_dir: docs/source
3542
site_dir: docs/build
3643
nav:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ dev = [
5555
]
5656
docs = [
5757
"mkdocs>=1.4.2",
58-
"mkdocs-material>=8.2.8",
58+
"mkdocs-material>=9.0.12",
5959
"mkdocs-mermaid2-plugin>=0.6.0",
6060
"mike>=2.0.0",
6161
]

utils/scripts/tablesort.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
document$.subscribe(function () {
2+
var tables = document.querySelectorAll("article table:not([class])");
3+
tables.forEach(function (table) {
4+
new Tablesort(table);
5+
});
6+
});

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)