[dpdk-dev] doc: adjust column width of PMD overview tables
Checks
Commit Message
The net PMD overview table is big and required to be shrinked.
The crypto PMD tables had variable column sizes: the latest
columns were smaller.
The minimum width is set to 0.9em without any forced padding.
The maximum width is set to 2em.
The width of the first column set by sphinx is overriden to 0
for full elasticity.
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
---
doc/guides/conf.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
Comments
> -----Original Message-----
> From: Thomas Monjalon [mailto:thomas@monjalon.net]
> Sent: Monday, November 6, 2017 2:41 PM
> To: Mcnamara, John <john.mcnamara@intel.com>
> Cc: dev@dpdk.org
> Subject: [PATCH] doc: adjust column width of PMD overview tables
>
> The net PMD overview table is big and required to be shrinked.
> The crypto PMD tables had variable column sizes: the latest columns were
> smaller.
>
> The minimum width is set to 0.9em without any forced padding.
> The maximum width is set to 2em.
> The width of the first column set by sphinx is overriden to 0 for full
> elasticity.
>
> Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: John McNamara <john.mcnamara@intel.com>
> > The net PMD overview table is big and required to be shrinked.
> > The crypto PMD tables had variable column sizes: the latest columns were
> > smaller.
> >
> > The minimum width is set to 0.9em without any forced padding.
> > The maximum width is set to 2em.
> > The width of the first column set by sphinx is overriden to 0 for full
> > elasticity.
> >
> > Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
>
> Acked-by: John McNamara <john.mcnamara@intel.com>
Applied
@@ -340,7 +340,12 @@ def print_table_css(outfile, table_id):
font-size: 80%;
white-space: pre-wrap;
vertical-align: top;
- padding: 2px;
+ padding: 0.5em 0;
+ min-width: 0.9em;
+ width: 2em;
+ }
+ table#idx col:first-child {
+ width: 0;
}
table#idx th:first-child {
vertical-align: bottom;