From 6b0cf4d76cbd1c155188241b1c065ca29d5e1b5f Mon Sep 17 00:00:00 2001 From: Menno Smits Date: Sun, 5 Jun 2011 23:35:03 +0100 Subject: [PATCH] small doc tweaks --- doc-src/conf.py | 18 ++++-------------- doc-src/index.rst | 10 +++++----- imapclient/__init__.py | 2 +- imapclient/imapclient.py | 6 +++--- 4 files changed, 13 insertions(+), 23 deletions(-) diff --git a/doc-src/conf.py b/doc-src/conf.py index f409021..1c202c0 100644 --- a/doc-src/conf.py +++ b/doc-src/conf.py @@ -1,22 +1,12 @@ # -*- coding: utf-8 -*- # -# IMAPClient documentation build configuration file, created by -# sphinx-quickstart on Fri Oct 1 12:26:06 2010. -# -# This file is execfile()d with the current directory set to its containing dir. -# -# Note that not all possible configuration values are present in this -# autogenerated file. -# # All configuration values have a default; values that are commented out # serve to show the default. -import sys, os +import sys +from os import path -# 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. -sys.path.insert(0, os.path.abspath('..')) +sys.path.insert(0, path.abspath(path.join(path.dirname(__file__), '..'))) import imapclient @@ -43,7 +33,7 @@ master_doc = 'index' # General information about the project. project = u'IMAPClient' -copyright = u'2010, Menno Smits' +copyright = u'2011, Menno Smits' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the diff --git a/doc-src/index.rst b/doc-src/index.rst index c0dc706..5cacacb 100644 --- a/doc-src/index.rst +++ b/doc-src/index.rst @@ -5,11 +5,11 @@ IMAPClient :maxdepth: 1 :Author: `Menno Smits `_ -:Version: |release| -:Date: 2011/06/05 +:Version: |version| / |release| +:Date: |today| :Homepage: http://imapclient.freshfoo.com :Download: http://pypi.python.org/pypi/IMAPClient/ -:Documentation: http://freshfoo.com/projects/imapclient/docs/ +:Documentation: http://imapclient.readthedocs.org/ :License: `New BSD License `_ :Support: `Mailing List `_ @@ -25,7 +25,7 @@ types. Exceptions are raised when problems occur (no error checking of return values is required). IMAPClient is straight forward it use, but it can be useful to have at -least a general understanding of the IMAP protocol. `RFC3501 +least a general understanding of the IMAP protocol. `RFC 3501 `_ explains IMAP in detail. Other RFCs also apply to various extensions to the base protocol. These are referred to in the documentation below where @@ -117,7 +117,7 @@ Folder Name Encoding ~~~~~~~~~~~~~~~~~~~~ Any method that takes a folder name will accept a standard string or a unicode string. Unicode strings will be transparently encoded using -modified UTF-7 as specified by `RFC-3501 section 5.1.3 +modified UTF-7 as specified by `RFC 3501 section 5.1.3 `_. This allows for arbitrary unicode characters (eg. non-English characters) to be used in folder names. diff --git a/imapclient/__init__.py b/imapclient/__init__.py index ace1bc9..86bb0b7 100644 --- a/imapclient/__init__.py +++ b/imapclient/__init__.py @@ -2,7 +2,7 @@ # Released subject to the New BSD License # Please see http://en.wikipedia.org/wiki/BSD_licenses -__version__ = '0.8' +__version__ = '0.8-dev' __author__ = 'Menno Smits ' from imapclient import * diff --git a/imapclient/imapclient.py b/imapclient/imapclient.py index e9933ae..69e40b0 100644 --- a/imapclient/imapclient.py +++ b/imapclient/imapclient.py @@ -167,7 +167,7 @@ class IMAPClient(object): positionally or using attributes named *personal*, *other* and *shared*. - See `RFC-2342 `_ for more details. + See `RFC 2342 `_ for more details. """ typ, data = self._imap.namespace() self._checkok('namespace', typ, data) @@ -487,7 +487,7 @@ class IMAPClient(object): *charset* specifies the character set of the strings in the criteria. It defaults to US-ASCII. - See `RFC-3501 section 6.4.4 `_ + See `RFC 3501 section 6.4.4 `_ for more details. """ if not criteria: @@ -524,7 +524,7 @@ class IMAPClient(object): SUBJECT The *criteria* argument is as per search(). - See `RFC-5256 `_ for full details. + See `RFC 5256 `_ for full details. Note that SORT is an extension to the IMAP4 standard so it may not be supported by all IMAP servers. -- 2.43.0