Add datatables.net to <table>
This commit is contained in:
@@ -42,16 +42,17 @@ pages:
|
||||
- ./bin/generate_images_stats.py
|
||||
- ./bin/generate_images_table.py
|
||||
- ./bin/generate_kernel_stats.py
|
||||
- mkdir -p ./public/
|
||||
- cp ./.gitlab/404.html ./public/
|
||||
- cp ./.gitlab/public.css ./public/
|
||||
- pandoc -s ./.gitlab/www.md -o ./public/index.html -c public.css
|
||||
- pandoc -s ./device-stats.md -o ./public/device-stats.html -c public.css
|
||||
- pandoc -s ./devices.md -o ./public/devices.html -c public.css
|
||||
- pandoc -s ./image-overview.md -o ./public/image-overview.html -c public.css
|
||||
- pandoc -s ./image-stats.md -o ./public/image-stats.html -c public.css
|
||||
- pandoc -s ./images.md -o ./public/images.html -c public.css
|
||||
- pandoc -s ./kernel-stats.md -o ./public/kernel-stats.html -c public.css
|
||||
- mkdir -pv ./public/
|
||||
- cp -v ./.gitlab/404.html ./public/
|
||||
- cp -v ./.gitlab/public.css ./public/
|
||||
- pandoc --standalone ./.gitlab/www.md --css=public.css --include-in-header=./.gitlab/header.html --output=./public/index.html
|
||||
- pandoc --standalone ./device-stats.md --css=public.css --include-in-header=./.gitlab/header.html --output=./public/device-stats.html
|
||||
- pandoc --standalone ./devices.md --css=public.css --include-in-header=./.gitlab/header.html --output=./public/devices.html
|
||||
- pandoc --standalone ./image-overview.md --css=public.css --include-in-header=./.gitlab/header.html --output=./public/image-overview.html
|
||||
- pandoc --standalone ./image-stats.md --css=public.css --include-in-header=./.gitlab/header.html --output=./public/image-stats.html
|
||||
- pandoc --standalone ./images.md --css=public.css --include-in-header=./.gitlab/header.html --output=./public/images.html
|
||||
- pandoc --standalone ./kernel-stats.md --css=public.css --include-in-header=./.gitlab/header.html --output=./public/kernel-stats.html
|
||||
- find public/ -type f -name '*.html' -exec sed -i 's_<table>_<table id="pretty">_' {} +
|
||||
|
||||
artifacts:
|
||||
paths:
|
||||
|
||||
12
.gitlab/header.html
Normal file
12
.gitlab/header.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<link rel="stylesheet" type="text/css" media="screen" href="https://cdn.datatables.net/1.12.1/css/jquery.dataTables.min.css" />
|
||||
<script type="text/ecmascript" src="https://code.jquery.com/jquery-3.5.1.js"></script>
|
||||
<script type="text/ecmascript" src="https://cdn.datatables.net/1.12.1/js/jquery.dataTables.min.js"></script>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$('#pretty').DataTable({
|
||||
order: [[0, 'asc']],
|
||||
"lengthChange": false,
|
||||
"paging": false,
|
||||
});
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user