From 99318b791f9360ae72d06ddc452518724414dd67 Mon Sep 17 00:00:00 2001 From: Tom Augspurger Date: Sat, 8 Apr 2017 13:43:40 -0500 Subject: [PATCH] DOC: Cleanup for nbsphinx output Followup to https://github.com/pandas-dev/pandas/pull/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. --- doc/source/style.ipynb | 14 ++++++++++++++ .../themes/nature_with_gtoc/static/nature.css_t | 6 ++++++ 2 files changed, 20 insertions(+) diff --git a/doc/source/style.ipynb b/doc/source/style.ipynb index 7e408f96f6c28..38b39bad8b415 100644 --- a/doc/source/style.ipynb +++ b/doc/source/style.ipynb @@ -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, diff --git a/doc/source/themes/nature_with_gtoc/static/nature.css_t b/doc/source/themes/nature_with_gtoc/static/nature.css_t index 2958678dc8221..1adaaf58d79c5 100644 --- a/doc/source/themes/nature_with_gtoc/static/nature.css_t +++ b/doc/source/themes/nature_with_gtoc/static/nature.css_t @@ -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 */