Author: Matti Picus <matti.pi...@gmail.com> Branch: Changeset: r91214:b48484eba9d0 Date: 2017-05-09 20:42 +0300 http://bitbucket.org/pypy/pypy/changeset/b48484eba9d0/
Log: fix table wrapping, from rackerlabs.github.io/docs-rackspace/tools /rtd-tables.html diff --git a/pypy/doc/_static/themes_override.css b/pypy/doc/_static/themes_override.css new file mode 100644 --- /dev/null +++ b/pypy/doc/_static/themes_override.css @@ -0,0 +1,15 @@ +/* override table width restrictions */ +@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; + } +} + + diff --git a/pypy/doc/conf.py b/pypy/doc/conf.py --- a/pypy/doc/conf.py +++ b/pypy/doc/conf.py @@ -59,16 +59,16 @@ # General information about the project. project = u'PyPy' -copyright = u'2016, The PyPy Project' +copyright = u'2017, The PyPy Project' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. -version = '5.4' +version = '5.7' # The full version, including alpha/beta/rc tags. -release = '5.4.0' +release = '5.7.1' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. @@ -141,7 +141,7 @@ # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -# html_static_path = ['_static'] +html_static_path = ['_static'] # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format. @@ -181,6 +181,11 @@ # Output file base name for HTML help builder. htmlhelp_basename = 'PyPydoc' +html_context = { + 'css_files': [ + '_static/themes_override.css', # override too wide tables + ], +} # -- Options for LaTeX output -------------------------------------------------- diff --git a/pypy/doc/index-of-whatsnew.rst b/pypy/doc/index-of-whatsnew.rst --- a/pypy/doc/index-of-whatsnew.rst +++ b/pypy/doc/index-of-whatsnew.rst @@ -29,6 +29,14 @@ whatsnew-2.0.0-beta1.rst whatsnew-1.9.rst +CPython 3.5 compatible versions +------------------------------- + +.. toctree:: + + whatsnew-pypy3-head.rst + whatsnew-pypy3-5.7.0.rst + CPython 3.3 compatible versions ------------------------------- diff --git a/rpython/doc/_static/themes_override.css b/rpython/doc/_static/themes_override.css new file mode 100644 --- /dev/null +++ b/rpython/doc/_static/themes_override.css @@ -0,0 +1,15 @@ +/* override table width restrictions */ +@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; + } +} + + diff --git a/rpython/doc/conf.py b/rpython/doc/conf.py --- a/rpython/doc/conf.py +++ b/rpython/doc/conf.py @@ -59,16 +59,16 @@ # General information about the project. project = u'RPython' -copyright = u'2016, The PyPy Project' +copyright = u'2017, The PyPy Project' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. -version = '4.0' +version = '5.7' # The full version, including alpha/beta/rc tags. -release = '4.0.0' +release = '5.7.1' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. @@ -184,6 +184,11 @@ # Output file base name for HTML help builder. htmlhelp_basename = 'RPythondoc' +html_context = { + 'css_files': [ + '_static/themes_override.css', # override too wide tables + ], +} # -- Options for LaTeX output -------------------------------------------------- _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit