diff options
author | 2022-09-12 15:33:40 +0200 | |
---|---|---|
committer | 2022-09-12 15:33:40 +0200 | |
commit | b1f312512fc4733b9ad13bb1180dc4a3289be6da (patch) | |
tree | 80ed4400b15f58708d00884f8fb9497bf8894f7b | |
parent | riscv: Add more download links (diff) | |
download | www-b1f312512fc4733b9ad13bb1180dc4a3289be6da.tar.gz www-b1f312512fc4733b9ad13bb1180dc4a3289be6da.tar.bz2 www-b1f312512fc4733b9ad13bb1180dc4a3289be6da.zip |
glep: Sync table rendering to docutils-glep-1.5
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r-- | _plugins/gleps.rb | 3 | ||||
-rw-r--r-- | assets/css/glep.css | 9 |
2 files changed, 11 insertions, 1 deletions
diff --git a/_plugins/gleps.rb b/_plugins/gleps.rb index 85b1f82..b9e7f53 100644 --- a/_plugins/gleps.rb +++ b/_plugins/gleps.rb @@ -29,7 +29,8 @@ module Gentoo def __target_object__ @__target_object__ ||= ::RbST.new(".. contents::\n..\n\n" + @rst).to_html( - 'initial-header-level' => 2) + 'initial-header-level' => 2, + 'table-style' => '"table table-bordered"') end def method_missing(method_name, *args, &block) diff --git a/assets/css/glep.css b/assets/css/glep.css index 84b3238..ea4ede6 100644 --- a/assets/css/glep.css +++ b/assets/css/glep.css @@ -80,6 +80,15 @@ THE SOFTWARE. border-color: #ebccd1; } +.table { + width: auto; +} + +table.table > tbody > tr > td, +table.table > tbody > tr > th { + vertical-align: middle; +} + /* the following bits are copied from: |