Skip to content

Commit d09e116

Browse files
Merge pull request #269 from geoblacklight/110_fix-table-sort
add tablesort js
2 parents e8223f8 + 714912e commit d09e116

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

docs/javascripts/tablesort.js

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

mkdocs.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ copyright: GeoBlacklight Community © 2015 - 2024
66
theme:
77
name: material
88
logo: images/gbl-favicon.png
9-
favicon: images/gbl-favicon.png
10-
11-
9+
favicon: images/gbl-favicon.png
1210
palette:
1311
primary: white
1412

@@ -56,6 +54,10 @@ markdown_extensions:
5654
options:
5755
custom_icons:
5856
- overrides/.icons
57+
58+
extra_javascript:
59+
- https://unpkg.com/[email protected]/dist/tablesort.min.js
60+
- javascripts/tablesort.js
5961

6062
plugins:
6163
- search

0 commit comments

Comments
 (0)