summaryrefslogtreecommitdiff
path: root/sphinx/writers/html.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove HTML 4 support (#11385)Adam Turner2023-04-281-4/+3
|
* Run pyupgrade (#11070)Adam Turner2023-01-021-1/+1
|
* Insert ``from __future__ import annotations``Adam Turner2023-01-011-0/+2
|
* Factor out HTML 4 translator (#11051)Adam Turner2022-12-301-846/+5
| | | Move the HTML 4 translator into a private module.
* remove blanket 'noqas'Daniel Eades2022-12-161-2/+4
|
* Update typing ignores for mypy 0.990Adam Turner2022-11-131-2/+2
|
* Revert ``html_codeblock_linenos_style`` removal (#10922)Adam Turner2022-10-161-1/+4
|
* Merge branch '5.x'Adam Turner2022-10-161-1/+1
|\ | | | | | | | | | | | | | | # Conflicts: # .github/workflows/main.yml # CHANGES # sphinx/__init__.py # sphinx/domains/c.py
| * URI-escape image filenames (#10268)Eric Wieser2022-10-131-1/+1
| | | | | | | | | | | | | | | | Without this change, local images with `#` in their name result in incorrect URLs There is already a similar call to `urllib.parse.quote` for file downloads, suggesting this is a sensible approach. Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Takeshi KOMIYA <i.tkomiya@gmail.com>
* | Merge branch '5.x'Adam Turner2022-09-251-0/+1
|\ \ | |/ | | | | | | | | | | | | | | | | # Conflicts: # CHANGES # doc/conf.py # sphinx/__init__.py # sphinx/builders/html/__init__.py # sphinx/domains/python.py # tests/test_build_html.py
| * Deprecate HTML 4 support (#10843)Adam Turner2022-09-231-0/+1
| |
* | Merge branch '5.x'Adam Turner2022-09-231-2/+2
|\ \ | |/ | | | | | | | | # Conflicts: # setup.py # sphinx/__init__.py
| * Shrink strict optional whitelist (HTML writers) (#10838)danieleades2022-09-201-2/+2
| |
* | Remove deprecated items for Sphinx 6.0 (#10471)Adam Turner2022-06-161-18/+1
|/
* Merge branch '4.x' into 5.xTakeshi KOMIYA2022-05-061-1/+16
|\
| * Merge pull request #10251 from jbms/fix-inline-syntax-highlightTakeshi KOMIYA2022-05-061-1/+16
| |\ | | | | | | Make code role highlighting consistent with code-block directive
| | * Make code role highlighting consistent with code-block directiveJeremy Maitin-Shepard2022-03-191-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes https://github.com/sphinx-doc/sphinx/issues/5157 This is factored out of the sphinx-immaterial theme: https://github.com/jbms/sphinx-immaterial/blob/1ef121a612d4f5afc2a9ca9c4e3f20fca89065e8/sphinx_immaterial/inlinesyntaxhighlight.py#L1 See also: https://github.com/sphinx-doc/sphinx/pull/6916
* | | Merge branch '4.x'Takeshi KOMIYA2022-03-191-9/+1
|\ \ \ | |/ /
| * | Collapse single line docstringsAdam Turner2022-02-201-2/+1
| | |
| * | Remove copyright and licence fieldsAdam Turner2022-02-201-3/+0
| | |
| * | Fix module docstring indentationAdam Turner2022-02-201-2/+2
| | |
| * | Fix module docstring first lineAdam Turner2022-02-201-2/+1
| | |
| * | Remove module titles in docstringsAdam Turner2022-02-191-3/+0
| |/
* | Merge branch '4.x'Takeshi KOMIYA2022-02-191-6/+2
|\ \ | |/
| * Appease flake8Adam Turner2022-02-051-1/+0
| |
| * Use `settings_default_overrides`Adam Turner2022-02-051-5/+2
| |
* | Merge commit '07110b7557a552ecfe702bdd6a2d2f9685cb1af9'Takeshi KOMIYA2022-02-141-1/+4
|\ \ | |/
| * Fix #10121: html: <div> tag for admonition is not closed w/ docutils-0.18Takeshi KOMIYA2022-01-261-1/+4
| | | | | | | | | | | | | | | | Since v0.18, docutils has output <aside> tag to represent admonitions. On the other hand, our custom HTML Writer overrides the handler for admonition nodes halfly. As a result, the opening and closing tags become mismatched. This fully overrides the handler to use <div> tag to represent admonitions.
* | Change "Permalink to this {headline -> heading}"Pradyun Gedam2022-01-021-2/+2
| | | | | | | | | | "heading" is a better word to use in this tooltip, since it better matches the use case.
* | Merge branch '4.x'Takeshi KOMIYA2022-01-011-1/+1
|\ \ | |/
| * Merge branch '4.3.x' into 4.xTakeshi KOMIYA2022-01-011-1/+1
| |\
| | * A happy new year!Takeshi KOMIYA2022-01-011-1/+1
| | |
* | | Merge branch '4.x'Takeshi KOMIYA2022-01-011-3/+0
|\ \ \ | |/ /
| * | drop translator-specific unknown_visit callsJames Knight2021-12-051-3/+0
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removes the need for various translators from raising a `NotImplementedError` exception when missing support for a specific node type. docutils will already raise [1][2] a `NotImplementedError` exception for these cases. This help reduce the implementation inside Sphinx as well as prevents the possible undesired replication of unknown-node handling with third-party extensions [3]. In most cases, generating a warning message for an unsupported node type can be preferred. Providing an indication that a node is not supported can be easier for a user of Sphinx to understand a limitation of a builder over a generic "not implemented" exception. This commit takes the logging call which is already used by `texinfo` and applies it to the `SphinxTranslator` base class -- which any Sphinx translator implementation can use. [1]: https://repo.or.cz/docutils.git/blob/d169015ee0f412cffd69b33654d8a119d99bc0f3:/docutils/nodes.py#l2048 [2]: https://repo.or.cz/docutils.git/blob/53716a13b48128af6045139d3cd2909f61e7ed8e:/docutils/nodes.py#l1897 [3]: https://github.com/sphinx-doc/sphinx/issues/9921 Signed-off-by: James Knight <james.d.knight@live.com>
* | refactor: Remove RemovedInSphinx50Warning (partially)Takeshi KOMIYA2021-12-171-7/+1
|/
* Fix #9710: html: Wrong styles for even/odd rows in nested tablesTakeshi KOMIYA2021-10-091-9/+29
|
* Fix local file download by encoding URLJohannes Aalto2021-09-241-1/+3
| | | | | | | | | | | | | Properly encode links to files with special characters for the user to actually be able to download them. The issue still remains for image files but the logic path is quite different than with other files fix might involve changes to docutils. Fixes sphinx-doc/sphinx#3097 Signed-off-by: Johannes Aalto <ext-johannes.aalto@vaisala.com>
* Merge pull request #9225 from doerwalter/typehint-htmlTakeshi KOMIYA2021-07-111-2/+4
|\ | | | | Add HTML markup to method/function return typehint
| * Remove configuration option html_signaturereturn_icon.Walter Doerwald2021-06-141-3/+3
| |
| * Add configuration option html_signaturereturn_icon for the arrow before a ↵Walter Doerwald2021-05-161-1/+3
| | | | | | | | return type hint.
| * Rename CSS classes for return type hint HTML markup.Walter Doerwald2021-05-161-2/+2
| | | | | | | | | | | | | | Wrap the complete type hint in a additional <span> to enable showing the typehint as a popup on hover. Port changes to sphinx/writers/html.py.
* | Provide more semantic structure for screen-readersJoe Nelson2021-06-171-1/+1
|/ | | | https://www.w3.org/WAI/WCAG21/Techniques/aria/ARIA12
* Decl styling, update writersJakob Lykke Andersen2021-04-121-0/+6
| | | | | | Add test objects so all builders gets exposed to the new nodes. Make the fallback node post-transform change desc_inline as well. Make the html4, latex, and text writers handle desc_inline.
* Decl styling, move static classes to addnodes from HTML5 writerJakob Lykke Andersen2021-04-121-7/+7
|
* Decl styling, move desc dynamic classes to domain base classJakob Lykke Andersen2021-04-121-6/+18
|
* Merge pull request #9053 from tk0miya/title_node_for_toctree_captionTakeshi KOMIYA2021-04-091-1/+6
|\ | | | | Fix #8870: Use title node for the caption of toctree
| * Fix #8870: Use title node for the caption of toctreeTakeshi KOMIYA2021-04-091-1/+6
| | | | | | | | | | Since docutils-0.17, the caption node should not use for the non-figure nodes. Therefore, this replaces it by the title node.
* | refactor: Use PEP-526 based variable annotation (sphinx.writers)Takeshi KOMIYA2021-03-131-3/+3
| |
* | Merge branch '3.x' into master_with_merged_3.xjfbu2021-02-021-0/+2
|\ \ | |/
| * Merge branch '3.x' into 8446_escape_spaces_inside_desc_signaturesTakeshi KOMIYA2021-02-011-19/+21
| |\