From: Menno Smits Date: Fri, 1 Oct 2010 12:17:54 +0000 (+0100) Subject: Documentation is now generated to the doc directory X-Git-Tag: 0.8~43 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=66ede6d1ce11a0dca1108390a7a07f7bb966deb7;p=imapclient.git Documentation is now generated to the doc directory --- diff --git a/.hgignore b/.hgignore index c1a5280..4848dca 100644 --- a/.hgignore +++ b/.hgignore @@ -1,3 +1,4 @@ \.pyc$ \.swp$ IMAPClient.egg-info +doc diff --git a/doc-src/Makefile b/doc-src/Makefile index d518904..6b03f82 100644 --- a/doc-src/Makefile +++ b/doc-src/Makefile @@ -5,7 +5,7 @@ SPHINXOPTS = SPHINXBUILD = sphinx-build PAPER = -BUILDDIR = _build +BUILDDIR = ../doc # Internal variables. PAPEROPT_a4 = -D latex_paper_size=a4 diff --git a/doc-src/conf.py b/doc-src/conf.py index d18b3e8..f409021 100644 --- a/doc-src/conf.py +++ b/doc-src/conf.py @@ -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 diff --git a/doc-src/make.bat b/doc-src/make.bat index 99e8574..dc00ca1 100644 --- a/doc-src/make.bat +++ b/doc-src/make.bat @@ -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%