mirror of
https://github.com/readthedocs/sphinx_rtd_theme.git
synced 2025-02-25 18:55:21 -06:00
Merge branch 'master' into version-in-js
This commit is contained in:
commit
049a1a01da
@ -6,6 +6,17 @@ Changelog
|
|||||||
master
|
master
|
||||||
======
|
======
|
||||||
|
|
||||||
|
New Features
|
||||||
|
-------------
|
||||||
|
|
||||||
|
Fixes
|
||||||
|
-----
|
||||||
|
|
||||||
|
* Fix table centering (#599)
|
||||||
|
|
||||||
|
Other Changes
|
||||||
|
--------------
|
||||||
|
|
||||||
v0.3.0
|
v0.3.0
|
||||||
======
|
======
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ file of this repository, and can be defined in your project's ``conf.py`` via
|
|||||||
'style_external_links': False,
|
'style_external_links': False,
|
||||||
'vcs_pageview_mode': '',
|
'vcs_pageview_mode': '',
|
||||||
# Toc options
|
# Toc options
|
||||||
'collapse_navigation': False,
|
'collapse_navigation': True,
|
||||||
'sticky_navigation': True,
|
'sticky_navigation': True,
|
||||||
'navigation_depth': 4,
|
'navigation_depth': 4,
|
||||||
'includehidden': True,
|
'includehidden': True,
|
||||||
@ -56,12 +56,19 @@ TOC Options
|
|||||||
These effect how we display the Table of Contents in the side bar. You can read more about them here: http://www.sphinx-doc.org/en/stable/templating.html#toctree
|
These effect how we display the Table of Contents in the side bar. You can read more about them here: http://www.sphinx-doc.org/en/stable/templating.html#toctree
|
||||||
|
|
||||||
* ``collapse_navigation`` Bool. With this enabled, you will lose the ``[+]`` drop downs next to each section in the sidebar.
|
* ``collapse_navigation`` Bool. With this enabled, you will lose the ``[+]`` drop downs next to each section in the sidebar.
|
||||||
This is useful for *very large* documents.
|
|
||||||
* ``sticky_navigation`` Bool. This causes the sidebar to scroll with the main page content as you scroll the page.
|
* ``sticky_navigation`` Bool. This causes the sidebar to scroll with the main page content as you scroll the page.
|
||||||
* ``navigation_depth`` Int. Indicate the max depth of the tree; by default, all levels are included.
|
* ``navigation_depth`` Int. Indicate the max depth of the tree; by default, 4 levels are included;
|
||||||
|
set it to -1 to allow unlimited depth.
|
||||||
* ``includehidden`` Bool. Specifies if the sidebar includes toctrees marked with the ``:hidden:`` option
|
* ``includehidden`` Bool. Specifies if the sidebar includes toctrees marked with the ``:hidden:`` option
|
||||||
* ``titles_only`` Bool. If True, removes headers within a page from the sidebar.
|
* ``titles_only`` Bool. If True, removes headers within a page from the sidebar.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
Setting ``collapse_navigation`` to False and using a high ``navigation_depth``
|
||||||
|
can cause projects with many files and a deep file structure to generate HTML files
|
||||||
|
that are significantly larger in file size and much longer compilation times.
|
||||||
|
|
||||||
|
|
||||||
HTML Context Options
|
HTML Context Options
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
|
@ -79,6 +79,11 @@
|
|||||||
font-family: $code-font-family
|
font-family: $code-font-family
|
||||||
display: block
|
display: block
|
||||||
overflow: auto
|
overflow: auto
|
||||||
|
& .hll
|
||||||
|
// Line emphasis spans full width
|
||||||
|
display: block
|
||||||
|
margin: 0 -1 * $base-line-height / 2
|
||||||
|
padding: 0 $base-line-height / 2
|
||||||
pre.literal-block, div[class^='highlight'] pre, .linenodiv pre
|
pre.literal-block, div[class^='highlight'] pre, .linenodiv pre
|
||||||
font-size: 12px
|
font-size: 12px
|
||||||
line-height: normal
|
line-height: normal
|
||||||
@ -122,6 +127,8 @@
|
|||||||
@extend .wy-plain-list-decimal
|
@extend .wy-plain-list-decimal
|
||||||
.section ol p, .section ul p
|
.section ol p, .section ul p
|
||||||
margin-bottom: $base-line-height / 2
|
margin-bottom: $base-line-height / 2
|
||||||
|
&:last-child
|
||||||
|
margin-bottom: $base-line-height
|
||||||
.line-block
|
.line-block
|
||||||
margin-left: 0px
|
margin-left: 0px
|
||||||
margin-bottom: $base-line-height
|
margin-bottom: $base-line-height
|
||||||
@ -143,7 +150,9 @@
|
|||||||
margin: 0px $base-line-height $base-line-height 0px
|
margin: 0px $base-line-height $base-line-height 0px
|
||||||
.align-center
|
.align-center
|
||||||
margin: auto
|
margin: auto
|
||||||
display: block
|
// Do not override display:table for tables
|
||||||
|
&:not(table)
|
||||||
|
display: block
|
||||||
.toctree-wrapper p.caption
|
.toctree-wrapper p.caption
|
||||||
@extend h2
|
@extend h2
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user