Takeshi KOMIYA
1f5aa28db0
Fix #1921 : Support figure substitutions by locale
2016-02-22 21:32:05 +09:00
Takeshi KOMIYA
46138ca605
Select an image by similarity if multiple images are globbed by `.. image:: filename.*
`
...
Until this point, it is used the last image returned from glob.glob().
The order of glob.glob() is determined by filesystem.
After this, Sphinx uses filename similarity to determine the image.
2016-02-22 17:06:35 +09:00
Takeshi KOMIYA
208eb6e052
Refactor: guess_mimetype()
2016-02-22 16:30:41 +09:00
Takeshi KOMIYA
3ce737335e
Fix #2329 : Refresh environment forcely if source directory has changed
2016-02-20 17:11:33 +09:00
shimizukawa
e6a5a3a92e
classifier of glossary terms can be used for index entries grouping key. The classifier also be used for translation. See also :ref:glossary-directive
.
2016-02-14 19:28:58 +09:00
Takeshi KOMIYA
279ac7c23f
Refactor numfig: Move core implementation to std domain
2016-02-14 14:49:20 +09:00
Takeshi KOMIYA
9273140ee2
Override figure directive to apply :name: option to the figure itself
2016-02-14 14:49:20 +09:00
shimizukawa
ffec78f0b0
fix flake8
2016-02-09 23:37:25 +09:00
shimizukawa
980653f277
Merge with stable
...
Conflicts:
sphinx/environment.py
sphinx/ext/autodoc.py
sphinx/writers/latex.py
2016-02-09 23:19:49 +09:00
shimizukawa
aefab514e2
Fix #2287 : sphinx.transforms.Locale
always uses rst parser. Sphinx i18n feature should support parsers that specified source_parsers.
2016-02-09 00:16:46 +09:00
Kacper Kowalik (Xarthisius)
1714747318
Use ensuredir() for creating directories within BuildEnvironment.read_doc
2016-02-02 15:37:33 -06:00
Takeshi KOMIYA
9ed3d51826
Fix #1944 : rst_prolog breaks file-wide metadata
2016-01-24 17:32:42 +09:00
Takeshi KOMIYA
cf5e138a53
Merge pull request #2207 from tk0miya/baseclass_for_parsers
...
Add sphinx.parsers.Parser class; a base class for new parsers
2016-01-17 19:17:58 +09:00
Takeshi KOMIYA
f1765c2576
Add sphinx.parsers.Parser class; a base class for new parsers
...
The class inherits ``docutils.parsers.Parser`` and implements ``set_application()`` in addition.
It enables subclasses to read configurations, to access environments and to logging.
2016-01-17 19:18:02 +09:00
Georg Brandl
4f72bdb722
Merge branch 'stable'
2016-01-14 22:54:08 +01:00
Georg Brandl
46d7e8558e
Obligatory copyright update.
2016-01-14 22:54:04 +01:00
Takeshi KOMIYA
3f998a0096
Fix line numbers was not shown on warnings of indecies
2016-01-13 11:37:07 +09:00
shimizukawa
f824539119
merge with stable
2016-01-13 00:13:35 +09:00
Takeshi KOMIYA
e4b9eb51f6
Merge branch 'stable'
2016-01-11 00:27:26 +09:00
shimizukawa
92ca8d92b3
Fix #1601 , #2220 : 'any' role breaks extended domains behavior. Affected extensions doesn't support resolve_any_xref and resolve_xref returns problematic node instead of None. sphinxcontrib-httpdomain is one of them.
2016-01-10 23:27:11 +09:00
shimizukawa
e5860fd75c
Merge with '87998df9cbef2380345d436121e6bca43345d2bd' on stable
...
Conflicts:
tests/test_build_latex.py
2016-01-10 10:21:27 +09:00
Takeshi KOMIYA
7bb685bbe9
Fix #2197 : Slightly cryptic error message for missing index.rst file
2016-01-03 20:26:38 +09:00
Takeshi KOMIYA
98ac902650
Fix broken in py3 (for 8a763feb6b
)
2015-12-27 00:52:58 +09:00
Takeshi KOMIYA
2f27459e80
Fix flake8 violation
2015-12-27 00:46:14 +09:00
Takeshi KOMIYA
8a763feb6b
Fix #2189 : previous sibling link has broken if previous doc is under nested toctree
2015-12-26 23:57:09 +09:00
Takeshi KOMIYA
222a51e0cf
Fix #2189 : next sibling link has broken if the file was appeared twice or more
2015-12-26 21:43:54 +09:00
Takeshi KOMIYA
f85d1a0b99
Fix #2189 : previous sibling link has broken if the file was appeared twice or more
2015-12-21 11:40:56 +09:00
shimizukawa
ef890a45d3
Merge branch 'stable'
2015-09-13 09:47:38 +09:00
shimizukawa
f886c54263
Fix #1994 : More supporting non-standard parser (like recommonmark parser) for Translation and WebSupport feature. Now node.rawsource is fall backed to node.astext() during docutils transforming.
2015-09-13 00:20:21 +09:00
Georg Brandl
6efafcdca4
std domain: make sure that ref and doc references have proper classes set
2015-07-25 12:34:26 +02:00
shimizukawa
6c1ba34614
Fixes #1834 : compatibility for docutils-0.13: handle_io_errors keyword argument for docutils.io.FileInput cause TypeError.
...
The argument is already deprecated and no effects from docutils-0.10.
2015-04-05 18:22:15 +09:00
shimizukawa
dbfc72a451
refactoring: move i18n related function from osutil into i18n
2015-03-16 23:11:23 +09:00
shimizukawa
4660d9b3be
Fix #1763 : Wrong :numref:
links for :name:
target on figure, table and code-block directives.
2015-03-09 23:52:47 +09:00
Georg Brandl
18b6843696
pep8 fixes
2015-03-08 16:28:23 +01:00
Georg Brandl
705f6a997b
Merge branch 'apple-help' of git://github.com/al45tair/sphinx
2015-03-08 15:35:04 +01:00
Georg Brandl
ad612fb03d
Change the source parsers feature a bit:
...
* parsers -> source_parsers
* add docs
* require fully qualified name or class
* add test for it
2015-03-08 13:12:50 +01:00
Georg Brandl
0cb9b1db02
Merge pull request #1760 from ericholscher/parsers
...
Parsers
2015-03-08 12:55:43 +01:00
shimizukawa
26ae055b2d
refs #1700 : now toctree caption become paragraph block instead of Text under ul element. and add permalink for toctree caption.
2015-03-08 16:45:56 +09:00
shimizukawa
31400de378
rename name
option for toctree directive to caption
.
2015-03-08 15:09:07 +09:00
Takayuki SHIMIZUKAWA
c5e0910958
Merge pull request #1700 from ericholscher/toctree-name
...
Add initial ability to name a TOC Tree
2015-03-08 15:04:35 +09:00
Eric Holscher
232d877e71
Allow passing a class in
2015-02-28 13:28:58 -08:00
Matthew Woehlke
cacf38140a
Add support for per-suffix parsers
...
Override 'read' method in SphinxStandaloneReader to consider the suffix
of the file being processed and potentially choose to use a different
parser. Add 'parsers' argument to constructor taking a dictionary of
suffixes to names of parsers to use for the suffix, as provided by a
configuration variable of the same name.
This adds the ability to do something like:
parsers = {'.md': 'markdown.parsers'}
...to use markdown.parsers.Parser to parse .md files. Note that the
custom parser is ONLY used to parse files matching the suffix; otherwise
the default (reST) parser is used.
2015-02-28 00:03:55 -05:00
shimizukawa
1c6dcd8842
Merge branch 'source_suffix'
...
Conflicts:
CHANGES
2015-02-27 21:09:15 +09:00
shimizukawa
28dc3ab053
versioning_conditions for uuid/i18n uses is_translatable instead of nodes.TextElement directly.
2015-02-22 19:03:34 +09:00
shimizukawa
c53fa4b369
refs #1235 : i18n: 'literal-block' node can be translated if 'literal-block' is set to gettext_additional_targets
.
2015-02-22 13:51:02 +09:00
shimizukawa
5b0bb8c1e1
Fix bug refs #1722 . Circler toctree cause infinite loop.
2015-02-15 18:01:43 +09:00
shimizukawa
a9bcff7a26
Closes #1722 . Restore `toctree()
` template function behavior that was changed at 1.3b1.
2015-02-15 16:49:03 +09:00
Georg Brandl
bf3bdcc7f5
source_suffix can now be a list.
2015-02-08 20:13:47 +01:00
Chris Lamb
20546b17c0
Ensure genindex output is deterministic.
...
See also <https://github.com/sphinx-doc/sphinx/pull/1694 >
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2015-01-31 20:21:21 +00:00
Georg Brandl
accb32ff07
The `env-updated
` event can now return a value, which is interpreted as an iterable of additional docnames that need to be rewritten.
...
(reference: #1683 )
2015-01-25 16:13:04 +01:00