Commit Graph

9095 Commits

Author SHA1 Message Date
Doug Hellmann
83f30712b8 fix ext.apidoc to include "empty" packages that contain modules
Commit 2d99648e99 changed the apidoc
extension to ignore packages if the __init__.py file was empty. That
breaks the toctree structure if those packages do contain submodules
and subpackages. This patch adds a check to ensure that empty
__init__.py modules are only skipped if there are no other python
modules in the same directory.

Addresses bug #654

Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-01-23 14:21:03 -05:00
Takeshi KOMIYA
2398bc9f77 Update CHANGES for PR #4396 2018-01-15 10:12:53 +09:00
Takeshi KOMIYA
7582d0904a
Merge pull request #4396 from tk0miya/1922_french_search
Fix #1922: Upper characters problem in French HTML Search
2018-01-15 10:11:16 +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
e77267dd94 Add tests for smartquotes 2018-01-09 23:37:37 +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
5e4806a764
Merge pull request #4399 from glyg/patch-1
Fixes bug when evaluating entry to bool
2018-01-08 18:07:01 +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
2c920d7d78 Fix #1922: Upper characters problem in French HTML Search 2018-01-08 14:37:03 +09:00
Jean-François B
79501767d8
Merge pull request #4360 from jfbu/4359_tame_docutils_conf
Do not apply smart quotes if Sphinx says no, even if Docutils says yes
2018-01-05 15:56:21 +01:00
jfbu
0d824dfd41 Update CHANGES for PR #4360 2018-01-05 15:16:23 +01:00
jfbu
bd139453c9 Move SphinxSmartQuotes transform to SphinxStandaloneReader
closes #4142
closes #4357
closes #4359
refs: #3967

Adds ``smartquotes``, ``smartquotes_action``, ``smartquotes_excludes``
configuration variables.

- if ``smartquotes`` is set to False, then Smart Quotes transform is not
  applied even if a Docutils configuration file activates it,

- the current default of ``smartquotes_excludes`` deactivates Smart
  Quotes for Japanese language, and also for the ``man`` and ``text``
  builders.

  However, currently ``make text html`` deactivates Smart Quotes for
  ``html`` too, and ``make html text`` activates them for ``text`` too,
  because the picked environment is shared and already transformed.

- now Smart Quotes get applied also when source documents are in
  Markdown or other formats.
2018-01-05 15:06:10 +01:00
Takeshi KOMIYA
4277eb1331
Merge pull request #4373 from tk0miya/4369_show_traceback_on_exception_from_conf.py
Show traceback if conf.py raises an exception (refs: #4369)
2018-01-05 14:18:43 +09:00
Takeshi KOMIYA
6fa344c951 Show traceback if conf.py raises an exception (refs: #4369) 2018-01-03 20:15:45 +09:00
Takeshi KOMIYA
369d66e41e
Merge pull request #4368 from tk0miya/4091_private_members_isnt_documented
Fix #4091: Private members not documented without :undoc-members:
2018-01-03 09:43:29 +09:00
Takeshi KOMIYA
cb860f0d30 Fix #4091: Private members not documented without :undoc-members: 2018-01-02 01:57:41 +09:00
Takeshi KOMIYA
4bc4b35352
Merge pull request #4367 from tk0miya/3769_regulate_optionref
3769 regulate optionref
2018-01-02 01:29:46 +09:00
Takeshi KOMIYA
850e9a9c5c Fix links to external option docs with intersphinx (refs: #3769) 2018-01-02 01:01:29 +09:00
Takeshi KOMIYA
f21fe6f24f Revert "tox: Enable 'skipsdist'"
This reverts commit 69f39e44d9.
2018-01-01 23:03:15 +09:00
Stephen Finucane
69f39e44d9 tox: Enable 'skipsdist'
Given that we install Sphinx as part of the dependencies, there's no
reason to do it twice. Skip that step.

Signed-off-by: Stephen Finucane <stephen@that.guru>
2018-01-01 18:47:12 +09:00
Takeshi KOMIYA
023dad6c66
Merge pull request #4335 from zufallsgenerator/fix-4334-apidoc-toc-inconsistencies
Closes #4334: sphinx-apidoc: References to non-existing files in TOC
2018-01-01 12:03:32 +09:00
Takeshi KOMIYA
0b247ff1f7
Merge pull request #4364 from tk0miya/happy_new_year
A happy new year! (stable)
2018-01-01 10:40:03 +09:00
Takeshi KOMIYA
2426cedb8b A happy new year! 2018-01-01 01:06:58 +09:00
Takeshi KOMIYA
fce7f38b71
Merge pull request #4217 from Smattr/4a164170-33e9-4df3-aad2-a13af37b6b43
Fix #4214: Two todolist directives break sphinx-1.6.5
2017-12-31 21:05:38 +09:00
Takeshi KOMIYA
1cae50f748
Merge branch 'stable' into 4a164170-33e9-4df3-aad2-a13af37b6b43 2017-12-31 20:43:16 +09:00
jfbu
0059c05a85 Rename smartquotable to notsmartquotable for intelligibility 2017-12-30 11:03:43 +01:00
Christer Bystrom
2d99648e99 Closes #4334: sphinx-apidoc: Don't generate references to non-existing files in TOC 2017-12-21 19:06:17 +01:00
jfbu
8c72f98c78 Update CHANGES for PR #4316 2017-12-20 22:45:22 +01:00
Jean-François B
fa20b7af5c
Merge pull request #4316 from jfbu/4315_toplevel_sectioning
4315 toplevel sectioning
2017-12-20 21:46:03 +01:00
jfbu
1ee2c2fb95 Re-use some existing test with extras 2017-12-20 21:30:05 +01:00
Takeshi KOMIYA
771e122980
Merge pull request #4329 from pvcraven/patch-1
Add "Arcade" library documentation to examples
2017-12-20 14:32:58 +09:00
Paul V Craven
3fe218e759
Update arcade.academy link
Update http://arcade.academy link to use http instead of https.
2017-12-19 21:14:36 -06:00
Paul V Craven
221aa470fa
Add "Arcade" library documentation to examples 2017-12-19 17:28:28 -06:00
jfbu
72bffcf0f4 Add precision to docs of latex_toplevel_sectioning 2017-12-18 11:20:07 +01:00
jfbu
245876c6e7 Add test for latex_toplevel_sectioning 2017-12-18 08:27:59 +01:00
jfbu
af46ed16b0 Fixes #4315: latex_toplevel_sectioning induced \chapter in article class 2017-12-18 08:09:47 +01:00
jfbu
46b1896228 Again rewording docs about numfig_secnum_depth 2017-12-17 17:56:03 +01:00
jfbu
ba1368072f Typo place holder --> placeholder 2017-12-16 11:51:00 +01:00
jfbu
a9602e4597 Improve numref docs 2017-12-16 11:46:33 +01:00
Takeshi KOMIYA
02d3f071d3
Merge pull request #4282 from mgorny/makedirs-race2
Use ensuredir() instead of os.makedirs() to fix race conditions
2017-12-16 19:33:51 +09:00
jfbu
f780f92d1b Mention `:numbered:` needed in numfig_secnum_depth docs 2017-12-16 11:32:40 +01:00
jfbu
070fbb97e5 Add markup and clarify numfig_secnum_depth docs 2017-12-16 11:05:33 +01:00
Michał Górny
14af6b429e Use ensuredir() instead of os.makedirs() to fix race conditions
Use the ensuredir() function consistently across Sphinx code to avoid
race conditions e.g. when multiple Sphinx instances attempt to create
the same output directory. The ensuredir() function that was already
present in sphinx.util.osutil correctly catches EEXIST exception that
occurs if the specified directory already exists (i.e. it was created
between the call to os.path.isdir() and os.makedirs() that follows it).

While at it, remove redundant os.path.isdir() calls when they only
guarded the os.makedirs() call, and replace mkdir_p() which had pretty
much the same purpose, except for being prone to race conditions.

I did not modify testing-related code as race conditions mostly affect
real applications and not the test environment.

Fix #4281: Race conditions when creating output directory
2017-12-16 09:50:09 +01:00
Takeshi KOMIYA
7cabd6cbb0 Fix mypy violations 2017-12-16 14:52:20 +09:00
jfbu
b131c33af5 Fix markup in doc/ext/math.rst 2017-12-15 22:54:52 +01:00
Takeshi KOMIYA
698a0c7741
Merge pull request #4302 from tk0miya/diet_test-root
Diet testcases
2017-12-15 22:28:30 +09:00
Takeshi KOMIYA
c250c63daa test: Skip some builders on test_build_all 2017-12-15 21:15:04 +09:00
Takeshi KOMIYA
2a2ed8915a diet test-root: Move .mo files to new testroot (for test_html_rebuild_mo) 2017-12-15 21:15:02 +09:00
Takeshi KOMIYA
e3bbffc36e test: Add test_html_copy_source 2017-12-15 02:35:32 +09:00