scrapy/docs
Hoat Le ca8d60f267 fix ValueError: Invalid XPath: //div/[id="not-exists"]/text() on selectors.rst
>>> response.xpath('//div/[id="not-exists"]/text()').extract_first() is None
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/home/vagrant/.virtualenvs/scrapy/lib/python2.7/site-packages/scrapy/http/response/text.py", line 109, in xpath
    return self.selector.xpath(query)
  File "/home/vagrant/.virtualenvs/scrapy/lib/python2.7/site-packages/scrapy/selector/unified.py", line 100, in xpath
    raise ValueError(msg if six.PY3 else msg.encode("unicode_escape"))
ValueError: Invalid XPath: //div/[id="not-exists"]/text()
2015-12-30 14:33:13 -03:00
..
_ext sort settings list by name and wrap it in a bullet list 2015-05-11 22:11:30 -03:00
_static DOC remove css file which isno longer needed 2015-04-15 03:44:49 +05:00
intro Add note to ubuntu install section about debian compatibility 2015-12-30 14:30:36 -03:00
topics fix ValueError: Invalid XPath: //div/[id="not-exists"]/text() on selectors.rst 2015-12-30 14:33:13 -03:00
utils Added linkfix script to docs/utils 2015-03-18 19:41:26 -03:00
Makefile some improvements for Scrapy tutorial 2015-04-20 21:10:07 -03:00
README add note to doc README about using 'make watch' 2015-05-01 01:39:03 -03:00
conf.py DOC(ENH): specify path to rtd theme explicitly 2015-12-30 14:28:24 -03:00
contributing.rst Add oldest supported tox version to contributing docs 2015-12-30 14:30:15 -03:00
faq.rst Spelling correction 2015-06-01 22:22:53 +05:00
index.rst remove empty experimental section from doc 2015-05-01 01:53:51 -03:00
news.rst Add 1.0.3 release notes 2015-08-11 13:49:19 -03:00
versioning.rst updated versioning doc according to recent changes 2012-01-05 11:50:28 -02:00

README

======================================
Scrapy documentation quick start guide
======================================

This file provides a quick guide on how to compile the Scrapy documentation.


Setup the environment
---------------------

To compile the documentation you need Sphinx Python library. To install it
and all its dependencies run

::

    pip install 'Sphinx >= 1.3'


Compile the documentation
-------------------------

To compile the documentation (to classic HTML output) run the following command
from this dir::

    make html

Documentation will be generated (in HTML format) inside the ``build/html`` dir.


View the documentation
----------------------

To view the documentation run the following command::

    make htmlview

This command will fire up your default browser and open the main page of your
(previously generated) HTML documentation.


Start over
----------

To cleanup all generated documentation files and start from scratch run::

    make clean

Keep in mind that this command won't touch any documentation source files.


Recreating documentation on the fly
-----------------------------------

There is a way to recreate the doc automatically when you make changes, you
need to install watchdog (``pip install watchdog``) and then use::

    make watch