Skip to content

Commit 714f4ad

Browse files
committed
DOC: Cleanup for nbsphinx output
Followup to pandas-dev#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 714f4ad

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-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

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

333+
table .data, table .row_heading table .col_heading {
334+
font-family: monospace;
335+
}
336+
337+
333338
/**
334339
* See also
335340
*/

0 commit comments

Comments
 (0)