Commit Graph

1752 Commits

Author SHA1 Message Date
jfbu
db8ff5fb75 Fix markup typo and missing bit in docs 2017-06-05 19:43:09 +02:00
jfbu
8b35c36cfe Shorten a definition list in latex docs 2017-06-05 16:55:37 +02:00
jfbu
5e2d4ca77b Merge branch 'stable' 2017-06-05 15:40:18 +02:00
jfbu
bd8c7e1410 Make the latex docs more concise 2017-06-05 15:34:23 +02:00
Brecht Machiels
4749157bd3 Docs: mention rinohtype as an alternative PDF builder 2017-06-05 14:51:35 +02:00
jfbu
d4f37925c0 Merge branch 'stable' 2017-06-03 17:36:19 +02:00
Sanjeev Gupta
a561fdb8c1 Expand and update list of extensions
Updated from https://bitbucket.org/birkenfeld/sphinx-contrib/
2017-06-02 04:11:48 +08:00
Sanjeev Gupta
a259df7dea Proof read and polish english. Some typos. 2017-06-02 00:22:33 +08:00
Sanjeev Gupta
97f2f16582 Proofread, polish some english, and convert to HTTPS
All links checked, if HTTPS leads to the same page, then
convert.  A couple of typos as well.
2017-06-01 22:50:16 +08:00
Sanjeev Gupta
cc69691032 Minor typo 2017-06-01 12:37:33 +08:00
Sanjeev Gupta
1a62b629c5 Test URLs and convert to HTTPS where possible 2017-05-31 22:07:01 +08:00
jfbu
075a8cfb8f Closes #3829: add `html_sidebars` default to sphinx-quickstart 2017-05-30 13:10:11 +02:00
Takeshi KOMIYA
b145011c1b Merge branch 'stable' 2017-05-29 00:33:13 +09:00
jfbu
8679e145e4 Update docs and CHANGES about Latexmk not being used on Windows 2017-05-28 16:24:21 +02:00
jfbu
d042b6d1cb Merge branch 'stable' 2017-05-28 10:02:39 +02:00
jfbu
350f58a618 Update CHANGES and docs regarding Latexmk dependency 2017-05-28 09:43:24 +02:00
Takeshi KOMIYA
ca6a1edd2f Merge branch 'stable' 2017-05-26 00:15:00 +09:00
jfbu
b18a3f82b4 Fix flake8 2017-05-20 10:16:24 +02:00
jfbu
6422f7b8c9 Fix #3742: missing `Index` bookmark and TOC entry in PDF builds at RTD
The trick is to create an Index TOC/bookmarks entry in anticipation of
makeindex execution, as RTD (currently) does only one pdflatex run after
makeindex.

    https://github.com/rtfd/readthedocs.org/issues/2857

The workaround works for Sphinx own docs, which uses ``'manual'``
docclass and puts the general index at very end of document.
2017-05-20 09:54:09 +02:00
Takeshi KOMIYA
4435d4fb26 Merge branch '1.6-release' 2017-05-15 00:20:09 +09:00
jfbu
ae1455077b Fix #3746: PDF builds fail with latexmk version 4.48 or earlier
This is tested to work with latexmk version: 4.39 (10 Nov 2013).

For xelatex engine and with latexmk 4.52b or later (Jan 2017), setting
LATEXMKOPTS Makefile variable on command line to "-xelatex" results in
faster builds, because PDF is produced only on last run.
2017-05-13 13:05:58 +02:00
Takeshi KOMIYA
78a20617b5 Merge branch '1.6-release' 2017-05-13 15:42:28 +09:00
jfbu
773659c41a Mention latex table templates in docs 2017-05-11 22:50:58 +02:00
jfbu
e277cb7285 Merge branch '1.6-release'
Fixed conflicts:
	tests/test_build_html5.py

Also updated tests/test_build_latex.py
2017-05-11 11:45:14 +02:00
jfbu
ad7d2bd548 Fix typo 2017-05-11 10:25:49 +02:00
jfbu
e20f28ce70 Improve latex docs of `latex_use_latex_multicolumn` config setting 2017-05-11 10:24:10 +02:00
jfbu
97625a2c5c Don't use forced mode for Latexmk 2017-05-08 20:53:03 +02:00
jfbu
f7876f6b74 Update latex docs 2017-05-07 11:12:18 +02:00
jfbu
a700f4631f Merge branch '1.6-release' 2017-05-07 11:11:02 +02:00
jfbu
38e6dfca34 Update latex docs 2017-05-07 11:10:41 +02:00
jfbu
5ca651f220 Merge branch '1.6-release' 2017-05-07 10:49:45 +02:00
Takeshi KOMIYA
af02bfa7b3 Merge branch 'master' into 3638_eqref_format 2017-05-07 16:20:51 +09:00
Takeshi KOMIYA
8f0d269069 Merge branch '1.6-release' into 3633_misdetect_unreferenced_citations 2017-05-07 16:14:50 +09:00
Takeshi KOMIYA
6d2bcf9c27 Mark as experimental 2017-05-07 16:13:19 +09:00
jfbu
f547e59a7a Merge branch '1.6-release' 2017-05-05 13:34:47 +02:00
jfbu
79412051d2 Merge branch 'stable' into 1.6-release 2017-05-05 13:33:50 +02:00
jfbu
321a5e7a5e Fix #3702: abstract LaTeX styling of figure legends into sphinxlegend 2017-05-04 09:59:29 +02:00
Jakob Lykke Andersen
d4d0ea68fe C++, update docs and changelog 2017-05-04 14:04:33 +09:00
jfbu
3cff7faf77 Merge branch '1.6-release' 2017-05-03 11:40:21 +02:00
jfbu
ca543eee23 Separate latexmk and pdflatex options for better control 2017-05-03 10:59:12 +02:00
Takeshi KOMIYA
b27fbc4aa5 Remove html_use_smartypants (deprecated) 2017-05-03 17:27:32 +09:00
Takeshi KOMIYA
354e360783 Merge pull request #3677 from tk0miya/remove_deprecated_features_in_1.7
Remove deprecated features in 1.7
2017-05-03 17:10:16 +09:00
jfbu
af76149a2b Fix style-check whitespace error in doc 2017-05-03 07:52:32 +02:00
jfbu
7bbc8c1f88 By default, `make latexpdf` will try to ignore LaTeX errors
For example, if a graphics file is missing. The error is still reported
but some functional PDF may still have been produced. Some projects have
temporary errors with LaTeX (missing Unicode characters, graphics file
using wrong formats, ...) affecting some small percentage of the
documentation, and it may be important to make at least some PDF
available, postponing complete resolution of LaTeX problems to a later
date.
2017-05-03 00:30:33 +02:00
Takeshi KOMIYA
72e635c775 Merge branch '1.6-release' 2017-04-29 23:51:29 +09:00
Takeshi KOMIYA
d1e8e41b5e Fix #3633: misdetect unreferenced citations 2017-04-29 23:22:00 +09:00
Takeshi KOMIYA
c7d90ab18c Update doc 2017-04-29 15:15:22 +09:00
Takeshi KOMIYA
721c3d5fae Merge branch 'stable' into 1.6-release 2017-04-29 15:11:55 +09:00
Takeshi KOMIYA
bd66ffc1fa Fix the unreleased version number is shown (refs: #3678, #3027) 2017-04-28 01:19:01 +09:00
Takeshi KOMIYA
361a34257b Remove deprecated feature: latex_keep_old_macro_names 2017-04-27 21:49:19 +09:00
Takeshi KOMIYA
f2c93b3175 Remove deprecated feature: epub2 builder 2017-04-27 21:49:19 +09:00
Takeshi KOMIYA
a252954ea3 Fix #3638: Allow to change a label of reference to equation 2017-04-27 21:47:20 +09:00
Takeshi KOMIYA
8462d4bcda doc: Update 2017-04-27 21:24:33 +09:00
Aaron Carlisle
458d1487b2 From Review: Fix typos 2017-04-26 12:59:49 -04:00
Aaron Carlisle
f92523751e Docs: Add seealso message to config page leading to api docs
While hanging around IRC in both #sphinx-doc and #readthedocs
I have found that a lot of people do not know about these options
even though a lot of theme are pretty common. For example,
adding a simple theme overide, most people will edit layout.html
instead of Sphinx.add_stylesheet.
2017-04-26 11:53:08 -04:00
Mark Hillebrand
a7c8795d07 doc/invocation.rst: document missing options for sphinx-apidoc 2017-04-26 16:17:11 +02:00
Dmitry Shachnev
9236beb9ee Deprecate the html_use_smartypants option 2017-04-25 14:17:30 +03:00
Takeshi KOMIYA
c50321d3ca Merge branch 'master' into drop_websupport 2017-04-23 19:18:01 +09:00
Takeshi KOMIYA
5da74f463b Merge pull request #3649 from tk0miya/deprecate_sphinx_theme_entry_point
Fix #3628: Rename sphinx_themes entry point to sphinx.html_themes
2017-04-23 16:40:02 +09:00
Takeshi KOMIYA
55818b7419 Update docs 2017-04-23 16:03:46 +09:00
Takeshi KOMIYA
ca618b2998 Update docs 2017-04-22 19:04:00 +09:00
Takeshi KOMIYA
621a4e6f61 Fix #3628: Rename sphinx_themes entry point to sphinx.html_themes 2017-04-22 14:59:10 +09:00
Takeshi KOMIYA
2b9b4f92a5 Add image_converter_args confval 2017-04-22 13:29:17 +09:00
Takeshi KOMIYA
c525723807 Add sphinx.ext.imgconverter 2017-04-22 13:29:16 +09:00
Takeshi KOMIYA
241c0db7bc Merge branch 'master' into support_remote_images 2017-04-22 09:45:05 +09:00
Yoshiki Shibukawa
fb48f5a921 Merge pull request #3505 from shibukawa/feature/refactoring_epub_builder
Refactoring EPUB builders: split common codes from EPUB2 builder
2017-04-21 00:25:16 +09:00
Takeshi KOMIYA
f21ce2f03f Fix markup 2017-04-20 02:02:27 +09:00
Yoshiki Shibukawa
7bbf749bd1 Refactoring EPUB builders: split common codes from EPUB2 builder 2017-04-20 00:48:00 +09:00
Takeshi KOMIYA
806dff0e94 Merge branch 'master' into support_remote_images 2017-04-19 21:45:24 +09:00
shimizukawa
de2cd652ab update CHANGES refs #2961 2017-04-19 16:28:56 +09:00
Takeshi KOMIYA
ebdec70dfc Support images in Data URI on non-HTML builders 2017-04-19 01:40:49 +09:00
Takeshi KOMIYA
a5d77a8f06 Drop warning for nonlocal image URI 2017-04-19 01:40:17 +09:00
Robin Jarry
ececc4dcfe ext: enhance autodoc_mock_imports
The autodoc_mock_imports option requires to explicitly declare *every*
external module and sub-module that are imported by the documented code.
This is not practical as the list can become very large and must be
maintained as the code changes.

Also, the mocking is minimal which causes errors when compiling the
docs. For example, if you declare:

    autodoc_mock_imports = ['django.template']

And try to document a module:

    .. automodule:: my.lib.util

Which contains this code:

    from django.template import Library
    register = Library()

The following error occurs:

    File ".../my/lib/util.py" line 2
        register = Library()
    TypeError: 'object' object is not callable

Other similar errors can occur such as "TypeError: 'object' object has
no len".

To address these limitations, only require to declare the top-level
module that should be mocked:

    autodoc_mock_imports = ['django']

Will mock "django" but also any sub-module: "django.template",
"django.contrib", etc.

Also, make the mocked modules yield more complete dummy objects to avoid
these TypeError problems.

Behind the scenes, it uses the python import hooks mechanism specified
in PEP 302.

Signed-off-by: Robin Jarry <robin@jarry.cc>
2017-04-18 17:08:17 +02:00
Takeshi KOMIYA
618ef6492c Merge pull request #1767 from Jellby/master
Allow setting 'rel' and 'title' attributes for stylesheets.
2017-04-19 00:04:43 +09:00
Takeshi KOMIYA
690f07fa3c Merge pull request #3388 from smheidrich/autosectionlabel_prefix_document1
Added autosectionlabel_prefix_document config option
2017-04-18 01:16:00 +09:00
Takeshi KOMIYA
f6d9c7d1d1 Merge branch 'master' into 3558_emit_warnings_for_unreferenced_footnotes 2017-04-18 01:08:50 +09:00
smheidrich
231976ff14 Added autosectionlabel_prefix_document config option. 2017-04-17 14:51:39 +02:00
Jellby
e59a8028d7 Rewrite and simplify stylesheet handling
Thanks to tk0miya's comment, I learnt one can add stuff to template
blocks, that allows a much simpler stylesheet configuration, considering
that changes at the template level will be more... well, low-level.
Hopefully this is now acceptable.
2017-04-15 17:07:33 +02:00
Jellby
1cfed262d2 Merge remote-tracking branch 'upstream/master'
Conflicts:
	tests/test_build_html.py
2017-04-15 15:54:06 +02:00
Brecht Machiels
3dd256fe7d Do not include the builder class in the entry point
- use the entry point to load the extension module in the usual way
- update the documentation to reflect this change
2017-04-14 11:01:09 +02:00
Brecht Machiels
405ef96d2a Find third-party builders by entry point
A builder is uniquely identified by its name, which can be used as an
entry point in the 'sphinx.builders' entry point group. This obviates
the need to register the builder as an extension.

The built-in builders are still loaded as before. New third-party builders
should provide an entry point in their setup.py:

    entry_points={
        'sphinx.builders': [
            'mybuilder = mypackage.mymodule:MyBuilder',
        ],
    }

Like before, builders should define a setup(app) function in the
'mypackage.module' module to define configuration variables etc. It is
no longer necessary to register the builder using Sphinx.add_builder().

Existing builders can still be loaded the traditional way, by including
their module name in the extensions list in conf.py.
2017-04-10 13:04:41 +02:00
Takeshi KOMIYA
fc41f43a70 Merge branch 'stable' 2017-04-02 19:05:50 +09:00
Takeshi KOMIYA
592b808005 Merge pull request #3585 from eric-wieser/escape-autosummary
BUG: Fix autosummary of members with a trailing underscore
2017-03-29 22:56:32 +09:00
Eric Wieser
804891c4a1 BUG: Fix autosummary of members with a trailing underscore 2017-03-26 12:54:03 +01:00
Takeshi KOMIYA
3e46f52a96 Merge pull request #3475 from agjohnson/domain-js-add-nesting
Add nesting, package directive, and method directive to JavaScript domain
2017-03-26 18:16:04 +09:00
Takeshi KOMIYA
8f9dd64992 Merge branch 'stable' 2017-03-26 11:52:15 +09:00
Takeshi KOMIYA
c57e47e042 Year++ 2017-03-26 11:49:34 +09:00
jfbu
254c04500b Merge branch 'stable' 2017-03-23 11:13:22 +01:00
jfbu
89431bf833 Fix accidental use of `language='ja'` in docs (at 41bb388) 2017-03-23 11:03:38 +01:00
Takeshi KOMIYA
6376e6053c Merge branch 'stable' 2017-03-22 09:49:48 +09:00
jfbu
a0a0e6cab0 Fix typo 2017-03-21 09:23:35 +01:00
jfbu
68ac715565 Update domains.rst 2017-03-21 08:26:11 +01:00
jfbu
41bb38877f Update docs (domains.rst) 2017-03-21 08:24:35 +01:00
Christopher Chang
9af298dcfa Update domains.rst 2017-03-20 15:42:17 -07:00
Christopher Chang
3f2c3790ce fixed a grammatical mistake 2017-03-20 14:13:49 -07:00
Takeshi KOMIYA
01cb3a75c7 Fix #3558: Emit warnings if footnotes and citations are not referenced 2017-03-18 21:03:16 +09:00
Takeshi KOMIYA
aa6dfb8b41 Merge branch 'stable' 2017-03-18 18:25:50 +09:00
jfbu
39bce2f90a Remove documentation of `\sphinxquotedblleft` from next minor release
Indeed, the macros will perhaps be removed already at 1.6, (PR #3562),
hence it is better not to document them at 1.5.4.
2017-03-16 23:01:12 +01:00
Anthony Johnson
3ba60ffd5d Add nesting, module directive, and method directive to JavaScript domain
* Adds nesting to the JavaScript domain, to allow for nesting of elements
* Adds the ``js:module`` directive, which behaves similarly to the Python
  directive
* Adds the ``js:method`` directive, an alias to ``js:function``
* Adds roles for ``js:mod`` and ``js:meth``
* Updates tests to passing cases
* Adds docs for new features
2017-03-15 22:27:48 -07:00
Rob Ruana
b7efbfe615 Fix #3174: [Napoleon] Defers autodoc-skip-member to other extensions if Napoleon doesn't care if the member is skipped 2017-03-14 18:53:27 -07:00