Commit Graph

9964 Commits

Author SHA1 Message Date
Takeshi KOMIYA
0c5a47960f
Merge branch 'master' into 3570_drop_typing_from_typehints 2018-01-13 14:44:26 +09:00
Takeshi KOMIYA
c50b21af0e
Merge branch 'master' into 3570_drop_typing_from_typehints 2018-01-13 14:43:31 +09:00
Takeshi KOMIYA
2324dee143 Update CHANGES for PR #4235 2018-01-13 14:29:54 +09:00
Takeshi KOMIYA
7e365d97ac
Merge pull request #4235 from anarcat/manpage-links
add link to manpages in HTML builder
2018-01-13 14:28:11 +09:00
Takeshi KOMIYA
854a227501
Merge pull request #4393 from tk0miya/4183_follow_pep440
Fix #4183: doctest: ``:pyversion:`` option also follows PEP-440 specification
2018-01-13 14:26:33 +09:00
Takeshi KOMIYA
f5b1aff2d1
Merge branch 'master' into 4183_follow_pep440 2018-01-13 13:12:32 +09:00
Takeshi KOMIYA
7292386a03 Fix #3570: autodoc: Do not display typing. module for type hints 2018-01-13 12:08:31 +09:00
Takeshi KOMIYA
12a8d5c0bd doc: make looks understandable 2018-01-13 11:09:27 +09:00
Takeshi KOMIYA
76c5395c5b Merge remote-tracking branch 'atodorov/inheritance_top_class' 2018-01-13 11:08:31 +09:00
Sergey B Kirpichev
b1c100ca3b autodoc: make full reference for classes, aliased with "alias of"
We do this here only if class belongs to the different module.

Closes sphinx-doc/sphinx#2437
2018-01-13 00:19:19 +03:00
jfbu
8f2d4bae86 Eliminate comma from PDF header when project has no release number 2018-01-12 18:55:00 +01:00
Takeshi KOMIYA
3b01697e11
Merge pull request #4414 from deoren/link_label_fix
Small label/comma fix
2018-01-12 10:26:13 +09:00
deoren
32aa664bdf Small label/comma fix 2018-01-11 15:19:04 -06:00
Stephen Finucane
b16fd2ce01 make.bat: Make SOURCEDIR configurable
It's unlikely that anyone will need to do this but at least give them
the opportunity.

Signed-off-by: Stephen Finucane <stephen@that.guru>
2018-01-11 20:57:03 +00:00
Stephen Finucane
f6a045d171 Makefile: Make SOURCEDIR configurable
It's unlikely that anyone will need to do this but at least give them
the opportunity.

Signed-off-by: Stephen Finucane <stephen@that.guru>
2018-01-11 20:57:03 +00:00
Stephen Finucane
6f9a262f45 make.bat: Remove unnecessary targets
As with the Makefile previously, these are not necessary now that we're
not printing anything different for various builders.

Signed-off-by: Stephen Finucane <stephen@that.guru>
2018-01-11 20:57:03 +00:00
Stephen Finucane
aa2c5c9065 Makefile: Remove unnecessary targets
Most of these are not necessary now that we're not printing different
messages for various builders.

Signed-off-by: Stephen Finucane <stephen@that.guru>
2018-01-11 20:57:03 +00:00
Stephen Finucane
221dffda3c make_mode: Remove unnecessary 'make_*' functions
These are handled by the default case.

Signed-off-by: Stephen Finucane <stephen@that.guru>
2018-01-11 20:57:03 +00:00
Stephen Finucane
a83e8bab7d builders: Add 'Builder.epilog' option
This allows builders to emit a final epilog message containing
information such as where resulting files can be found. This is only
emitted if the build was successful.

This allows us to remove this content from the 'make_mode' tool and
the legacy 'Makefile' and 'make.bat' templates. There's room for more
dramatic simplification of the former, but this will come later.

Signed-off-by: Stephen Finucane <stephen@that.guru>
2018-01-11 20:57:03 +00:00
Antoine Beaupré
90f7c7ef3f
add link to manpages in HTML builder
It is useful to have the HTML documentation builder actually link to
real rendered versions of HTML manpages in its output. That way people
can click on manpages to get the full documentation. There are a few
services offering this online, so we do not explicitly enable one by
default, but the Debian manpages repository has a lot of the manpages
pre-rendered, so it is used as an example in the documentation.

The parsing work is done by a transformer class that parses manpage
objects and extract name/section elements. Those then can be used by
writers to cross-reference to actual sites. An implementation is done
in the two HTML writers, but could also apply to ePUB/PDF writers as
well in the future.

This is not enabled by default: the `manpages_url` configuration item
needs to be enabled to point to the chosen site. The `page`, `section`
and `path` parameters are expanded through Python string formatting in
the URL on output.

Unit tests are fairly limited, but should cover most common use-cases.
2018-01-11 13:20:34 -05:00
Takeshi KOMIYA
b1cea02589
Merge pull request #4411 from tk0miya/latex_release_label
latex: Do not display Release label if :confval:`release` is not set
2018-01-12 02:48:29 +09:00
Takeshi KOMIYA
33fd1f446a latex: Do not display Release label if :confval:release is not set 2018-01-10 21:35:21 +09:00
Takeshi KOMIYA
24a6578e09 Make SphinxSmartQuotes more inteligent 2018-01-10 21:09:14 +09:00
Takeshi KOMIYA
776bd09f43 Merge sphinx_smartquotes_action() to SphinxSmartQuotes class 2018-01-10 21:09:12 +09:00
Takeshi KOMIYA
5ad20e6406 Allow SphinxTransform on read-phase 2018-01-10 21:09:08 +09:00
Takeshi KOMIYA
161f269202
Merge pull request #4406 from sphinx-doc/stable
stable to master
2018-01-10 01:01:09 +09:00
Takeshi KOMIYA
695b9f9e18
Merge pull request #4404 from tk0miya/add_tests_for_smartquotes
Add tests for smartquotes
2018-01-10 00:13:38 +09:00
Takeshi KOMIYA
d6b569af4b
Merge pull request #4405 from sphinx-doc/fix_smartquotes_option
Fix smartquotes has been ignored
2018-01-10 00:04:20 +09:00
Takeshi KOMIYA
e77267dd94 Add tests for smartquotes 2018-01-09 23:37:37 +09:00
Takeshi KOMIYA
84b4882b31 Fix smartquotes has been ignored 2018-01-09 23:28:53 +09:00
Takeshi KOMIYA
ef532f7c8b
Merge pull request #4325 from tk0miya/dont_emit_system_message_on_autodoc_warning
autodoc: Use logging module to emit warnings
2018-01-09 00:03:18 +09:00
Takeshi KOMIYA
2e93c37e62 Merge branch 'stable' 2018-01-08 21:43:12 +09:00
Takeshi KOMIYA
562683ea32 Bump version 2018-01-08 21:42:09 +09:00
Takeshi KOMIYA
7390227302 Bump to 1.6.6 final 2018-01-08 21:38:18 +09:00
Takeshi KOMIYA
38857f97af
Merge pull request #4388 from tk0miya/master
stable to master
2018-01-08 21:07:16 +09:00
Takeshi KOMIYA
b6b71d99c9 Initialize settings.smartquotes_locales 2018-01-08 20:32:37 +09:00
Takeshi KOMIYA
f366816968 Fix SphinxStandaloneReader.__init__() method has been duplicated 2018-01-08 20:31:57 +09:00
Takeshi KOMIYA
326d7e64ce Merge branch 'master' into dont_emit_system_message_on_autodoc_warning 2018-01-08 20:19:36 +09:00
Takeshi KOMIYA
3965b1f023
Merge pull request #4366 from tk0miya/refactor_autodoc
Refactor autodoc
2018-01-08 20:09:23 +09:00
Takeshi KOMIYA
8ca490f399 Fix flake8 violation 2018-01-08 19:01:54 +09:00
Takeshi KOMIYA
5e4806a764
Merge pull request #4399 from glyg/patch-1
Fixes bug when evaluating entry to bool
2018-01-08 18:07:01 +09:00
Takeshi KOMIYA
6448d9b153 Refactor autodoc: Use get_documenters() 2018-01-08 18:03:48 +09:00
Guillaume Gay
f717f2dd64 Fixes bug when evaluating entry to bool
As reported here: https://github.com/rtfd/readthedocs.org/issues/3411 sphinx sometimes fails with the error:
```python
  File "/home/docs/checkouts/readthedocs.org/user_builds/drf-yasg/envs/latest/lib/python3.5/site-packages/sphinx/ext/viewcode.py", line 74, in has_tag
    if entry is None or entry[0] != code:
TypeError: 'bool' object is not subscriptable
```
This is not critical as whipping the build or even just running it again fixes it, but the error is confusing...  
I believe switching the two if statement above should prevent this from happening.
2018-01-08 09:41:30 +01:00
Takeshi KOMIYA
fb921c7457 Merge branch 'master' into refactor_autodoc 2018-01-08 15:10:43 +09:00
Takeshi KOMIYA
b6e38b4065
Merge pull request #4310 from tk0miya/refactor_AutoDirective
Refactor AutoDirective
2018-01-08 14:38:47 +09:00
Takeshi KOMIYA
2c920d7d78 Fix #1922: Upper characters problem in French HTML Search 2018-01-08 14:37:03 +09:00
Takeshi KOMIYA
42000e0f00
Merge pull request #4382 from tk0miya/refactor_PYTHONWARNINGS
refactor warnings settings on testing
2018-01-08 14:24:37 +09:00
Takeshi KOMIYA
78c7aaca8d
Merge pull request #4391 from jdufresne/readthedoc
Prefer https & readthedocs.io instead of readthedocs.org for links
2018-01-08 14:23:46 +09:00
Takeshi KOMIYA
1c0a5ee55d Merge branch 'master' into refactor_AutoDirective 2018-01-08 14:17:08 +09:00
Takeshi KOMIYA
9a6ad38e2d Rename AutoDirective (and make alias) 2018-01-08 14:12:44 +09:00