Skip to content

Commit

Permalink
Merge pull request #714 from LandonTClipp/width
Browse files Browse the repository at this point in the history
Disable `max-width` for docs, add table sorting
  • Loading branch information
LandonTClipp authored Sep 25, 2023
2 parents 8262d05 + 37f1efc commit 0749788
Show file tree
Hide file tree
Showing 3 changed files with 14 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)
})
})
4 changes: 4 additions & 0 deletions docs/stylesheets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@
margin-right: auto;
margin-bottom: auto;
}

.md-grid {
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/tablesort@5.3.0/dist/tablesort.min.js
- javascripts/tablesort.js

extra:
version:
provider: mike
Expand Down

0 comments on commit 0749788

Please sign in to comment.