Skip to content

Commit 93a52af

Browse files
committed
enable table sorting in docs pages
1 parent 850f10f commit 93a52af

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ gen-doc:
7373
cp -r $(PYMODEL) $(DOCDIR)/$(PYMODEL)
7474
rm -rf $(DOCDIR)/$(PYMODEL)/model/docs
7575
cp README.md $(DOCDIR)
76+
mkdir -p $(DOCDIR)/javascripts
77+
$(RUN) cp $(SRC)/utils/scripts/*.js $(DOCDIR)/javascripts/
7678

7779
test: test-schema test-python test-validate-schema test-examples
7880
test-schema:

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+
});

0 commit comments

Comments
 (0)