Commit Graph

1660 Commits

Author SHA1 Message Date
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
4738ef878c Merge pull request #3634 from tk0miya/failed_to_load_templates
Fix fail to load template file if the parent template is archived
2017-04-18 23:58:08 +09:00
Takeshi KOMIYA
f1b387bdcf Fix fail to load template file if the parent template is archived 2017-04-18 23:22:03 +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
smheidrich
231976ff14 Added autosectionlabel_prefix_document config option. 2017-04-17 14:51:39 +02:00
Takeshi KOMIYA
13acfd3ce1 Rename test-image-glob to test-images 2017-04-16 21:53:01 +09: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
Takeshi KOMIYA
939f01eae3 Fix #3594: LaTeX: single raw directive has been considereed as block level element 2017-04-08 11:54:01 +09: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
Takeshi KOMIYA
d0384130cc Merge pull request #3518 from agjohnson/fix-singlehtml-empty-toctree
Allow empty toctree in singlehtml builder
2017-03-29 22:24:16 +09:00
Anthony Johnson
beee9e80cd
Add another test for empty toctree 2017-03-29 00:52:35 -07: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
1dea386bc4 Fix #3108: Show warning if :start-at: and other literalinclude options does not match to the text 2017-03-26 18:13:50 +09:00
Takeshi KOMIYA
6d08efe2dd test: Replace app.buildername by app.builder.name 2017-03-26 17:33:56 +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
Eric Wieser
a7397a21fe Test whether the escaping is correct by looking at the plaintext
Otherwise we're just testing that the headers are produced with format_header
2017-03-24 09:53:01 +00:00
Eric Wieser
18d2e2e48b Move apidoc tests to subfolder, rather than polluting main test 2017-03-24 09:51:50 +00:00
Eric Wieser
3e7bee5836 Fix issues with trailing underscores in heading names
Fixes #1451, using the approach in 8d96c90fc6
2017-03-23 12:40:14 +00:00
Takeshi KOMIYA
f3aa62e685 Merge pull request #3571 from tk0miya/refactor_init_builder
Refactor initialization process of builder
2017-03-22 09:50:31 +09:00
Takeshi KOMIYA
6376e6053c Merge branch 'stable' 2017-03-22 09:49:48 +09:00
David Baumgold
3317796739 Fix intersphinx debug tool
and add automated tests
2017-03-21 15:00:32 -04:00
Anthony Johnson
fb3953698b
Remove JS domain module feature for null module names 2017-03-20 13:38:23 -07:00
Anthony Johnson
5d8b49d221
Cleanup on docs and test 2017-03-20 12:17:58 -07:00
Takeshi KOMIYA
cd3f48bb76 Create an instance of builder before initialize env 2017-03-19 23:16:37 +09:00
Takeshi KOMIYA
aa6dfb8b41 Merge branch 'stable' 2017-03-18 18:25:50 +09:00
Takeshi KOMIYA
a67c7855aa Merge pull request #3520 from agjohnson/fix-domain-py-nesting
Fix Python domain nesting
2017-03-18 17:33:56 +09:00
Takeshi KOMIYA
0df0a11cfa Add testcode for sphinx.pycode 2017-03-18 15:00:28 +09:00
Dmitry Shachnev
1d12165a12 tests: Fix invalid escape sequence
This fixes this warning:
tests/test_build_latex.py:958: DeprecationWarning: invalid escape sequence \s
2017-03-16 20:22:58 +03: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
Takeshi KOMIYA
c1a6377caa Merge pull request #3555 from mitya57/stable
test_markup: Make verify functions test both HTML and LaTeX outputs
2017-03-16 10:28:48 +09:00
Dmitry Shachnev
1717a95a77 Fix a test failure which was uncovered by the previous change
In PR #3527 the LaTeX output for quotes has changed, but the test was
not updated.
2017-03-15 11:29:50 +03: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
Dmitry Shachnev
6e0467ca77 test_markup: Make verify functions test both HTML and LaTeX outputs
Previously it would return after performing the HTML check, without
running the LaTeX one.
2017-03-14 22:34:51 +03:00
jfbu
bc0682af0e Merge branch 'stable'
Conflicts resolved:
	sphinx/domains/cpp.py
	sphinx/domains/python.py
	sphinx/texinputs/sphinx.sty
	sphinx/util/docfields.py
	sphinx/writers/latex.py
	tests/test_build_latex.py

Also updated:
    sphinx/domains/__init__.py
2017-03-12 13:01:47 +01:00
Jakob Lykke Andersen
acf5f94940 C++, fix parsing error of non-type template arg
Fixes sphinx-doc/sphinx#3542
2017-03-12 15:03:20 +09:00
Ray Lehtiniemi
560c8ab29d Add more decorator tests
Signed-off-by: Ray Lehtiniemi <rayl@mail.com>
2017-03-11 14:16:23 -07:00
Ray Lehtiniemi
06b6e07b98 Add tests
Signed-off-by: Ray Lehtiniemi <rayl@mail.com>
2017-03-11 13:40:47 -07:00
Jean-François B
3128a4327d More robust hyperlink macros in LaTeX output (refs #3317, #3340, #3533) (#3538)
More robust hyperlink macros in LaTeX output (refs #3317, #3340, #3533)
2017-03-11 16:53:53 +01:00
Takeshi KOMIYA
c7bec75bcd BuildEnvironment always own application object (after read phase) 2017-03-08 12:23:25 +09:00
Takeshi KOMIYA
5ee4c396bc Merge branch 'stable' 2017-03-08 00:22:39 +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
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
Anthony Johnson
3390b7f499
Allow empty toctree in singlehtml builder
We noticed this issue with the 0.2.x release of snide/sphinx_rtd_theme. Because
we are calling toctree unconditionally, we notice a bug in the singlehtml
builder when the docs have an empty/nonexistant toctree. In this case,
`fix_refuris` as being passed `None`, which failed to traverse, throwing an
exception.

This conditionally fixes the refuris instead.
2017-03-05 13:31:43 -08:00
Travis A. Everett
fde43061e5 clean up commented lines 2017-03-04 20:58:43 -06:00
Travis A. Everett
4c67c110f6 Also change depart_admonition calls for html5 builder 2017-03-04 20:32:46 -06:00
Travis A. Everett
1e28eeb348 swing two for oldstyle class 2017-03-04 15:56:06 -06:00