summaryrefslogtreecommitdiff
path: root/doc/conf.py
diff options
context:
space:
mode:
authorJonathan Ballet <jon@multani.info>2011-07-16 14:14:58 +0900
committerJonathan Ballet <jon@multani.info>2011-07-16 14:14:58 +0900
commit648875f669d28a889671fd93fc6b1fec8613c056 (patch)
treea2353c5e2a896b0a71bcce2779e74ea152ada45e /doc/conf.py
parent78b92a2f68ec960563e90c86bb41a2d128d0d1c8 (diff)
downloadpyopenssl-648875f669d28a889671fd93fc6b1fec8613c056.tar.gz
Fix markup to be compatible with Sphinx and add rough API doc
Diffstat (limited to 'doc/conf.py')
-rw-r--r--doc/conf.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/conf.py b/doc/conf.py
index 395a16a..c7bcb13 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -13,6 +13,9 @@
import sys, os
+DOC_DIR = os.path.abspath(os.path.dirname(__file__))
+sys.path.insert(0, os.path.abspath(os.path.join(DOC_DIR, "..")))
+
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
@@ -25,7 +28,7 @@ import sys, os
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
-extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx']
+extensions = ['sphinx.ext.autodoc']
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']