Skip to content

Commit

Permalink
mkdocs, site: make rendered tables sortable
Browse files Browse the repository at this point in the history
Signed-off-by: William Woodruff <[email protected]>
  • Loading branch information
woodruffw committed Mar 12, 2024
1 parent 8f0fb39 commit f9c6117
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ markdown_extensions:
permalink: 🔗
extra_css:
- style.css
extra_javascript:
- https://unpkg.com/[email protected]/dist/tablesort.min.js
- js/tablesort.js
exclude_docs: |
render-testcases.py
validation:
Expand Down
6 changes: 6 additions & 0 deletions site/js/tablesort.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
document$.subscribe(function () {
var tables = document.querySelectorAll("article table:not([class])")
tables.forEach(function (table) {
new Tablesort(table)
})
})

0 comments on commit f9c6117

Please sign in to comment.