Skip to content

Commit

Permalink
Make mapping table sortable
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Oct 21, 2024
1 parent 49da344 commit 641bcd0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions docs/_js/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)
})
})
5 changes: 3 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ markdown_extensions:
alternate_style: true
- pymdownx.snippets

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

extra_css:
- _css/extra.css
Expand All @@ -73,6 +76,4 @@ nav:
- Google Dataset Search: 'google-dataset-search.md'
- CLI: 'cli.md'
- Configuration reference: 'configuration.md'
# - CHANGELOG: 'https://github.com/ckan/ckanext-dcat/blob/master/CHANGELOG.md'

- CHANGELOG: 'changelog.md'

0 comments on commit 641bcd0

Please sign in to comment.