diff --git a/docs/javascripts/tablesort.js b/docs/javascripts/tablesort.js new file mode 100644 index 00000000..2e9fd4e5 --- /dev/null +++ b/docs/javascripts/tablesort.js @@ -0,0 +1,6 @@ +document$.subscribe(function() { + var tables = document.querySelectorAll("article table:not([class])") + tables.forEach(function(table) { + new Tablesort(table) + }) + }) diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css index 8012c1b9..0b0872cd 100644 --- a/docs/stylesheets/extra.css +++ b/docs/stylesheets/extra.css @@ -9,3 +9,9 @@ margin-right: auto; margin-bottom: auto; } + +.md-grid { + margin-left: auto; + margin-right: auto; + max-width: none; +} diff --git a/mkdocs.yml b/mkdocs.yml index d96c47bc..b614a716 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -71,6 +71,10 @@ nav: extra_css: - stylesheets/extra.css +extra_javascript: + - https://unpkg.com/tablesort@5.3.0/dist/tablesort.min.js + - javascripts/tablesort.js + extra: version: provider: mike