mirror of https://github.com/scrapy/scrapy.git
modify docs configuration for autodoc to work
--HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40827
This commit is contained in:
parent
96be669af2
commit
be04a7f328
|
|
@ -3,6 +3,9 @@
|
|||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
|
||||
# Required for autodoc
|
||||
export SCRAPY_SETTINGS_DISABLED = 1
|
||||
|
||||
# You can set these variables from the command line.
|
||||
PYTHON = python
|
||||
SPHINXOPTS =
|
||||
|
|
|
|||
|
|
@ -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']
|
||||
|
|
|
|||
Loading…
Reference in New Issue