This resolves#200, where a scrollbar was sometimes visible on the navbar. This
unfortunately wasn't addressable with just CSS, as outlined in #206. Because we
need the element to be scrollable, we can't set `overflow: hidden` on the nav
element.
This fixes this issue by:
* Adding a `wy-side-scroll` element over the fixed position nav element and
under the menu item elements
* `wy-side-scroll` is set to 320px width, while the fixed position nav elements
and menu item elements are 300px, clipping the scrollbar with `overflow-x:
hidden` on the fixed position element
* Javascript is set to scroll the new scroll element instead of the parent
fixed position element
This was tested to be working in both cases on a variety of platforms: Linux FF,
Chrome, Windows IE, OSX Chrome and Safari, iPhone 5.1, and Android 4.2.
This adds a subtle version display to the nav header. It will pull this
information from conf.py `version` if it exists, or if on RTD, `current_version`
from the conf additional context. If neither exists, or the `display_version`
option is false, the block will not display.
This fixes#203. As of Sphinx 1.3, there are some code blocks that shouldn't
have this styling: namely breadcrumb code blocks and xref code blocks. This adds
additional rules for those as well.
Adds l3 + l4 nav menus, with more intuitive scrolling to make wandering the
additional nav menu items much easier. Resolves#25. Resolves#76.
* Reuses some styles for l3 + l4 navs items
* Nav interaction was changed to be more intuitive:
* Nav is always sticky, doesn't scroll past end of content
* Nav scrolls up immediately on window scroll events
* Nav scrolls independently
* Adds TOC expand plus links to the left of nav elements with children, these
are added and update dynamically
* Links in nav don't automatically scroll nav
* Scrolling content will start scrolling nav again
* Adds URL fragment handling to link and show current anchor links
Reuses styling for wy-nav-vertical headers, which seem to be unused, with some
color changes to the header elements. Also fixes caption headerlink styling.
On a page of search results, the "Edit on GitHub/Bitbucket" link tries
to send the reader to a file "search.rst" or "search.txt" in the
repository. Since the search results only exist as a template, this is
a 404'd link.
This change to the template means that the "Edit on GitHub/Bitbucket"
link is not shown on search pages, getting rid of this broken link.
Currently only source code hosted on GitHub or BitBucket are supported
to be linked. This PR adds the ability to link to an arbitrary source
code host URL. To use it, html_show_sourcelink must be True, and
source_url_prefix must be assigned to be the URL prefix.