From be04a7f328a2f391a77965848a1006eb2c51127a Mon Sep 17 00:00:00 2001 From: Ismael Carnales Date: Thu, 5 Feb 2009 15:39:52 +0000 Subject: [PATCH] modify docs configuration for autodoc to work --HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40827 --- scrapy/trunk/docs/Makefile | 3 +++ scrapy/trunk/docs/conf.py | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/scrapy/trunk/docs/Makefile b/scrapy/trunk/docs/Makefile index c6e4dd64d..0982644c7 100644 --- a/scrapy/trunk/docs/Makefile +++ b/scrapy/trunk/docs/Makefile @@ -3,6 +3,9 @@ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # +# Required for autodoc +export SCRAPY_SETTINGS_DISABLED = 1 + # You can set these variables from the command line. PYTHON = python SPHINXOPTS = diff --git a/scrapy/trunk/docs/conf.py b/scrapy/trunk/docs/conf.py index cf5a98ae6..a7e14d28e 100644 --- a/scrapy/trunk/docs/conf.py +++ b/scrapy/trunk/docs/conf.py @@ -12,18 +12,21 @@ # serve to show the default. import sys, os +from os import path # If your extensions are in another directory, add it here. If the directory # is relative to the documentation root, use os.path.abspath to make it # absolute, like shown here. -sys.path.append(os.path.join(os.path.dirname(__file__), "_ext")) +sys.path.append(path.join(path.dirname(__file__), "_ext")) +sys.path.append(path.join(path.dirname(path.dirname(__file__)), "scrapy")) + # General configuration # --------------------- # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. -extensions = ['scrapydocs'] +extensions = ['scrapydocs', 'sphinx.ext.autodoc'] # Add any paths that contain templates here, relative to this directory. templates_path = ['../templates/docs']