Commit Graph

8302 Commits

Author SHA1 Message Date
jfbu
0f8abd16a2 Add `Dependencies` group to CHANGES 2017-03-11 16:47:48 +01:00
jfbu
538f55ed85 Update CHANGES for PR #3082 2017-03-11 15:27:00 +01:00
Takeshi KOMIYA
96c2b1d470 Merge pull request #3541 from tk0miya/add_event_manager
Add EventManager
2017-03-11 20:16:35 +09:00
Takeshi KOMIYA
fba23bd2bf Add EventManager 2017-03-11 19:50:49 +09:00
Jakob Lykke Andersen
9249db2472 Make docfield xref changes backwards compatible 2017-03-11 18:56:13 +09:00
Takeshi KOMIYA
dbffb053c9 Merge pull request #3534 from tk0miya/add_post_transform
Add post transform
2017-03-11 09:28:57 +09:00
Takeshi KOMIYA
df68d3dec6 Merge pull request #3536 from Naereen/patch-1
Prevent a TypeError bug for get_full_modname()
2017-03-11 09:27:36 +09:00
Ray Lehtiniemi
c5060079e4 Fix #3348: Show decorators in literalinclude and viewcode directives
Signed-off-by: Ray Lehtiniemi <rayl@mail.com>
2017-03-10 16:48:47 -07:00
Lilian Besson
2a4a6d0cda Union[unicode, None] → unicode 2017-03-10 22:56:36 +01:00
Jean-François B
87c1f6ef5b Merge pull request #3082 from jfbu/uselatexmk
Use latexmk for pdf (and dvi) targets
2017-03-10 19:27:10 +01:00
jfbu
19558c9800 Update latex builder docs (latexmk requirement) 2017-03-10 19:11:06 +01:00
Lilian Besson
c7c4f8f0f4 Prevent a TypeError bug for get_full_modname()
It prevents this bug:
```python
viewcode can't import None, failed with error "__import__() argument 1 must be str, not None"
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/sphinx/ext/viewcode.py", line 28, in _get_full_modname
    return get_full_modname(modname, attribute)
  File "/usr/local/lib/python3.5/dist-packages/sphinx/util/__init__.py", line 263, in get_full_modname
    __import__(modname)
TypeError: __import__() argument 1 must be str, not None
```
2017-03-10 10:04:13 +01:00
jfbu
448dc08924 Update CHANGES for PR #3527 2017-03-10 09:29:36 +01:00
Jean-François B
94e9d3e28b Merge pull request #3527 from jfbu/fixdoublequotes
Protect TeX double quotes ligatures in inline literals (refs #3507)
2017-03-10 09:24:23 +01:00
Takeshi KOMIYA
3594efaa27 Fix mypy violations 2017-03-10 17:00:21 +09:00
Takeshi KOMIYA
eb5577bb9c Update docs 2017-03-10 16:43:27 +09:00
jfbu
990f51d680 Update latex docs 2017-03-10 08:42:37 +01:00
Takeshi KOMIYA
97c0a9051a Fix flake8 violations 2017-03-10 16:16:16 +09:00
Takeshi KOMIYA
79542ca70d Do not emit DeprecationWarning for env.resolve_references()
The function is used from many builders which combines multiple
doctrees to single one (e.g. LaTeX, singlehtml and so on).
To deprecate it might cause big troubles for 3rd party builders.
So I withdraw the deprecation.
2017-03-10 11:34:02 +09:00
Takeshi KOMIYA
5a7eb99e46 Move env._warn_missing_reference() to ReferenceResolver 2017-03-10 11:21:58 +09:00
Takeshi KOMIYA
ff94ba9f89 Move env._resolve_any_reference() to ReferenceResolver 2017-03-10 11:08:13 +09:00
Takeshi KOMIYA
65bde6a01e Reduce warning 2017-03-10 10:53:40 +09:00
Takeshi KOMIYA
f6f6eac20c Add OnlyNodeTransform as a tranform 2017-03-10 10:49:08 +09:00
Takeshi KOMIYA
eb40a36aa4 Add ReferenceResolver as a post-transform 2017-03-10 10:49:08 +09:00
Takeshi KOMIYA
7117206b2a Add SphinxTransform as a base class of Transforms 2017-03-10 10:49:08 +09:00
Takeshi KOMIYA
99ded4c8b1 Add Sphinx.add_post_transform() 2017-03-10 10:49:08 +09:00
Takeshi KOMIYA
57bb34e5e6 Make error message translatable 2017-03-10 10:41:35 +09:00
jfbu
a16b266ba8 Let clean target also remove xdv files 2017-03-09 18:40:12 +01:00
Takeshi KOMIYA
ef56a3c116 Merge pull request #3529 from tk0miya/make_env.app_available_always
Make env.app available always
2017-03-10 00:45:18 +09:00
Takeshi KOMIYA
6251d0d83b Merge branch 'master' into make_env.app_available_always 2017-03-10 00:45:10 +09:00
Takeshi KOMIYA
e76ec05b5b Merge pull request #3531 from tk0miya/initialize_i18n_earlier
Initialize i18n module earlier
2017-03-10 00:43:50 +09:00
Takeshi KOMIYA
022bc1ed62 Update CHANGES 2017-03-10 00:31:43 +09:00
Takeshi KOMIYA
15114e596d Initialize i18n module earlier 2017-03-09 12:23:23 +09:00
jfbu
409605d9b7 Use latexmk for pdf (and dvi) targets (on unixen) 2017-03-08 18:35:11 +01:00
Takeshi KOMIYA
70a8c737c1 Do not clear `app.env` 2017-03-08 23:34:04 +09:00
Jakob Lykke Andersen
9ca5d990f6 Add callback on domains for xrefs from fields.
Fixes sphinx-doc/sphinx#2607.
Fixes sphinx-doc/sphinx#2665.
2017-03-08 20:35:44 +09:00
Jean-François B
0063446c1a Merge pull request #3525 from jfbu/syncfootnotehyper
Sync with 1.0 footnotehyper
2017-03-08 10:32:31 +01:00
Takeshi KOMIYA
142344ceed Merge pull request #3523 from anntzer/makefile-use--msphinx
Default SPHINXBUILD to 'python -msphinx' instead of 'sphinx-build'.
2017-03-08 15:56:34 +09:00
Takeshi KOMIYA
c7bec75bcd BuildEnvironment always own application object (after read phase) 2017-03-08 12:23:25 +09:00
Takeshi KOMIYA
a523f9893a Add load(), loads(), dump() and dumps() to BuildEnvironment 2017-03-08 12:23:25 +09:00
jfbu
71e1642749 Protect TeX double quotes ligatures in inline literals (refs #3507) 2017-03-07 22:20:11 +01:00
jfbu
c42db788d0 Sync with 1.0 footnotehyper
Since #3022 (Sphinx 1.5) more footnotes are hyperlinked but it became
impossible for Sphinx user to pass option ``hyperfootnotes=false`` to
package ``hyperref``. Release 1.0 of LaTeX package ``footnotehyper``,
which serves as bugfix replacement to older package ``footnote``, is
compatible with ``hyperfootnotes=false``, hence it is again possible to
Sphinx user to completely disable hyperlinking of footnotes, if ever
needed.
2017-03-07 19:06:23 +01:00
Takeshi KOMIYA
5ee4c396bc Merge branch 'stable' 2017-03-08 00:22:39 +09:00
Jakob Lykke Andersen
38b38d8aff Make flake8 stop complaining. 2017-03-07 20:47:53 +09:00
Jakob Lykke Andersen
bc527c533e C++, better error messages for 'func' and 'any' refs.
Followup to sphinx-dox/sphinx#2952.
On error try to get reparse without parens to get the correct message.
2017-03-07 20:28:04 +09:00
Anthony Johnson
b0875d63fc
Fix Python domain nesting
Moved #3465 here, to address this in `stable` instead.

This fixes a problem with the Python domain object nesting. Because only one
object name was stored in `ref_context`, and reset to `None` in `after_content`,
nesting broke if you put anything after a nested class:

```rst
.. py:class:: Parent

    .. py:method:: foo()

        This wouldn't resolve: :py:meth:`bar`

    .. py:class:: Child

        In the `after_content` method, the object is reset to `None`, so
        anything after this in the same nesting is considered to be top level
        instead.

    .. py:method:: bar()

        This is top level, as the domain thinks the surrounding object is `None`
```

This depends on #3519 and can be rebased after that is merged into stable

Fixes #3065
Refs #3067
2017-03-06 19:04:19 -08:00
Takeshi KOMIYA
e060f65bc5 Merge pull request #3519 from agjohnson/add-domain-tests
Add tests for xrefs on Python and JavaScript domains
2017-03-07 11:20:32 +09:00
Antony Lee
0832aa73ab Default SPHINXBUILD to 'python -msphinx' instead of 'sphinx-build'.
Using `python -msphinx` as the default for SPHINXBUILD in the
Makefile/make.bat ensures that whatever virtual environment is currently
active (if any) gets picked up.  In the current situation, imaging that
we are working on project $foo which is also installed system-wide,
but we want to build docs for a venv-installed version; that sphinx
is installed system-wide but not in the current environment, and that
e.g. conf.py imports $foo (e.g. to retrieve a version string).  Then
sphinx-build will resolve to the globally installed version, and the
global (wrong) version of $foo will be imported as well.

With this fix, `make html` will do everything in the correct virtualenv
(if any).  This switch is similar in spirit to e.g. the deprecation of
the `pyvenv` script in Py3.6, in favor of `python -mvenv`.
2017-03-06 18:16:27 -08:00
Anthony Johnson
3502336b13
Add tests for xrefs on Python and JavaScript domains
These are just the passing test cases for the domains currently. I am going to
patch up issues with nesting on both domains to start, so these are the test
cases I'll be testing against. I'll see about addressing the other core
domains, or at very least the cpp domain, with similar tests if this looks
okay.

So far, these tests only test against methods/functions for the basic nesting
structure. More complete tests will test additional domain roles.

Refs #662
2017-03-05 16:00:25 -08:00
jfbu
6fda42f214 Reword a CHANGES entry for 1.6 (refs #3466) 2017-03-05 10:35:02 +01:00