]> khamidou — GitHub mirrors - imapclient.git/commitdiff
Rearranged documentation source and build output to more sensible locations
authorMenno Smits <menno@freshfoo.com>
Mon, 6 Jun 2011 21:12:57 +0000 (22:12 +0100)
committerMenno Smits <menno@freshfoo.com>
Mon, 6 Jun 2011 21:12:57 +0000 (22:12 +0100)
doc/src/Makefile [moved from doc-src/Makefile with 99% similarity]
doc/src/conf.py [moved from doc-src/conf.py with 99% similarity]
doc/src/index.rst [moved from doc-src/index.rst with 99% similarity]
doc/src/make.bat [moved from doc-src/make.bat with 99% similarity]
setup.cfg [new file with mode: 0644]

similarity index 99%
rename from doc-src/Makefile
rename to doc/src/Makefile
index 6b03f8248b06574d28418007982ac93bfed5a6ed..2fd0e0005a68b822aef276f6c5bdbeaf17bba24a 100644 (file)
@@ -5,7 +5,7 @@
 SPHINXOPTS    =
 SPHINXBUILD   = sphinx-build
 PAPER         =
-BUILDDIR      = ../doc
+BUILDDIR      = ..
 
 # Internal variables.
 PAPEROPT_a4     = -D latex_paper_size=a4
similarity index 99%
rename from doc-src/conf.py
rename to doc/src/conf.py
index 0d9abc4fdf97a2fa2660ab0538f04991a4f796db..58b3d3032bfe726b767c0f532bdfe7ee3adc3355 100644 (file)
@@ -6,7 +6,7 @@
 import sys
 from os import path
 
-sys.path.insert(0, path.abspath(path.join(path.dirname(__file__), '..')))
+sys.path.insert(0, path.abspath(path.join(path.dirname(__file__), '..', '..')))
 
 import imapclient
 
@@ -112,7 +112,7 @@ html_theme = 'sphinxdoc'
 # Add any paths that contain custom static files (such as style sheets) here,
 # relative to this directory. They are copied after the builtin static files,
 # so a file named "default.css" will overwrite the builtin "default.css".
-html_static_path = ['_static']
+html_static_path = []
 
 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
 # using the given strftime format.
similarity index 99%
rename from doc-src/index.rst
rename to doc/src/index.rst
index 68c1a2b1413955781453dc4073ea39bf4c5c8693..7054e2c20d17b600c3a51485bcac05ce34a23a2a 100644 (file)
@@ -41,7 +41,7 @@ The following example shows a simple interaction with an IMAP
 server. It displays the message ID, size and IMAP flags of all
 non-deleted messages in the INBOX folder.
 
-.. literalinclude:: ../imapclient/examples/example.py
+.. literalinclude:: ../../imapclient/examples/example.py
 
 The output from this example could look something like this
 
similarity index 99%
rename from doc-src/make.bat
rename to doc/src/make.bat
index dc00ca167fae938c15ba72e3f2ef4a64d4a69dd9..375d686ec99f9b8191ffb1817e0bae18907c3733 100644 (file)
@@ -5,7 +5,7 @@ REM Command file for Sphinx documentation
 if "%SPHINXBUILD%" == "" (
        set SPHINXBUILD=sphinx-build
 )
-set BUILDDIR=..\doc
+set BUILDDIR=..
 set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% .
 if NOT "%PAPER%" == "" (
        set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%
diff --git a/setup.cfg b/setup.cfg
new file mode 100644 (file)
index 0000000..a4d0dc6
--- /dev/null
+++ b/setup.cfg
@@ -0,0 +1,4 @@
+[build_sphinx]
+build-dir = doc
+source-dir = doc/src
+