Skip to content

Commit

Permalink
DOC: Cleanup for nbsphinx output (#15951)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
TomAugspurger authored and jreback committed Apr 8, 2017
1 parent 88f5851 commit 0aef74f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
14 changes: 14 additions & 0 deletions doc/source/style.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,20 @@
"Let's see some examples."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true,
"nbsphinx": "hidden"
},
"outputs": [],
"source": [
"import matplotlib\n",
"# We have this here to trigger matplotlib's font cache stuff.\n",
"# This cell is hidden from the output"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
6 changes: 6 additions & 0 deletions doc/source/themes/nature_with_gtoc/static/nature.css_t
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,12 @@ tbody tr:nth-child(odd) {
background: #f5f5f5;
}

table td.data, table th.row_heading table th.col_heading {
font-family: monospace;
text-align: right;
}


/**
* See also
*/
Expand Down

0 comments on commit 0aef74f

Please sign in to comment.