summaryrefslogtreecommitdiff
path: root/tests/test_markup.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix HTML: Invalid HTML5 file is generated for glossary (refs: #4611)Takeshi KOMIYA2019-01-031-0/+23
| | | | | Note: It was caused by a glossary having multiple terms for one description.
* Remove use of deprecated APIsTakeshi KOMIYA2019-01-031-1/+1
|
* Merge branch '1.8'Takeshi KOMIYA2019-01-021-1/+1
|\
| * A happy new year!Takeshi KOMIYA2019-01-021-1/+1
| |
* | Remove unnecessary encoding cookie from Python source filesJon Dufresne2018-12-161-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In Python 3, the default encoding of source files is utf-8. The encoding cookie is now unnecessary and redundant so remove it. For more details, see the docs: https://docs.python.org/3/howto/unicode.html#the-string-type > The default encoding for Python source code is UTF-8, so you can > simply include a Unicode character in a string literal ... Includes a fix for the flake8 header checks to stop expecting an encoding cookie.
* | Merge branch '1.8'jfbu2018-12-161-2/+1
|\ \ | |/
| * LaTeX: allow sphinxVerbatim usage without explicit "hllines" extra setupjfbu2018-12-161-2/+1
| | | | | | | | Fixes: #5810
* | refactor: Remove u-prefix from stringsTakeshi KOMIYA2018-12-161-13/+13
| |
* | Add SphinxTranslator as an abstract classTakeshi KOMIYA2018-12-031-0/+1
| |
* | LaTeX: support for Greek and Cyrillicjfbu2018-11-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0. do not escape Unicode Greek letters via LaTeX math mark-up: pass them through un-modified to LaTeX document, 1. if "fontenc" receives extra option LGR, then pdflatex will support Unicode Greek letters (not in math), and with extra option T2A it will support (most) Unicode Cyrillic letters. 2. for pdflatex with LGR, this will use "textalpha" LaTeX package and "substitutefont" package to set up some automatic font substitution to work around the unavailability of Greek with "times" package (which is default font package chosen by Sphinx for pdflatex), same with T2A and "substitutefont" for Cyrillic. 3. for xelatex/lualatex, set up Computer Modern Unicode as default font, as it supports Cyrillic and Greek scripts, 4. for platex, don't do anything special as the engine already has its default font supporting Cyrillic and Greek (even in math mode!) Closes: #5251 Fixes: #5248 Fixes: #5247
* | Add LaTeXBuilder.context: Build context object by builderTakeshi KOMIYA2018-08-131-0/+4
|/
* proposed enhancement #4830Michael Tesch2018-04-201-2/+10
|
* Fix flake8 violationsTakeshi KOMIYA2018-02-191-4/+3
|
* Fix #4079: Add notranslate class to let Google Translate know they are not ↵Takeshi KOMIYA2018-01-131-5/+6
| | | | translatable
* Split out fancy LaTeX macros from ``\sphinxcode`` into ``\sphinxupquote``jfbu2018-01-031-6/+6
| | | | | | | | | | | | | | | | | 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.
* A happy new year!Takeshi KOMIYA2018-01-011-1/+1
|
* Support ``:emphasize-lines:`` in PDF output (closes #1238)jfbu2017-12-101-1/+2
|
* Add tests for default-roleTakeshi KOMIYA2017-07-311-0/+41
|
* refs #3458: add sphinx.testing that are moved from /tests directory.shimizukawa2017-05-141-1/+1
|
* Remove the custom smartypants codeDmitry Shachnev2017-04-251-4/+7
| | | | | | | | | | Instead rely on docutils’ ‘smart_quotes’ option which is available since docutils 0.10. This adds support for internationalization: our code supported only English quotes, while docutils code supports 27 different languages. Closes #498, #580, #3345, #3472.
* Year++Takeshi KOMIYA2017-03-261-1/+1
|
* Fix a test failure which was uncovered by the previous changeDmitry Shachnev2017-03-151-1/+1
| | | | | In PR #3527 the LaTeX output for quotes has changed, but the test was not updated.
* test_markup: Make verify functions test both HTML and LaTeX outputsDmitry Shachnev2017-03-141-4/+4
| | | | | Previously it would return after performing the HTML check, without running the LaTeX one.
* More robust hyperlink macros in LaTeX output (refs #3317, #3340, #3533) (#3538)Jean-François B2017-03-111-1/+1
| | | | | More robust hyperlink macros in LaTeX output (refs #3317, #3340, #3533)
* Fix flake8 violationsTakeshi KOMIYA2017-01-261-1/+2
|
* pytest optimizatoin:shimizukawa2017-01-081-90/+161
| | | | | | | | - remote using deprecated decorators - remove gen_with_app - remove yield testing - remove pytest warnings - refactoring
* pytest: remove deprecated with_app decorator functionsshimizukawa2017-01-061-5/+6
|
* Uninstall sphinx directives and roles of domains after buildTakeshi KOMIYA2016-09-211-3/+6
|
* Refactor sphinx.environment: Reimplemnt process_refonly_bullet_lists() as a ↵Takeshi KOMIYA2016-09-151-0/+19
| | | | transform
* Refactor sphinx.environment: Reimplement filter_messages() as a transformTakeshi KOMIYA2016-09-151-0/+18
|
* Merge branch 'stable'Takeshi KOMIYA2016-08-091-1/+1
|\
| * fix html entity to fix epub errorYoshiki Shibukawa2016-08-091-1/+1
| |
* | Enhance latex text styling customizabilityjfbu2016-06-171-2/+2
| |
* | Rename SphinxVerbatim to sphinxVerbatim for latex outputjfbu2016-06-151-2/+2
| |
* | Merge branch 'stable'jfbu2016-06-151-7/+7
|\ \ | |/ | | | | | | | | | | Conflicts: sphinx/domains/cpp.py sphinx/texinputs/sphinx.sty tests/test_build_latex.py
| * Fix #2629. Add new config option ``latex_keep_old_macro_names``jfbu2016-06-151-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The cause of the issue was a clash about ``\titleref`` macro being already defined in memoir class context. To avoid similar problems, this makes the text styling macros ``\strong``, ``\code``, ``\bfcode``, ``\email``, ``\tablecontinued``, ``\titleref``, ``\menuselection``, ``\accelerator``, ``\crossref``, ``\termref``, ``\optional``, also available with ``\sphinx`` prefix, with a conf.py boolean option to let sphinx.sty only define ``\sphinx``-prefixed macros. As default value is False, backwards compatibility is maintained. On this occasion, some internal non-public macros have been renamed with prefix ``\spx@``. The command find . -name '*.sty' -exec grep -l \\\\spx@ {} \; has been executed in TeXLive 2015 and 2016 installations to check no package defines macros starting with ``\spx@``. Some internal macros having public names (because they are written by latex.py into the body of the latex document) have been renamed to have ``\sphinx`` prefix. The macros in sphinx.sty starting with \py@, or \DU, or \PYG have not been modified. Similarly ``\release``, ``\version``, ``\releasename``, etc... have not been renamed.
* | Merge branch 'stable'Takeshi KOMIYA2016-06-121-1/+4
|\ \ | |/
| * Fix flake8 violation under tests/Takeshi KOMIYA2016-06-121-1/+4
| |
* | latex: keep original Verbatim under same name, use SphinxVerbatim for ownjfbu2016-06-101-2/+2
|/
* Fix #2445: `rst_prolog` and `rst_epilog` affect to non reST sourcesTakeshi KOMIYA2016-05-251-10/+15
|
* Add testcase for rst_prolog and rst_epilogTakeshi KOMIYA2016-05-251-1/+21
|
* Define ``\menuselection`` and ``\accelerator`` macros to redefine the style ↵Takeshi KOMIYA2016-02-251-2/+2
| | | | of `menuselection` roles.
* Obligatory copyright update.Georg Brandl2016-01-141-1/+1
|
* Closes #1987: Fix ampersand is ignored in ``:menuselection:`` and ↵Takeshi KOMIYA2015-09-011-1/+1
| | | | ``:guilabel:`` on LaTeX builder
* Fix generating emphasis nodes without semantic reasonGeorg Brandl2015-02-251-3/+3
| | | | | Roles ``ref``, ``term`` and ``menusel`` now don't generate :durole:`emphasis` nodes anymore. If you want to keep italic style, adapt your stylesheet.
* Fix #1620: Use VerbatimBorderColor to add frame to code-block in LaTeXTakeshi KOMIYA2015-01-181-1/+1
|
* Merge branch 'stable'Georg Brandl2015-01-031-1/+1
|\
| * all: update copyrightGeorg Brandl2015-01-031-1/+1
| |
* | Add frame to code-block in LaTeXtk0miya2014-10-081-1/+1
| |
* | Complete test suite overhaul.Georg Brandl2014-09-211-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | * rename a few test modules to make the names more consistent * do not copy/use Sphinx from build/ (unnecessary without 2to3) * use a temporary dir for *all* test projects, the source tree will stay pristine that way (default is tests/build) * speed up tests by ~3x by splitting up test projects and avoiding rebuilds