Takayuki Shimizukawa
ba4dcaa8dd
use b prefix for bytes instead of sphinx.pycompat.b function.
2014-05-01 22:54:09 +09:00
Takayuki Shimizukawa
5c6d6c8e24
Add Python-3.4 support
2014-05-01 20:54:41 +09:00
Takayuki Shimizukawa
75e22ba522
delegate '__nonzero__' to '__bool__' for py2/py3 compatibility in one source. #1350
2014-05-01 20:14:19 +09:00
Takayuki Shimizukawa
956d6286bf
remove 2to3. #1350 .
2014-05-01 17:27:27 +09:00
Takayuki Shimizukawa
b00d97a86f
use py2/py3 compat except syntax. #1350 .
2014-05-01 13:22:22 +09:00
Takayuki Shimizukawa
5fd8dc885f
fix py2/py3 compat for 'iter.next()/next(iter)' and 'dict.values()/list(dict.values())'. refs #1350 .
2014-05-01 13:08:36 +09:00
Takayuki Shimizukawa
071fb45a54
use 'next(iter)' instead of 'iter.next()' to support py2/py3 compatibiity. refs #1350 .
2014-05-01 12:49:47 +09:00
Takayuki Shimizukawa
27ac856300
tiny fix for py2/py3 compatibility in one source.
2014-05-01 00:09:44 +09:00
Takayuki Shimizukawa
2d1549b35a
wrap py3 iterators with list() for each places that expect a list object. refs #1350 .
2014-04-30 23:25:44 +09:00
Takayuki Shimizukawa
6ae3b68859
replace ur'' prefix with r'' to support py2/py3 in one source. refs #1350
2014-04-30 23:04:21 +09:00
Takayuki Shimizukawa
1e58062692
remove 'six' name except importing line.
2014-04-30 21:30:46 +09:00
Takayuki Shimizukawa
f31d9113ff
use six privided functions/classes to support py2/py3 in one source. refs #1350
2014-04-30 20:39:26 +09:00
Takayuki Shimizukawa
9dbb6bf092
use UnicodeMixin for __str__, __unicode__ to support py2/py3 in one source. refs #1350 .
2014-04-30 00:31:09 +09:00
Takayuki Shimizukawa
00eff0b7f6
use six privided text_type() to replace with unicode() to support py2/py3 in one source. refs #1350 .
2014-04-29 23:44:12 +09:00
Takayuki Shimizukawa
91b9d75ac8
provide __next__() and use native next() to support py2/py3 in one source. refs #1350 .
2014-04-29 21:54:25 +09:00
Takayuki Shimizukawa
49944cfa52
wrap iterator with list() to avoid 'dictionary changed size during iteration' on py3. refs #1350 .
2014-04-29 22:43:58 +09:00
Takayuki Shimizukawa
ce4d342e20
use six privided iteritems(),itervalues() to support py2/py3 in one source. refs #1350 .
2014-04-29 21:20:56 +09:00
Takayuki Shimizukawa
c3c879f2c6
use six privided functions/classes to support py2/py3 in one source. refs #1350 .
2014-04-29 19:59:58 +09:00
Takayuki Shimizukawa
68290a266c
introduce the six module and reduce sphinx.util.pycompat implementation. refs #1350 .
2014-04-29 11:46:47 +09:00
Takayuki Shimizukawa
1e4b390b22
remove tests.util.write_file duplicated implementation.
2014-04-28 19:58:26 +09:00
Takayuki Shimizukawa
638458038d
tiny documentation fix
2014-04-28 19:41:14 +09:00
Takayuki Shimizukawa
43a9881c4b
Fix i18n: missing python domain's cross-references with currentmodule directive or currentclass directive. refs #1363
...
* node attributes 'py:module', 'py:class' is provided from environment (e.x. currentmodule directive is provided on previous line, not on node)
* Because translation nodes are parsed in independently, 'provided attributes by environment' are not exist.
* For a pending_xref nodes, all attributes of a translated xref node should be same as original xref node in current test cases.
* For the above reasons, I overwrite all attributes from origonal node to new translated xref node.
2014-03-23 23:01:15 +09:00
Takayuki Shimizukawa
b751d5db52
Fix: Generated i18n sphinx.js files are missing message catalog entries from '.js_t' and '.html'. The issue was introduced from Sphinx-1.1. Closes #1419
2014-03-21 10:58:41 +09:00
Takayuki Shimizukawa
c68104b1be
Fix a change of pull request #96 that break sphinx.util.docfields.Field.make_field interface/behavior for item argument usage. Closes #1367
2014-03-02 16:02:46 +09:00
Takayuki Shimizukawa
194e50fd2d
Fix 'make gettext' fails when the '.. todolist::' directive is present. Closes #1364
...
Nodes that are replicated like todo don't have a uid, however i18n also unnecessary.
If extensions need to choose i18n for the extended nodes or not, we need another approach.
2014-03-02 14:40:29 +09:00
Takayuki Shimizukawa
f9758086b0
grammar fix
2014-01-19 00:23:17 +09:00
Takayuki Shimizukawa
ec06a5d7e0
add missing 'feature added' for non-ASCII filename handling.
2014-01-18 22:57:02 +09:00
Takayuki Shimizukawa
db9d91e8cc
remove note it become useless anymore.
2014-01-18 21:47:20 +09:00
Takayuki Shimizukawa
c5bd935001
merge heads
2014-01-18 20:41:43 +09:00
Takayuki Shimizukawa
dd41adf0a0
merge heads
2014-01-18 16:34:47 +09:00
Takayuki Shimizukawa
b6005b22ef
Fix: The application now check extra Python versions (3.0, 3.1) to stop invoking. And fix a trivial comment.
2014-01-18 16:30:54 +09:00
Takayuki Shimizukawa
cc7509966c
merge heads
2014-01-15 05:25:56 +00:00
Takayuki Shimizukawa
295fdf46f8
merge with stable
2014-01-15 04:59:51 +00:00
Takayuki Shimizukawa
5721370438
Fix pypy test failure for b69b594 commit. refs #1337
2014-01-15 04:58:24 +00:00
Takayuki Shimizukawa
bcff26c6da
update a Intersphinx tutorial section. refs #1325
2013-12-18 08:33:37 +09:00
Takayuki Shimizukawa
1367f6f9c6
Added a "Intersphinx" tutorial section. (:file:doc/tutorial.rst). Closes #1325
2013-12-17 23:54:30 +09:00
Takayuki Shimizukawa
2050285ebf
Drop docutils-0.7, 0.8 and 0.9 support
2013-12-15 16:25:01 +09:00
Takayuki Shimizukawa
f7cb510ebd
Drop python-3.1 and remove support codes
2013-12-15 16:04:23 +09:00
Takayuki Shimizukawa
a8fc938d1b
Drop python-2.5 and remove 2.4,2.5 support codes
2013-12-15 14:16:53 +09:00
Takayuki Shimizukawa
1d5c7d1f20
Fix: autodoc class __init__ override not removed from docstring. Closes #1138
2013-12-09 10:55:51 +00:00
Takayuki Shimizukawa
4fd9d846d6
Fix: 97d5dd1 drop config.templates_path for loader path
2013-12-09 09:43:26 +00:00
Takayuki Shimizukawa
ff15231142
Merged in shimizukawa/sphinx-fix-buildtrigger-exclude-themepath (pull request #181 )
...
Fix: `html_theme_path=['.']` is a trigger of rebuild all documents always.
2013-12-09 17:55:39 +09:00
Takayuki Shimizukawa
a35e61c8be
Merged in shimizukawa/sphinx-fix-pypytest (pull request #177 )
...
Fix PyPy test failed
2013-12-09 17:54:48 +09:00
Takayuki Shimizukawa
6432f65347
fix test error; can't remove empty directory problem on Windows.
2013-12-08 16:58:34 +09:00
Takayuki Shimizukawa
3db7c9a8d5
Fix ResourceWarnings with Python 3.2 or later. Closes #1269
2013-11-17 08:37:28 +00:00
Takayuki Shimizukawa
d96de9d128
Fix test_linkcode.test_html fails with C locale and Python 3. Closes #1311
2013-11-17 03:39:27 +00:00
Takayuki Shimizukawa
02be06ac7f
update CHANGES for 72d25c9
2013-11-16 08:54:25 +00:00
Takayuki Shimizukawa
8e507f54a5
Merged in mitya57/sphinx (pull request #176 )
...
Make sure setup_command test can always import Sphinx
2013-11-16 17:44:22 +09:00
Takayuki Shimizukawa
63d34cca47
Add tests and code refine for pull request #190 .
2013-11-12 15:17:09 +00:00
Takayuki Shimizukawa
615fe64847
Merged in mschlenker/cs-sphinx/fix-nested-figure-caption-i18n (pull request #190 )
...
I18n does not always extract figure captions for figures nested inside other blocks
2013-11-13 00:19:21 +09:00
Takayuki Shimizukawa
b17fea855b
Fix: Can't search alphabetical words on the HTML quick search generated with language='ja'. Closes #1340
2014-01-07 08:50:37 +09:00
Takayuki Shimizukawa
e61f316c74
Fix autodoc with `autoclass_content="both" uses useless object.__init__ docstring when class does not have __init__`. Closes #1337
...
This caused by a change for #1138 .
2014-01-02 12:42:12 +09:00
Takayuki Shimizukawa
f58b7c43b9
Fix autosummary template overloading with exclamation prefix cause infinite recursive function call. Closes #1335
2013-12-27 08:32:20 +00:00
Takayuki Shimizukawa
3d67be3dce
Fix autosummary template overloading cause infinite recursive function call. Closes #1335
2013-12-27 05:23:47 +00:00
Takayuki Shimizukawa
48fdbf375f
merge heads and resolve conflicts
2013-10-13 17:55:37 +09:00
Takayuki Shimizukawa
b6480b164d
Fix: html_theme_path=['.'] is a trigger of rebuild all documents always.
2013-10-12 17:01:55 +09:00
Takayuki Shimizukawa
1d99547916
Now sphinx.ext.autodoc on PyPy ignoring the method of built-in classes.
...
For example::
class CustomDict(dict):
"""Docstring."""
From this code, autoclass directive on PyPy generate a document output as
``class foo.CustomDict(obj, *args, **keywords)`` instead of
``class foo.CustomDict`` before this change.
2013-10-07 09:47:28 +00:00
Takayuki Shimizukawa
313559116d
Backed out changeset cfe9e2d11003 refs #1265
2013-10-04 08:12:20 +00:00
Takayuki Shimizukawa
603a75d8d3
Now gettext translates label target name. Fix i18n: crash when using a indirect target and translating a target section name. Closes #1265
2013-10-04 05:07:09 +09:00
Takayuki Shimizukawa
be65b99879
grammar fix: 'multibyte filename' is ambiguous. They are replaced with 'non-ASCII filename'. refs #703
2013-10-03 06:43:22 +00:00
Takayuki Shimizukawa
1c02e0ee29
add QGIS page for examples page
2013-10-03 06:08:24 +00:00
Takayuki Shimizukawa
e81a2d884e
Added a ez_setup to replace distribute_setup. ez_setup become defacto. Closes #1264
2013-10-03 05:55:58 +00:00
Takayuki Shimizukawa
b37f385810
Add test refs #1265 (comment-6264794) to validate translated label link shifting.
2013-10-03 02:53:53 +00:00
Takayuki Shimizukawa
58be2f19b3
When Sphinx couldn't decode multibyte filename, now Sphinx notices UnicodeError and continuing if possible instead of raise exception. Closes #703
2013-09-28 12:51:20 +00:00
Takayuki Shimizukawa
445bb5daec
fix: A wrong conditoin check break search feature on first page that is usually index.rst. This issue was introduced at 46d0815, cfbdd84.
2013-09-26 00:10:23 +09:00
Takayuki Shimizukawa
5def0cc353
Merged in alimony/sphinx/add_missing_epub_options (pull request #170 )
...
Add two missing epub options to the default conf.py
2013-09-23 23:01:48 +09:00
Takayuki Shimizukawa
9d47a7f0cc
update CHANGES for removing 'sphinx' prefix from latex document class name
2013-09-23 22:58:37 +09:00
Takayuki Shimizukawa
dab3f56267
Merged in erikb85/sphinx (pull request #154 )
...
Removing "sphinx" prefix from Latex class parsing
2013-09-23 22:53:10 +09:00
Takayuki Shimizukawa
7682f477dc
Fix i18n: crash when translating section name that is pointed from named target. Closes #1265
2013-09-23 19:53:22 +09:00
Takayuki Shimizukawa
c7114f704b
Merged in techtonik/sphinx-1/techtonik/add-link-to-irc-channel-1379750124356 (pull request #169 )
...
add link to IRC channel
2013-09-23 10:05:54 +09:00
Takayuki Shimizukawa
53810ae607
fix: test_build_latex and test_build_texinfo raise SkipTest if command missing. Closes #1184 .
2013-09-23 09:57:36 +09:00
Takayuki Shimizukawa
99008f5b78
Fix again: NFC/NFD normalizing problem. Closes #1142
2013-09-18 08:51:20 +00:00
Takayuki Shimizukawa
94fd97c6f3
Ignoring the string consists only of white-space characters. Closes #1234
2013-09-17 12:10:42 +00:00
Takayuki Shimizukawa
1ca7b1c713
Fix NFC/NFD normalizing problem of rst filename on Mac OS X. Closes #1142
2013-09-17 20:32:18 +09:00
Takayuki Shimizukawa
93e7623cd8
Add feature: theme package collection by using setuptools plugin mechanism.
2013-09-16 23:57:58 +09:00
Takayuki Shimizukawa
b3af8c6676
add Learning Sphinx book for EXAMPLES too.
2013-09-16 15:36:54 +09:00
Takayuki Shimizukawa
b3a1dc3d83
append example page
2013-09-16 15:34:18 +09:00
Takayuki Shimizukawa
dfd9f1cdc8
Sphinx generates broken ePub on Windows. Closes #1232
2013-08-10 18:25:28 +09:00
Takayuki Shimizukawa
04d22a53d5
support parallel testing with detox
2013-07-27 16:15:36 +09:00
Takayuki Shimizukawa
91ef671ea9
Add test for docutils.conf and prevent 'html4css1.css' missing warning.
...
Now --embed-stylesheet option default become false.
2013-07-27 14:13:15 +09:00
Takayuki Shimizukawa
fa7fe88d74
Add some URLs to example list.
2013-07-27 00:40:08 +09:00
Takayuki Shimizukawa
f26de54a12
Support docutils.conf 'writers' and 'html4css1 writer' section by html writer.
...
latex, manpage and texinfo writers support 'writers' section.
2013-07-26 23:23:46 +09:00
Takayuki Shimizukawa
72a6bfde28
add docutils-0.11 for testing
2013-07-25 00:26:43 +00:00
Takayuki Shimizukawa
d23387d82e
for testing: change docutils version spec 0.10.0 -> 0.10
2013-07-25 00:24:19 +00:00
Takayuki Shimizukawa
d9f5439ffe
fix: broken document format (rst)
2013-07-14 14:43:21 +09:00
Takayuki Shimizukawa
a8282e2291
Merged in ericholscher/sphinx (pull request #150 )
...
A pull request with some developer documentation updates
2013-07-12 08:49:13 +09:00
Takayuki Shimizukawa
33c9e1fb28
Fix i18n: gettext did not translate admonition directive's title. Closes #1206
2013-07-03 08:19:10 +00:00
Takayuki Shimizukawa
cb11246754
Merged in rolmei/sphinx-epub (pull request #148 )
...
new predefined tags; epub fixes.
2013-07-01 13:37:34 +09:00
Takayuki Shimizukawa
ab5c7a36be
Fix ZeroDivisionError in Parallel Builds. Thanks to tychoish. Closes #1172
2013-07-01 04:27:45 +00:00
Takayuki Shimizukawa
8818b9a0c4
Merged in tychoish/sphinx (pull request #146 )
...
resolve issue #1172 : don't divide by zero
2013-07-01 13:24:55 +09:00
Takayuki Shimizukawa
7904b0678a
Fix i18n: footnote reference number missing for auto numbered named footnote and auto symbol footnote. Closes #1176
2013-06-21 03:28:32 +00:00
Takayuki Shimizukawa
2cdb6b03c9
test improvement
2013-06-21 01:09:13 +00:00
Takayuki Shimizukawa
4579bb6e85
fix: translation mechanism break label target if label and section name are same. refs #1193
2013-06-19 06:07:47 +00:00
Takayuki Shimizukawa
f9b733fc47
test_intl:external_link test case correction to fit to reST syntax.
2013-06-18 11:14:27 +00:00
Takayuki Shimizukawa
a997f98333
fix: keep reference if link refname was translated. refs #1193
...
case1::
Keep link to ExternalSite_.
It will translated with ``\`SomeOtherString\`_``.
.. _ExternalSite: http://example.com
case2::
Keep link to `title string`_ before appearing.
title string
=============
case3::
Keep link to glossary 'term string'.
.. glossary::
term string
description...
2013-06-19 10:42:26 +00:00
Takayuki Shimizukawa
430d0e9895
fix: Duplicated section name will cause crash. refs #1193
2013-06-17 04:34:45 +00:00
Takayuki Shimizukawa
9bd30c748e
update comment
2013-06-17 04:24:12 +00:00
Takayuki Shimizukawa
afc6b6d1f8
Fix: Multiple references in the same line return the same link with i18n. Closes #1193
2013-06-17 00:12:02 +09:00
Takayuki Shimizukawa
bd4da7df55
add tests for "multiple cross references in the same line return the same link". refs #1090 , #1193
2013-06-16 14:25:29 +09:00
Takayuki Shimizukawa
deb01d8e30
Fix multiple cross references (term, ref, doc) in the same line return the same link with i18n. refs #1090 , #1193
2013-06-16 23:57:08 +09:00