]> khamidou — GitHub mirrors - imapclient.git/commitdiff
Documentation is now generated to the doc directory
authorMenno Smits <menno@freshfoo.com>
Fri, 1 Oct 2010 12:17:54 +0000 (13:17 +0100)
committerMenno Smits <menno@freshfoo.com>
Fri, 1 Oct 2010 12:17:54 +0000 (13:17 +0100)
.hgignore
doc-src/Makefile
doc-src/conf.py
doc-src/make.bat

index c1a5280ce1d712b3f63800c6010d00168cc4263b..4848dca87f66e98733cd66f87a0c44c92c8d9674 100644 (file)
--- a/.hgignore
+++ b/.hgignore
@@ -1,3 +1,4 @@
 \.pyc$
 \.swp$
 IMAPClient.egg-info
+doc
index d51890410b22c2384c1db2391183aec13bc7d568..6b03f8248b06574d28418007982ac93bfed5a6ed 100644 (file)
@@ -5,7 +5,7 @@
 SPHINXOPTS    =
 SPHINXBUILD   = sphinx-build
 PAPER         =
-BUILDDIR      = _build
+BUILDDIR      = ../doc
 
 # Internal variables.
 PAPEROPT_a4     = -D latex_paper_size=a4
index d18b3e85b23d89cba3f7711d0b5b5f58b6b19786..f409021cbe00532ff2c068ddfa1f4e9fed9c7a7d 100644 (file)
@@ -18,6 +18,8 @@ import sys, os
 # documentation root, use os.path.abspath to make it absolute, like shown here.
 sys.path.insert(0, os.path.abspath('..'))
 
+import imapclient
+
 # -- General configuration -----------------------------------------------------
 
 # If your documentation needs a minimal Sphinx version, state it here.
@@ -48,9 +50,9 @@ copyright = u'2010, Menno Smits'
 # built documents.
 #
 # The short X.Y version.
-version = '0.6.2'
+version = imapclient.__version__
 # The full version, including alpha/beta/rc tags.
-release = '0.6.2'
+release = version
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
@@ -64,7 +66,7 @@ release = '0.6.2'
 
 # List of patterns, relative to source directory, that match files and
 # directories to ignore when looking for source files.
-exclude_patterns = ['_build']
+exclude_patterns = []
 
 # The reST default role (used for this markup: `text`) to use for all documents.
 #default_role = None
index 99e85749d17617e2a496b0fe905dcf3e135d46c7..dc00ca167fae938c15ba72e3f2ef4a64d4a69dd9 100644 (file)
@@ -5,7 +5,7 @@ REM Command file for Sphinx documentation
 if "%SPHINXBUILD%" == "" (
        set SPHINXBUILD=sphinx-build
 )
-set BUILDDIR=_build
+set BUILDDIR=..\doc
 set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% .
 if NOT "%PAPER%" == "" (
        set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%