Use `page_source_suffix` instead of checking `source_suffix`
Since we now require sphinx 1.6 we can cleanup this old workaround for old sphinx versions.
Sphinx 1.6 is required for de76c03824 we also do not test against versions lower than 1.6 so we should safely drop it.
This is similar to #1076 and #1075 but less strict
* Docs: Add text before config api type information
This makes it more clear what the confval is for without having to read through the type information.
This matches usual sphinx autodoc behavior.
* Only use one space above headings
* npm: Add a few missing package fields
This fixes these warnings when running `npm install`:
```
npm WARN sphinx_rtd_theme@0.5.1 No repository field.
npm WARN sphinx_rtd_theme@0.5.1 No license field.
```
* 0.5.2
* Revert version bump
* Revert version bump
This changes non PR builds on rtd to use the local theme and not the old 0.4.3 theme. We want our docs to show what the theme looks like based on the current release, not an old version.
The sets the right padding the same as the first level.
The current padding is too large and varies between toc levels.
Now, the right padding is the same between all levels and only the left padding changes
Currently, Nav buttons to expand the menu are a bit small and do not match the link text.
This makes the font size and line-height match between the text and icon.
- You can see a practical demonstration of the problem, fully seeing
the effect if it is not fixed, here (though that example uses the
alabaster theme, the effect is the same here):
https://github.com/executablebooks/sphinx-copybutton/issues/110
- This is a copy of a fix from Sphinx. The sphinx pull request is
https://github.com/sphinx-doc/sphinx/pull/8524
Detailed description:
- url_root is set to `#` on the index page, which layout.html tries to
change back to `''` (the empty string).
- But, this updated url_root wasn't used in the actual location, as an
argument to `documentation_options.js`.
- Thus, clever enough templates, which tried to use
`$DOCUMENTATION_OPTIONS.URL_ROOT` inside javascript would fail.
This was manifested as broken links, which led to this issue:
https://github.com/executablebooks/sphinx-copybutton/issues/110
- I have eventually traced that back to sphinx itself, and found that
layout.html tried to fix the problem, but the fixed value wasn't
used.
- This fix works in my basic test, but I will continue with more tests.
- Review:
- someone more clever should examine this and make sure it makes
sense
- This does not have tests. Should it?
Tested this to work on a local RTD server with Python 3.7. Consider this as a better default than pinning specific Python 3 versions, which makes it harder for the central RTD server to get rid of these versions.