Commit Graph

9642 Commits

Author SHA1 Message Date
Tim Hoffmann
bf29ffb284 #4246: Limit width of text body for all themes 2018-01-06 16:52:12 +01:00
jfbu
c892fe98f7 Fix space gobbling issue from PR #4370
This is subtle LaTeX thing. Prior to merge of #4370 there was a
`\texttt` which was hiding the potential problem. The fix is to leave a
brace pair in place.
2018-01-03 10:50:18 +01:00
Jean-François B
5d31fada70
Merge pull request #4370 from jfbu/easier_sphinxcode
Easy-up user customization of ``\sphinxcode`` LaTeX macro
2018-01-03 09:32:50 +01:00
jfbu
680d6766bb Make LaTeX macro definitions more readable
This make clearer to average LaTeX user the format which is expected for
these macros, in case of redefinitions.
2018-01-03 08:46:33 +01:00
jfbu
309f38a91f Split out fancy LaTeX macros from `\sphinxcode into \sphinxupquote`
Since #2627 (1.4.4), `\code`, and then again at #3116 (1.5)
`\sphinxcode` which is the new name has become more complicated than the
original `\texttt{#1}`. This was to obtain straight quotes in PDF output,
and to allow long inline literals to break across lines.

This means though that users who want to customize `\sphinxcode`, for
example to not only do `\texttt` but to use some colour, have to copy
about 10 lines of complicated LaTeX macros which should be not modified
in any way. This commit moves all the code out of `\sphinxcode` into a
separate macro `\sphinxupquote`.

The LaTeX writer will output `\sphinxcode{\sphinxupquote{foo}}` in place
of former `\sphinxcode{foo}`. Moving the `\texttt` from innermost to
outermost level is with no consequence.
2018-01-03 08:46:19 +01:00
Takeshi KOMIYA
d4728d0cb8
Merge pull request #4365 from tk0miya/happy_new_year2
A happy new year! (master)
2018-01-01 10:40:47 +09:00
Takeshi KOMIYA
5562e76585 A happy new year! 2018-01-01 01:10:10 +09:00
Takeshi KOMIYA
f1f6ca8cc9 Merge branch 'happy_new_year' into master 2018-01-01 01:09:17 +09:00
Takeshi KOMIYA
2426cedb8b A happy new year! 2018-01-01 01:06:58 +09:00
Takeshi KOMIYA
e8402bf0ee Merge branch 'stable' 2017-12-31 21:13:34 +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
Takeshi KOMIYA
40186077d7
Merge pull request #4358 from tk0miya/ensure_parallelism
Ensure parallelism
2017-12-30 10:04:22 +09:00
Takeshi KOMIYA
d7aa98aed7 Fix flake8 violations 2017-12-30 01:21:22 +09:00
Takeshi KOMIYA
a260a9ea15
Merge pull request #4338 from stephenfin/test-cleanup
Test cleanup
2017-12-30 01:20:05 +09:00
Takeshi KOMIYA
1d3362425b Add app.is_parallel_allowed() 2017-12-30 00:54:55 +09:00
Takeshi KOMIYA
54699dd263 Fix parallel_write_safe check was wrong 2017-12-30 00:38:17 +09:00
Takeshi KOMIYA
9ddb51ea2f
Merge pull request #4352 from jakobandersen/io_parallel
Fix missing metainfo for sphinx.io
2017-12-30 00:34:55 +09:00
Stephen Finucane
60e25090a3 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>
2017-12-29 13:02:33 +00:00
Stephen Finucane
9a3ebaaff5 Resolve warning filter issues
There's an issue with 'pkgutils' and namespace packages. This has been
reported against setuptools [1], but until this is resolved, we simply
need to live with it. Ensure said warnings are filtered from tox too and
remove some unnecessary ones.

[1] https://github.com/pypa/setuptools/issues/1111

Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-12-29 13:02:32 +00:00
Stephen Finucane
7c0723fd46 tests: Remove 'tests/run.py'
This is no longer necessary. One test needs to be modified to deal with
how 'python -m pytest' modifies the PATH.

Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-12-29 13:02:31 +00:00
Stephen Finucane
529c96a3c9 tests: Use 'pytest_sessionstart'
This is the recommended way to do pre-session configuration in pytest if
not using session fixtures [1].

With this, we're able to remove the custom 'test/run.py' script in its
entirety and run 'pytest' like everyone else does. We'll do this
separately to keep things simple.

[1] https://stackoverflow.com/a/12600154/613428

Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-12-29 13:02:26 +00:00
Stephen Finucane
c33ecd1f8f tests: Use 'pytest_report_header'
This is the recommended way to print extra headers [1].

[1] https://docs.pytest.org/en/latest/example/simple.html#adding-info-to-test-report-header

Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-12-29 13:02:07 +00:00
Stephen Finucane
9348c4bea1 tests: Stop explicitly checking for modules
This will have already been handled by setuptools. If the user isn't
using this then they've dug their own grave.

Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-12-29 13:02:04 +00:00
Stephen Finucane
4fd217ce88 circleci: Install packages ourselves
Start installing Python dependencies and Sphinx itself as part of the
CircleCI job rather than expecting it to be done in the Docker
container. This ensures we will use the version of the packages for a
given commit.

This is the other half of sphinx-doc/docker-ci#1.

Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-12-29 13:01:59 +00:00
Takeshi KOMIYA
0998bd5330
Merge pull request #4355 from stephenfin/remove-epub3-references
templates: Remove 'epub3' targets
2017-12-29 10:30:55 +09:00
Takeshi KOMIYA
8c542e1222
Merge pull request #4356 from stephenfin/bug/2250
doc: Add missing sphinx-apidocs opt, envvar
2017-12-29 10:02:43 +09:00
Stephen Finucane
9f7f5f2a44 doc: Add missing sphinx-apidocs opt, envvar
Add docs for '--module-first' option and 'SPHINX_APIDOC_OPTIONS'
environment variable. Per the closest thing we have to official man page
guidelines [1]:

  ENVIRONMENT

  lists all environment variables that affect the program or function
  and how they affect it.

[1] https://linux.die.net/man/7/man-pages

Signed-off-by: Stephen Finucane <stephen@that.guru>
Fixes #2250
2017-12-28 23:00:53 +00:00
Stephen Finucane
35ad6910a9 epub: Remove dead templates
These are no longer used since 'f2c93b31'.

Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-12-28 21:37:37 +00:00
Stephen Finucane
f048d668e5 doc: Remove invalid note for epub3 builder
This doesn't appear to be true any more, based on the code.

Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-12-28 21:28:55 +00:00
Stephen Finucane
f4f677c8f7 templates: Remove 'epub3' targets
This appears to have been missed in commit 69d1dfaa. One could add an
alias for this to restore behavior, but no one has reported the issue
since Sphinx meaning this seems unnecessary.

Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-12-28 21:18:23 +00:00
Jakob Lykke Andersen
e5ba527dd5 Fix missing metainfo for sphinx.io 2017-12-28 17:16:53 +01:00
Jakob Lykke Andersen
217c5f3856 Fixes for previous commit 2017-12-28 17:04:21 +01:00
Jakob Lykke Andersen
f3c05adebc C++, fix handling of (templated) operators 2017-12-28 16:50:32 +01:00
Takeshi KOMIYA
324bc7e3c4
Merge pull request #4349 from tk0miya/build_own_docs_as_a_test
travis: Build own docs as a test
2017-12-28 23:23:03 +09:00
Takeshi KOMIYA
0cc6cdd7cc travis: Build own docs as a test 2017-12-28 10:48:29 +09:00
Takeshi KOMIYA
42947beabd
Merge pull request #4346 from tk0miya/4344_update_docs
docs: make explicitly :meth: reference (refs: #4344)
2017-12-28 10:42:58 +09:00
Takeshi KOMIYA
626e8980cd
Merge pull request #4337 from stephenfin/the-great-toxification
The great toxification (part 6)
2017-12-27 15:29:16 +09:00
Takeshi KOMIYA
b094c401de docs: make explicitly :meth: reference (refs: #4344) 2017-12-27 14:59:59 +09:00
Jakob Lykke Andersen
25d18e6517 Merge branch 'master' of github.com:sphinx-doc/sphinx 2017-12-25 11:27:05 +01:00
Takeshi KOMIYA
e1a543f6ad
Merge pull request #4341 from stephenfin/bug/4339
tox: Add 'PERL5LIB' to 'passenv' list
2017-12-25 13:31:31 +09:00
Stephen Finucane
f068627176 gitignore: Ignore 'htmlcov' directory
This is generated if you run 'coverage html'. Hide it from Git.

Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-12-24 21:24:41 +00:00
Stephen Finucane
77ca894723 tox: Report coverage to user
Run 'coverage report' after a successful coverage run. There's enough
coverage-related stuff here at this point to warrant its own section.

Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-12-24 21:24:41 +00:00
Stephen Finucane
a3f9935d95 travis: Enable codecov coverage
This necessitates adding some basic coverage-py configuration [1] and
making sure the pytest-cov plugin uses said configuration [2]. Badges
are included.

Note that we do not run the 'coverage' tox target, which is reserved for
users.

[1] https://github.com/codecov/example-python
[2] https://bitbucket.org/ned/coveragepy/issues/512/

Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-12-24 21:24:41 +00:00
Jakob Lykke Andersen
9766c2f339 C++, support the template disambiguator for dependent names. 2017-12-24 16:31:10 +01:00
Stephen Finucane
411055905c tox: Add 'PERL5LIB' to 'passenv' list
This is required by 'makeinfo'.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Fixes #4339
2017-12-24 14:47:31 +00:00
Takeshi KOMIYA
a9efb2517a Fix flake8 violations 2017-12-23 21:21:21 +09:00
jfbu
2e04c2a058 Update CHANGES for PR #4332 2017-12-21 19:33:47 +01:00
Jean-François B
f5dfdfcfe2
Merge pull request #4332 from jfbu/latex_math_numfig
Let LaTeX obey :confval:`math_numfig` for equation numbering
2017-12-21 19:32:10 +01:00