From a2f746aa670723da1b36ae390e8c9e9c469682a8 Mon Sep 17 00:00:00 2001 From: Menno Smits Date: Mon, 6 Jun 2011 22:12:57 +0100 Subject: [PATCH] Rearranged documentation source and build output to more sensible locations --- {doc-src => doc/src}/Makefile | 2 +- {doc-src => doc/src}/conf.py | 4 ++-- {doc-src => doc/src}/index.rst | 2 +- {doc-src => doc/src}/make.bat | 2 +- setup.cfg | 4 ++++ 5 files changed, 9 insertions(+), 5 deletions(-) rename {doc-src => doc/src}/Makefile (99%) rename {doc-src => doc/src}/conf.py (99%) rename {doc-src => doc/src}/index.rst (99%) rename {doc-src => doc/src}/make.bat (99%) create mode 100644 setup.cfg diff --git a/doc-src/Makefile b/doc/src/Makefile similarity index 99% rename from doc-src/Makefile rename to doc/src/Makefile index 6b03f82..2fd0e00 100644 --- a/doc-src/Makefile +++ b/doc/src/Makefile @@ -5,7 +5,7 @@ SPHINXOPTS = SPHINXBUILD = sphinx-build PAPER = -BUILDDIR = ../doc +BUILDDIR = .. # Internal variables. PAPEROPT_a4 = -D latex_paper_size=a4 diff --git a/doc-src/conf.py b/doc/src/conf.py similarity index 99% rename from doc-src/conf.py rename to doc/src/conf.py index 0d9abc4..58b3d30 100644 --- a/doc-src/conf.py +++ b/doc/src/conf.py @@ -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. diff --git a/doc-src/index.rst b/doc/src/index.rst similarity index 99% rename from doc-src/index.rst rename to doc/src/index.rst index 68c1a2b..7054e2c 100644 --- a/doc-src/index.rst +++ b/doc/src/index.rst @@ -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 diff --git a/doc-src/make.bat b/doc/src/make.bat similarity index 99% rename from doc-src/make.bat rename to doc/src/make.bat index dc00ca1..375d686 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=..\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 index 0000000..a4d0dc6 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,4 @@ +[build_sphinx] +build-dir = doc +source-dir = doc/src + -- 2.43.0