From 9d6defa64388852d782fd27e57d0a0e9d7d51b9a Mon Sep 17 00:00:00 2001 From: Pablo Hoffman Date: Tue, 6 Jan 2009 14:34:26 +0000 Subject: [PATCH] doc: fixed intro-install xref --HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40656 --- scrapy/trunk/docs/intro/install.rst | 6 +++--- scrapy/trunk/docs/intro/tutorial/tutorial1.rst | 8 +++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/scrapy/trunk/docs/intro/install.rst b/scrapy/trunk/docs/intro/install.rst index 268c48096..15709c9e4 100644 --- a/scrapy/trunk/docs/intro/install.rst +++ b/scrapy/trunk/docs/intro/install.rst @@ -1,11 +1,11 @@ -.. _install: - -.. highlight:: sh +.. _intro-install: ============ Installation ============ +.. highlight:: sh + Requirements ============ diff --git a/scrapy/trunk/docs/intro/tutorial/tutorial1.rst b/scrapy/trunk/docs/intro/tutorial/tutorial1.rst index 89b9713ef..97534d538 100644 --- a/scrapy/trunk/docs/intro/tutorial/tutorial1.rst +++ b/scrapy/trunk/docs/intro/tutorial/tutorial1.rst @@ -1,16 +1,18 @@ .. _tutorial1: +.. highlight:: sh + ====================== Creating a new project ====================== In this tutorial, we'll teach you how to scrape http://www.google.com/dirhp Google's web directory. -We'll assume that Scrapy is already installed in your system, if not see :ref:`install`. +We'll assume that Scrapy is already installed in your system, if not see :ref:`intro-install`. For starting a new project, enter the directory where you'd like your project to be located, and run:: - scrapy-admin.py startproject google + $ scrapy-admin.py startproject google As long as Scrapy is well installed and the path is set, this should create a directory called "google" containing the following files: @@ -25,6 +27,6 @@ As long as Scrapy is well installed and the path is set, this should create a di :: - export PYTHONPATH=/path/to/your/project + $ export PYTHONPATH=/path/to/your/project Now you can continue with the next part of the tutorial: :ref:`tutorial2`.