Skip to content

Commit

Permalink
Disable max-width for docs, add table sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
LandonTClipp committed Sep 25, 2023
1 parent 8262d05 commit ba9fb21
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/javascripts/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)
})
})
6 changes: 6 additions & 0 deletions docs/stylesheets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@
margin-right: auto;
margin-bottom: auto;
}

.md-grid {
margin-left: auto;
margin-right: auto;
max-width: none;
}
4 changes: 4 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ nav:
extra_css:
- stylesheets/extra.css

extra_javascript:
- https://unpkg.com/[email protected]/dist/tablesort.min.js
- javascripts/tablesort.js

extra:
version:
provider: mike
Expand Down

0 comments on commit ba9fb21

Please sign in to comment.