Bump sphinx from 4.3.2 to 5.0.1 (#2128)
This commit is contained in:
parent
0e45d05810
commit
a1e7b16a17
|
@ -137,15 +137,15 @@ class ImageTableDirective(Table):
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
col_widths = self.get_column_widths(cols)
|
|
||||||
title, messages = self.make_title()
|
title, messages = self.make_title()
|
||||||
table = nodes.table()
|
table = nodes.table()
|
||||||
table["classes"].append("table-center")
|
table["classes"].append("table-center")
|
||||||
|
table["classes"].append("colwidths-given")
|
||||||
|
|
||||||
# Set up column specifications based on widths
|
# Set up column specifications based on widths
|
||||||
tgroup = nodes.tgroup(cols=cols)
|
tgroup = nodes.tgroup(cols=cols)
|
||||||
table += tgroup
|
table += tgroup
|
||||||
tgroup.extend(nodes.colspec(colwidth=col_width) for col_width in col_widths)
|
tgroup.extend(nodes.colspec(colwidth=1) for _ in range(cols))
|
||||||
|
|
||||||
tbody = nodes.tbody()
|
tbody = nodes.tbody()
|
||||||
tgroup += tbody
|
tgroup += tbody
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
sphinx==4.3.2
|
sphinx==5.0.1
|
||||||
sphinx-autobuild==2021.3.14
|
sphinx-autobuild==2021.3.14
|
||||||
|
|
Loading…
Reference in New Issue