diff --git a/mkdocs.yml b/mkdocs.yml index 30d87c71..9da0bc50 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -20,6 +20,9 @@ markdown_extensions: permalink: 🔗 extra_css: - style.css +extra_javascript: + - https://unpkg.com/tablesort@5.3.0/dist/tablesort.min.js + - js/tablesort.js exclude_docs: | render-testcases.py validation: diff --git a/site/js/tablesort.js b/site/js/tablesort.js new file mode 100644 index 00000000..98717aed --- /dev/null +++ b/site/js/tablesort.js @@ -0,0 +1,6 @@ +document$.subscribe(function () { + var tables = document.querySelectorAll("article table:not([class])") + tables.forEach(function (table) { + new Tablesort(table) + }) +})