summaryrefslogtreecommitdiff
path: root/sphinx/writers/html.py
Commit message (Collapse)AuthorAgeFilesLines
...
* | Reorder the arguments for translatorsTakeshi KOMIYA2018-12-171-5/+14
| |
* | 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.
* | refactor: Remove u-prefix from stringsTakeshi KOMIYA2018-12-161-5/+5
| |
* | Use Python 3 super() argument-less syntaxJon Dufresne2018-12-151-17/+17
| | | | | | | | | | | | The form is less verbose and more idiomatic for Python 3 only code. https://docs.python.org/3/library/functions.html#super
* | Replace all "unicode" type by "str"Takeshi KOMIYA2018-12-151-11/+10
| |
* | Add docutils-stubs to test depsTakeshi KOMIYA2018-12-151-2/+2
| |
* | Use nodes.Element for visitor/departure methodsTakeshi KOMIYA2018-12-151-106/+106
| | | | | | | | | | To follow docutils-stubs rule, we use nodes.Element for visitor/departure methods.
* | Remove SphinxTranslator.get_settings()Takeshi KOMIYA2018-12-121-3/+2
| | | | | | | | | | | | | | | | | | It was introduced to fake its type information and make mypy silent. But the warnings had came from wrong typing of docutils-stubs. (see https://github.com/tk0miya/docutils-stubs/pull/28) After the fix, the helper method is not needed for us. So this removes it right away.
* | Add SphinxTranslator as an abstract classTakeshi KOMIYA2018-12-031-13/+15
| |
* | Fix annotations (minor fixes)Takeshi KOMIYA2018-12-031-7/+9
| |
* | Fix annotations for writersTakeshi KOMIYA2018-11-301-2/+2
| |
* | refactor: Use super() to call methods of superclassTakeshi KOMIYA2018-11-281-15/+15
| |
* | Fix annotations for writersTakeshi KOMIYA2018-11-281-4/+4
| |
* | Add sphinx.util.typing:unicode to help mypy-3 migrationTakeshi KOMIYA2018-11-241-0/+1
| |
* | Replace six.string_types with native strJon Dufresne2018-11-211-2/+1
| |
* | Update type hints to HTML4 writerTakeshi KOMIYA2018-11-211-108/+108
| |
* | Use super() to call parent class's methodJon Dufresne2018-11-111-2/+2
|/
* Fix #5471: Show appropriate warning for deprecated APIsTakeshi KOMIYA2018-10-171-3/+3
|
* Fix #5348: download reference to remote file is not displayedTakeshi KOMIYA2018-08-261-4/+14
|
* Merge branch 'master' into refactor_highlighterTakeshi KOMIYA2018-07-291-5/+23
|\
| * Implement math_renderer frameworkTakeshi KOMIYA2018-07-281-5/+23
| |
* | Refactor: Run highlightlang on resolving phaseTakeshi KOMIYA2018-07-211-24/+38
|/
* Merge branch '1.7'Takeshi KOMIYA2018-04-141-1/+1
|\
| * Fix #4817: wrong URLs on warning messagesTakeshi KOMIYA2018-04-081-1/+1
| |
* | Merge branch 'master' into refactor_enumerable_nodesTakeshi KOMIYA2018-03-211-2/+2
|\ \
| * \ Merge branch '1.7'Takeshi KOMIYA2018-03-181-2/+2
| |\ \ | | |/
| | * Revert "Use typing.TYPE_CHECKING for typehints"Takeshi KOMIYA2018-03-131-2/+2
| | | | | | | | | | | | This reverts commit a073e17537c2aacaac305feadea58d4473ec97f4.
* | | Add Domain#get_enumerable_node_type()Takeshi KOMIYA2018-03-171-1/+1
|/ /
* | Make console and warning messages translatableTakeshi KOMIYA2018-03-031-7/+7
| |
* | Merge branch '1.7'Takeshi KOMIYA2018-02-181-2/+2
|\ \ | |/
| * Use typing.TYPE_CHECKING for typehintsTakeshi KOMIYA2018-02-141-2/+2
| |
* | Update type annotationsTakeshi KOMIYA2018-02-041-0/+3
|/
* Use flake8-import-orderTakeshi KOMIYA2018-01-281-4/+4
|
* Fix #4079: Add notranslate class to let Google Translate know they are not ↵Takeshi KOMIYA2018-01-131-3/+3
| | | | translatable
* add link to manpages in HTML builderAntoine Beaupré2018-01-111-0/+6
| | | | | | | | | | | | | | | | | | | | | | It is useful to have the HTML documentation builder actually link to real rendered versions of HTML manpages in its output. That way people can click on manpages to get the full documentation. There are a few services offering this online, so we do not explicitly enable one by default, but the Debian manpages repository has a lot of the manpages pre-rendered, so it is used as an example in the documentation. The parsing work is done by a transformer class that parses manpage objects and extract name/section elements. Those then can be used by writers to cross-reference to actual sites. An implementation is done in the two HTML writers, but could also apply to ePUB/PDF writers as well in the future. This is not enabled by default: the `manpages_url` configuration item needs to be enabled to point to the chosen site. The `page`, `section` and `path` parameters are expanded through Python string formatting in the URL on output. Unit tests are fairly limited, but should cover most common use-cases.
* Merge branch 'happy_new_year' into masterTakeshi KOMIYA2018-01-011-1/+1
|\
| * A happy new year!Takeshi KOMIYA2018-01-011-1/+1
| |
* | Closes #3160: Use <kbd> tag for :kbd: role in html writersDavid Lechner2017-10-301-5/+12
|/
* Initialize _fieldlist_row_index just like _table_row_indexLennart Regebro2017-10-151-0/+1
| | | | | | | visit_field can be called before visit_field_list if the field list is at the beginning of the document. By initializing _fieldlist_row_index in __init__ this is supported. Closes #4145
* Remove bulk_text_processors methods, they are no longer neededDmitry Shachnev2017-04-251-6/+0
|
* Remove the custom smartypants codeDmitry Shachnev2017-04-251-94/+0
| | | | | | | | | | 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.
* Move translators to SphinxFactoryTakeshi KOMIYA2017-04-221-2/+2
|
* Merge branch 'stable'Takeshi KOMIYA2017-03-261-1/+1
|\
| * Year++Takeshi KOMIYA2017-03-261-1/+1
| |
* | Fix #3506: consistently pass node to depart_admonition in HTML writerTravis A. Everett2017-03-041-7/+7
| |
* | Merge branch 'stable'Takeshi KOMIYA2017-02-261-4/+4
|\ \ | |/
| * Fix &nbsp is appeared in EPUB docs #3450 againYoshiki Shibukawa2017-02-261-4/+4
| |
* | Merge branch 'stable'Takeshi KOMIYA2017-02-251-1/+16
|\ \ | |/
| * fix #3450: &nbsp is appeared in EPUB docsYoshiki Shibukawa2017-02-241-1/+16
| |
* | Fix mypy violationsTakeshi KOMIYA2017-02-211-1/+1
| |