Skip to content

Commit

Permalink
docs: Fix table CSS, text wraps normally now
Browse files Browse the repository at this point in the history
  • Loading branch information
mdraw committed Jul 19, 2017
1 parent de0e7dc commit 1673962
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
13 changes: 13 additions & 0 deletions docs/_static/table_fix.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/* override table width restrictions
* (source: http://rackerlabs.github.io/docs-rackspace/tools/rtd-tables.html) */

@media screen and (min-width: 767px) {
.wy-table-responsive table td {
/* !important prevents the common CSS stylesheets from overriding
this as on RTD they are loaded after this stylesheet */
white-space: normal !important;
}
.wy-table-responsive {
overflow: visible !important;
}
}
6 changes: 6 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']

html_context = {
'css_files': [
'_static/table_fix.css',
],
}


# -- Options for HTMLHelp output ------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def read(fname):

setup(
name="elektronn2",
version="0.2.0",
version="0.3.0",
packages=find_packages(),
scripts=[
'scripts/elektronn2-train',
Expand Down

0 comments on commit 1673962

Please sign in to comment.