Add support for Sphinx 1.4 #1893
Conversation
See http://www.sphinx-doc.org/en/stable/changes.html#release-1-4-released-mar-28-2016 sphinx_rtd_theme has become optional, needs to be added to reqs sphinx-doc/sphinx#2320 changes node entries tuples to 5 values instead of 4 `sh` syntax highlighting added very locally in selectors.rst because of this warning/error with Sphinx 1.4: ``` Warning, treated as error: /home/paul/src/scrapy/docs/topics/selectors.rst:743: WARNING: Could not lex literal_block as "python". Highlighting skipped. ```
Current coverage is
|
Hi Paul, This looks good, but I think we should specify Sphinx 1.4+ dependency somewhere, it looks like some of the changes won't work with earlier Sphinx versions. |
@kmike , which change you mean? |
ah, yeah, sorry, I thought "changes node entries tuples to 5 values instead of 4" is backwards incompatible, but your code handles both 4 and 5. |
Thanks, @redapple ! |
@redapple @kmike , since
What do you think? |
@harshasrinivas I think we shouldn't add sphinx to requirements.txt - it is a file with packages needed to run Scrapy; users generally don't build Scrapy docs, so sphinx is not needed for them. +1 to adding it to |
See http://www.sphinx-doc.org/en/stable/changes.html#release-1-4-released-mar-28-2016
sphinx_rtd_theme
has become optional, needs to be added to reqssh
syntax highlighting added very locally in selectors.rst because of this warning/error with Sphinx 1.4: