Skip to content

Commit

Permalink
adds ability to sort tables
Browse files Browse the repository at this point in the history
  • Loading branch information
cesar-rodriguez committed Aug 16, 2020
1 parent 68d6dca commit 051fb7e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/javascripts/tables.js
@@ -0,0 +1,6 @@
app.location$.subscribe(function () {
var tables = document.querySelectorAll("article table")
tables.forEach(function (table) {
new Tablesort(table)
})
})
4 changes: 4 additions & 0 deletions mkdocs.yml
Expand Up @@ -63,3 +63,7 @@ google_analytics:
plugins:
- diagrams
- search

extra_javascript:
- https://cdnjs.cloudflare.com/ajax/libs/tablesort/5.2.1/tablesort.min.js
- javascripts/tables.js

0 comments on commit 051fb7e

Please sign in to comment.