From f31a4403a1715ea5b48a12e1aa58df0e74b7e85f Mon Sep 17 00:00:00 2001 From: INADA Naoki Date: Mon, 21 Oct 2013 01:47:54 +0900 Subject: Document update. --- Makefile | 3 +++ docs/api.rst | 2 ++ docs/conf.py | 2 +- msgpack/__init__.py | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 71be6af..2e53d08 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,9 @@ doc-serve: all doc: cd docs && make zip +upload-doc: + python setup.py upload_docs --upload-dir docs/_build/html + cython: cython --cplus msgpack/*.pyx diff --git a/docs/api.rst b/docs/api.rst index 50a84c4..841c134 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -25,6 +25,8 @@ API reference .. autoclass:: Unpacker :members: +.. autoclass:: ExtType + exceptions ----------- diff --git a/docs/conf.py b/docs/conf.py index fba09b7..0f19fcc 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -49,7 +49,7 @@ copyright = u'2013, INADA Naoki' # # The short X.Y version. # The full version, including alpha/beta/rc tags. -version = release = '0.3' +version = release = '0.4' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/msgpack/__init__.py b/msgpack/__init__.py index a958025..6c5ae53 100644 --- a/msgpack/__init__.py +++ b/msgpack/__init__.py @@ -6,6 +6,7 @@ from collections import namedtuple class ExtType(namedtuple('ExtType', 'code data')): + """ExtType represents ext type in msgpack.""" def __new__(cls, code, data): if not isinstance(code, int): raise TypeError("code must be int") -- cgit v1.2.1