Skip to content

Commit 0aef74f

Browse files
TomAugspurgerjreback
authored andcommitted
DOC: Cleanup for nbsphinx output (#15951)
Followup to #15581 Using the `nbsphinx: hidden` metadata to hide the ouptut, so readers don't see matplotlib's fc-list warning. Make the tables monospaced in CSS.
1 parent 88f5851 commit 0aef74f

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

doc/source/style.ipynb

+14
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,20 @@
4545
"Let's see some examples."
4646
]
4747
},
48+
{
49+
"cell_type": "code",
50+
"execution_count": null,
51+
"metadata": {
52+
"collapsed": true,
53+
"nbsphinx": "hidden"
54+
},
55+
"outputs": [],
56+
"source": [
57+
"import matplotlib\n",
58+
"# We have this here to trigger matplotlib's font cache stuff.\n",
59+
"# This cell is hidden from the output"
60+
]
61+
},
4862
{
4963
"cell_type": "code",
5064
"execution_count": null,

doc/source/themes/nature_with_gtoc/static/nature.css_t

+6
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,12 @@ tbody tr:nth-child(odd) {
330330
background: #f5f5f5;
331331
}
332332

333+
table td.data, table th.row_heading table th.col_heading {
334+
font-family: monospace;
335+
text-align: right;
336+
}
337+
338+
333339
/**
334340
* See also
335341
*/

0 commit comments

Comments
 (0)