Commit Graph

6608 Commits

Author SHA1 Message Date
Silvio Tomatis
45473b3334 Make javascript search work in more contexts
The meaning of `\w` changed from python 2 to python 3.

> $ python3.5 -c "import re; print(re.compile(r'[a-zA-Z]\w*$').match(u'a\xe8'));"
> <_sre.SRE_Match object; span=(0, 2), match='aè'>

> python -c "import re; print(re.compile(r'[a-zA-Z]\w*$').match(u'a\xe8'));"
> None

but the definition of what's an acceptable javascript identifier should not vary from case to case.
2016-07-08 15:27:48 +02:00
jfbu
7db8141238 Amend merged PR#2736 to maintain strict stability of pdf title page
This maintains for the time being the diverging behaviour between
engines regarding the top of title page, as discussed at
https://github.com/sphinx-doc/sphinx/pull/2736#issuecomment-230140016
2016-07-03 10:49:05 +02:00
Jean-François B
532a804a66 Merge pull request #2736 from jfbu/fixunderfullhbox
Fix #2735: latexpdf ``Underfull \hbox`` warnings from title page
2016-07-02 12:46:39 +02:00
jfbu
0ecfa8e8e9 Fix #2735: latexpdf `Underfull \hbox` warnings from title page
This came from the spurious space tokens following a fullwidth rule at
top of ``\maketitle`` in ``sphinxhowto.cls`` and ``sphinxmanual.cls``.
The ``\newline\null\par`` incantation recreates the extra empty line
which originated in these spurious space tokens, but it avoids the
Underfull latex warning. Nothing is changed to layout from this fix.
2016-07-02 10:56:59 +02:00
Takeshi KOMIYA
d57b395502 Add a release signature to README (ref: #2612) 2016-07-02 16:37:00 +09:00
jfbu
7796a553d3 Update CHANGES for PR#2726 2016-07-02 07:41:43 +02:00
Jean-François B
8a79144e26 Merge pull request #2726 from jfbu/fixmultirow
Fix #2723: extra spaces in latex pdf output from multirow cell
2016-07-02 07:39:47 +02:00
Takeshi KOMIYA
bd2ad1bc68 Fix #2699: hyperlinks in help HTMLs are broken if html_file_suffix is set 2016-07-02 14:30:38 +09:00
Takeshi KOMIYA
b30d4f4882 Fix #2718: Sphinx crashes if the document file is not readable 2016-07-02 13:54:45 +09:00
Takeshi KOMIYA
2ebeff6776 Fix CHANGES 2016-07-02 10:29:26 +09:00
Takeshi KOMIYA
e6b545c2f2 Update CHANGES for PR#2731 2016-07-02 10:26:57 +09:00
Takeshi KOMIYA
6227a7f98c Merge pull request #2731 from seanfarley/fix-abstractproperty
inspect: return obj.__dict__[name] if there is an exception
2016-07-02 10:22:03 +09:00
jfbu
35214d4518 Fix #2733: `make latexpdf` generates lots of hyperref warnings 2016-07-01 19:18:27 +02:00
Takeshi KOMIYA
26b2e99d73 Merge pull request #2729 from mixmastamyk/patch-3
Add woff support to epub builder - CHANGES
2016-07-01 12:54:53 +09:00
Takeshi KOMIYA
f0d9e5072f Merge pull request #2728 from mixmastamyk/patch-2
Add woff support to epub builder
2016-07-01 12:54:28 +09:00
mixmastamyk
5a03485432 Update epub.py
rm trailing whitespace
2016-06-30 19:49:09 -07:00
mixmastamyk
c80db568eb Update CHANGES 2016-06-30 13:57:25 -07:00
mixmastamyk
2b85a2a3be Update epub.py 2016-06-30 13:51:34 -07:00
Sean Farley
6f058ba173 inspect: return obj.__dict__[name] if there is an exception
When using a cached property, Sphinx tries to access the actual property
of an object which raises NotImplementedError. In these cases, we fall
back to inspecting the __dict__ and returning that instead.
2016-06-30 10:04:02 -07:00
jfbu
b25dc5ef4c Fix #2723: extra spaces in latex pdf output from multirow cell
Adds some ``\relax``/``\unskip`` and removes spaces from ``visit_entry``
generated latex code. Earlier, multirow cell inherited one extra space
token at begin and one at end, making left or right alignment with other
cells fail because the native LaTeX space removal mechanism for table
cells could not apply there.

Memo: the ``\eqparbox`` part of ``visit_entry`` from e41f831f is left
untouched; separate analysis required.
2016-06-30 18:11:54 +02:00
jfbu
f30a8d5a36 fix a mark-up typo in doc/install.rst 2016-06-30 11:10:58 +02:00
jfbu
2a1826022d Update to CHANGES 2016-06-30 00:03:06 +02:00
Jakob Lykke Andersen
68a32a2bff C++, fix id generation of var/member declarations.
Namespaces not in the declaration are now properly included in the id.
Fixes sphinx-doc/sphinx#2722.
2016-06-29 09:02:35 +02:00
Takeshi KOMIYA
e134dc6f57 Fix a condition in latex_image_length() 2016-06-26 11:44:11 +09:00
Takeshi KOMIYA
593f12060c Fix warning in CHANGES 2016-06-26 11:40:08 +09:00
Takeshi KOMIYA
0859b338d8 LaTeX writer: Integerate width_to_latex_length() and latex_image_length() (ref: #2714) 2016-06-26 11:30:02 +09:00
jfbu
45ddb6387c Add a missing word in CHANGES and fix minor other issues there 2016-06-24 19:18:56 +02:00
jfbu
84ed2c394a Merge branch 'jfbu_fixspaceafterinlineliteral' into stable 2016-06-24 15:33:58 +02:00
jfbu
b6daf6be56 fix latex, since 1.4.4 inline literal text is followed by spurious space
ref: a51681b use of ``\scantokens`` has a quirk with adding a space in
some cases which we fix by inserting a ``\relax`` at the end of the
argument.
2016-06-24 15:26:50 +02:00
Takeshi KOMIYA
211fd352ae Fix #2579: Could not refer a label including both spaces and colons via sphinx.ext.intersphinx
This fixes only the case the label including both spaces and colons as
ad-hoc. There is still a bug if a label having spaces, colons and
numbers like "foo bar:baz 1234".

Note: To support the case, we have to improve the inventory format.
2016-06-24 21:11:31 +09:00
Jakob Lykke Andersen
fab5911004 C, neutralize xrefs to fundamental types.
TypedFields generate xrefs to whatever it gets.
See sphinx-doc/sphinx#2439.
2016-06-24 09:37:20 +02:00
Takeshi KOMIYA
ce1b9e3192 Fix flake8 violation 2016-06-24 14:51:25 +09:00
Takeshi KOMIYA
bf692e2f34 Fix #2700: HtmlHelp builder has hard coded index.html 2016-06-24 12:35:44 +09:00
Takeshi KOMIYA
04723c1175 Fix #2479: sphinx.ext.viewcode uses python2 highlighter by default 2016-06-24 11:35:15 +09:00
Takeshi KOMIYA
1e979091f2 Fix #2705: toctree generates empty bullet_list if `:titlesonly:` specified 2016-06-23 11:56:49 +09:00
jfbu
8feb92dd2d Update CHANGES for PR #2672 2016-06-22 18:33:43 +02:00
Jean-François B
0802e5499a Merge pull request #2672 from jfbu/jfbu_fixincludegraphics
Fix #2671: image directive may lead to inconsistent spacing in pdf
2016-06-22 18:25:46 +02:00
Jean-François B
58100c2856 Merge pull request #2697 from jfbu/jfbu_reusefloatpackage
Fix #2679: (latex) load package float for 'H' value of 'figure_align'
2016-06-20 07:51:28 +02:00
Takeshi KOMIYA
2fc30b001a Merge pull request #2696 from mitya57/stable
Fix LocalTimeZone.utcoffset return value when SOURCE_DATE_EPOCH is set
2016-06-20 11:30:18 +09:00
jfbu
3650663bb3 Fix #2679: (latex) load package float for 'H' value of 'figure_align' 2016-06-19 20:57:38 +02:00
Dmitry Shachnev
0b2a4e9073 Fix LocalTimeZone.utcoffset return value when SOURCE_DATE_EPOCH is set
Subclasses of tzinfo should follow the parent class and return offset either
as None (when unknown) or as timedelta.

Otherwise datetime.fromtimestamp() will raise a TypeError:
tzinfo.utcoffset() must return None or timedelta, not 'int'.
2016-06-19 16:40:42 +03:00
jfbu
beeeb56c27 latex `\noindent` for non-inline images, not only if top level 2016-06-19 11:04:45 +02:00
jfbu
6929d546c8 Hard-wrap some long lines in CHANGES
Seems longer lines are more frequent since 1.4. I hard-wrapped at 80
chars the ones I committed which sometimes exceeded 100 chars. Other
long lines remain (one has 108 chars).
2016-06-18 12:22:18 +02:00
Jean-François B
a358f309da Merge pull request #2664 from jfbu/jfbu_safertestforundefined
latex: let sphinx.sty use own \spx@ifundefined for some tests.

the first commit is more aggressive, I leave it in commit history in case it could be useful in future.
2016-06-18 11:57:17 +02:00
Takeshi KOMIYA
7586297d6d Fix #2684: sphinx.ext.intersphinx crashes with six-1.4.1 2016-06-18 10:27:32 +09:00
jfbu
664e24cf86 Fix #2671: image directive may lead to inconsistent spacing in pdf 2016-06-17 10:08:31 +02:00
jfbu
44bd987314 latex: let sphinx.sty use own \spx@ifundefined for some tests 2016-06-16 18:35:01 +02:00
jfbu
b78d9fec2f latex: let sphinx.sty use own \spx@ifundefined safer test 2016-06-16 18:34:09 +02:00
Jakob Lykke Andersen
65dddfcd69 C++, fix parsing of function types in other types.
Let all kinds of function parameters be allowed to have a name.
Fixes michaeljones/breathe#267.
2016-06-16 10:54:16 +09:00
Jean-François B
4cf78e608e Merge pull request #2675 from jfbu/jfbu_macroswithprefix
Fix #2629. Add new config option latex_keep_old_macro_names
2016-06-15 09:31:47 +02:00