summaryrefslogtreecommitdiff
path: root/sphinx/writers/html5.py
Commit message (Collapse)AuthorAgeFilesLines
* Allow multi-line object description signatures (#11011)TLouf2023-05-111-9/+75
| | | | | Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com> Co-authored-by: Jean-François B <2589111+jfbu@users.noreply.github.com> Co-authored-by: TLouf <loufthomas@gmail.com>
* Fix pytest style issuesAdam Turner2023-02-181-1/+1
|
* Fix COM812Adam Turner2023-02-181-1/+1
|
* Resolve Ruff SIM114 violationsAdam Turner2023-02-151-5/+4
|
* Undo parallel image changesAdam Turner2023-01-101-3/+3
|
* Make MyPy happyAdam Turner2023-01-021-3/+3
|
* Run pyupgrade (#11070)Adam Turner2023-01-021-5/+5
|
* Use PEP 604 typesAdam Turner2023-01-011-3/+3
|
* Use PEP 595 typesAdam Turner2023-01-011-3/+3
|
* Insert ``from __future__ import annotations``Adam Turner2023-01-011-0/+2
|
* 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-231-2/+2
|\ \ | |/ | | | | | | | | # Conflicts: # setup.py # sphinx/__init__.py
| * Shrink strict optional whitelist (HTML writers) (#10838)danieleades2022-09-201-2/+2
| |
| * Improve static typing strictness (#10569)danieleades2022-07-181-2/+2
| |
* | Remove deprecated items for Sphinx 6.0 (#10471)Adam Turner2022-06-161-33/+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 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 a mypy warningTakeshi KOMIYA2021-11-231-2/+2
|
* BUG: prevent automatic inline conversion by classEvan Bolyen2021-11-221-0/+4
|
* Fix #9710: html: Wrong styles for even/odd rows in nested tablesTakeshi KOMIYA2021-10-091-8/+28
|
* 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>
* Typo fix in sphinx.writers.html5 docstringLouis Maddox2021-07-181-1/+1
|
* 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.
| * Add HTML markup to the return type hint.Walter Doerwald2021-05-161-2/+2
| |
* | Provide more semantic structure for screen-readersJoe Nelson2021-06-171-1/+1
|/ | | | https://www.w3.org/WAI/WCAG21/Techniques/aria/ARIA12
* Decl styling, consistent monospaceJakob Lykke Andersen2021-04-121-4/+4
|
* Decl styling, make desc_inline nodeJakob Lykke Andersen2021-04-121-0/+6
| | | | Use the new node for cpp:expr