Skip to content

Commit 0749788

Browse files
authoredSep 25, 2023
Merge pull request #714 from LandonTClipp/width
Disable `max-width` for docs, add table sorting
2 parents 8262d05 + 37f1efc commit 0749788

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed
 

‎docs/javascripts/tablesort.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
document$.subscribe(function() {
2+
var tables = document.querySelectorAll("article table:not([class])")
3+
tables.forEach(function(table) {
4+
new Tablesort(table)
5+
})
6+
})

‎docs/stylesheets/extra.css

+4
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@
99
margin-right: auto;
1010
margin-bottom: auto;
1111
}
12+
13+
.md-grid {
14+
max-width: none;
15+
}

‎mkdocs.yml

+4
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ nav:
7171
extra_css:
7272
- stylesheets/extra.css
7373

74+
extra_javascript:
75+
- https://unpkg.com/tablesort@5.3.0/dist/tablesort.min.js
76+
- javascripts/tablesort.js
77+
7478
extra:
7579
version:
7680
provider: mike

0 commit comments

Comments
 (0)
Please sign in to comment.