Anonymous domain hook anonymous link target and store targets into objects.inv.
objects.inv not have anonymous link targets.
diff -r 8a5db9f7719d -r 02d86c1ce059 sphinx/environment.py | |
--- a/sphinx/environment.py Tue Nov 27 20:07:30 2012 +0900 | |
+++ b/sphinx/environment.py Thu Nov 29 15:46:57 2012 +0900 | |
@@ -219,6 +219,14 @@ | |
if not msgstr or msgstr == msg: # as-of-yet untranslated | |
continue | |
+ # Avoid "Literal block expected; none found." warnings. | |
+ # If msgstr ends with '::' then it cause warning message at | |
+ # parser.parse() processing. |
import urllib | |
import zlib | |
inv = urllib.urlopen('http://docs.python.org/2/objects.inv').read() | |
raw_inv = zlib.decompress('\n'.join(l for l in da.splitlines() if l and l[0]!='#')) | |
raw_inv.splitlines()[0] | |
# -> '-v std:option 1 using/cmdline.html#cmdoption$ -' | |
# it's a first line of raw inventory data |
ubuntu:~/sphinx-master$ cat /etc/lsb-release | |
DISTRIB_ID=Ubuntu | |
DISTRIB_RELEASE=11.04 | |
DISTRIB_CODENAME=natty | |
DISTRIB_DESCRIPTION="Ubuntu 11.04" | |
ubuntu:~/sphinx-master$ uname -a | |
Linux ubuntu 2.6.38-13-server #53-Ubuntu SMP Mon Nov 28 19:52:56 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux | |
ubuntu:~/sphinx-master$ python3.1 -V |
# http://sphinx-users.jp/doc11/ext/appapi.html#sphinx.application.Sphinx.add_object_type | |
# -- add config field -- | |
from sphinx import addnodes | |
from sphinx.util.docfields import Field, GroupedField | |
import re | |
def iniref_parse_format(env, sig, signode): |
diff -r cfbdd84c1d6f sphinx/ext/autodoc.py | |
--- a/sphinx/ext/autodoc.py Thu Jan 10 21:58:18 2013 -0600 | |
+++ b/sphinx/ext/autodoc.py Sat Jan 12 16:07:02 2013 +0900 | |
@@ -1190,6 +1190,7 @@ | |
def can_document_member(cls, member, membername, isattr, parent): | |
isdatadesc = isdescriptor(member) and not \ | |
isinstance(member, cls.method_types) and not \ | |
+ type(member).__name__ == "type" and not \ | |
type(member).__name__ == "method_descriptor" | |
return isdatadesc or (not isinstance(parent, ModuleDocumenter) |
############################################ | |
# inline doc directive for substitution | |
# rst: .. |sub| doc:: docname | |
# html: <a href="docname.html">sub</a> | |
from sphinx.util.compat import Directive | |
from sphinx.roles import XRefRole | |
class DocDirective(Directive): | |
required_arguments = 1 |
If you want to build PIL on Windows, you need to prepare few external libraries. Although some libraries did not provide static library for windows 32/64 bits then you need to build these libraries by your hand too. Also, PIL will load by python at last then you are recommended to use same compiler with python to build libraries.
PIL: | 1.1.7 for Python 2.4 (or Pillow-1.7.8) |
---|
If you want to build PIL on Windows, you need to prepare few external libraries. Although some libraries did not provide static library for windows 32/64 bits then you need to build these libraries by your hand too. Also, PIL will load by python at last then you are recommended to use same compiler with python to build libraries.
Pillow: | 1.7.8 for Python 2.7: src |
---|