Scrapy, a fast high-level web crawling & scraping framework for Python.
Add support for Sphinx 1.4
Paul Tremberth1075587dbd15
diff --git a/docs/_ext/scrapydocs.py b/docs/_ext/scrapydocs.pyindex f0827f2b1..83b0d2cc6 100644--- a/docs/_ext/scrapydocs.py+++ b/docs/_ext/scrapydocs.py@@ -18,7 +18,7 @@ def is_setting_index(node):if node.tagname == 'index':# index entries for setting directives look like:# [(u'pair', u'SETTING_NAME; setting', u'std:setting-SETTING_NAME', '')]- entry_type, info, refid, _ = node['entries'][0]+ entry_type, info, refid = node['entries'][0][:3]return entry_type == 'pair' and info.endswith('; setting')return False@@ -30,7 +30,7 @@ def get_setting_target(node):def get_setting_name_and_refid(node):"""Extract setting name from directive index node"""- entry_type, info, refid, _ = node['entries'][0]+ entry_type, info, refid = node['entries'][0][:3]return info.replace('; setting', ''), refiddiff --git a/docs/topics/selectors.rst b/docs/topics/selectors.rstindex 3a0695568..d1845b20c 100644--- a/docs/topics/selectors.rst+++ b/docs/topics/selectors.rst@@ -738,10 +738,14 @@ simple/convenient XPaths. You can use theLet's show an example that illustrates this with Github blog atom feed.+.. highlight:: sh+First, we open the shell with the url we want to scrape::$ scrapy shell https://github.com/blog.atom+.. highlight:: python+Once in the shell we can try selecting all ``<link>`` objects and see that itdoesn't work (because the Atom XML namespace is obfuscating those nodes)::diff --git a/tox.ini b/tox.iniindex 2a8067618..f6de64b27 100644--- a/tox.ini+++ b/tox.ini@@ -60,6 +60,7 @@ deps = {[testenv:py33]deps}changedir = docsdeps =Sphinx+ sphinx_rtd_theme[testenv:docs]changedir = {[docs]changedir}