Skip to content

Commit

Permalink
Fix rendering of tables in the Read The Docs theme
Browse files Browse the repository at this point in the history
For the Read The Docs theme to render tables correctly it expects them
to have the docutils class (which is present in Sphinx projects).

Fixes mkdocs#106
  • Loading branch information
d0ugal committed Nov 30, 2014
1 parent 9c068c0 commit 294b788
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mkdocs/themes/readthedocs/js/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ $( document ).ready(function() {
$("table.docutils:not(.field-list)").wrap("<div class='wy-table-responsive'></div>");

hljs.initHighlightingOnLoad();

$('table').addClass('docutils');
});

window.SphinxRtdTheme = (function (jquery) {
Expand Down

0 comments on commit 294b788

Please sign in to comment.