|
Revision 1103:b81fc4099209, 1.2 kB
(checked in by Daniel Grana <dangra@…>, 16 months ago)
|
|
mv scrapy/trunk to root as part of svn2hg migration
|
| Line | |
|---|
| 1 | ====================================== |
|---|
| 2 | Scrapy documentation quick start guide |
|---|
| 3 | ====================================== |
|---|
| 4 | |
|---|
| 5 | This file provides a quick guide on how to compile the Scrapy documentation. |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | Setup the environment |
|---|
| 9 | --------------------- |
|---|
| 10 | |
|---|
| 11 | To compile the documentation you need the following Python libraries: |
|---|
| 12 | |
|---|
| 13 | * Sphinx |
|---|
| 14 | * docutils |
|---|
| 15 | * jinja |
|---|
| 16 | |
|---|
| 17 | If you have setuptools available the following command will install all of them |
|---|
| 18 | (since Sphinx requires both docutils and jinja):: |
|---|
| 19 | |
|---|
| 20 | easy_install Sphinx |
|---|
| 21 | |
|---|
| 22 | |
|---|
| 23 | Compile the documentation |
|---|
| 24 | ------------------------- |
|---|
| 25 | |
|---|
| 26 | To compile the documentation (to classic HTML output) run the following command |
|---|
| 27 | from this dir:: |
|---|
| 28 | |
|---|
| 29 | make html |
|---|
| 30 | |
|---|
| 31 | Documentation will be generated (in HTML format) inside the ``build/html`` dir. |
|---|
| 32 | |
|---|
| 33 | |
|---|
| 34 | View the documentation |
|---|
| 35 | ---------------------- |
|---|
| 36 | |
|---|
| 37 | To view the documentation run the following command:: |
|---|
| 38 | |
|---|
| 39 | make htmlview |
|---|
| 40 | |
|---|
| 41 | This command will fire up your default browser and open the main page of your |
|---|
| 42 | (previously generated) HTML documentation. |
|---|
| 43 | |
|---|
| 44 | |
|---|
| 45 | Start over |
|---|
| 46 | ---------- |
|---|
| 47 | |
|---|
| 48 | To cleanup all generated documentation files and start from scratch run:: |
|---|
| 49 | |
|---|
| 50 | make clean |
|---|
| 51 | |
|---|
| 52 | Keep in mind that this command won't touch any documentation source files. |
|---|
| 53 | |
|---|