summaryrefslogtreecommitdiff
path: root/tests/test_build_html.py
Commit message (Collapse)AuthorAgeFilesLines
* html builder: Append CRC32 checksum to asset URIs (#11415)Adam Turner2023-05-111-11/+24
|
* Remove HTML 4 support (#11385)Adam Turner2023-04-281-12/+10
|
* Revert "Support and prefer ``.jinja`` to ``_t`` for static templates ↵James Addison2023-04-231-1/+1
| | | | | (#11165)" (#11329) This reverts commit 5d13215b58f93c6be8255ef2e3e20836508c7d47.
* Support and prefer ``.jinja`` to ``_t`` for static templates (#11165)James Addison2023-04-071-1/+1
| | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* Include source in highlighting warnings (#11150)Jeremy Maitin-Shepard2023-03-171-1/+1
| | | | | | | | | | | | | If pygments fails to lex a source string as the specified highlight language, Sphinx prints a warning. Previously, that warning did not include the actual source text, although it does include location information. However, in some cases the location information may be missing, there may be multiple highlighted literals on the same line, or the rST is automatically generated somehow. In such cases, it can be difficult to determine the source text that led to the error. With this change, the source text is included in the warning.
* Unescape quotation marks where possibleAdam Turner2023-02-181-1/+1
|
* Fix pytest style issuesAdam Turner2023-02-181-11/+7
|
* Fix COM812Adam Turner2023-02-181-3/+3
|
* Undo parallel image changesAdam Turner2023-01-101-3/+0
|
* Fix copying images under parallel execution (#11100)Adam Turner2023-01-071-0/+19
|
* Cache doctrees more efficientlyAdam Turner2023-01-041-1/+1
|
* Run pyupgrade (#11070)Adam Turner2023-01-021-1/+1
|
* Remove obsolete HTML keyword ``link rel="shortcut"`` (#11069)Rotzbua2023-01-011-1/+1
| | | | | | | The link relationship keyword `shortcut` does not appear in the HTML 5 specification [1]. It was used by historic browsers (i.e. Internet Explorer 6) which Sphinx no longer supports. [1]: HTML5 Specification, 4.6.7.8 Link type "icon", https://html.spec.whatwg.org/#rel-icon
* Make copyright text inclusion test date-independentAdam Turner2023-01-011-1/+1
| | | | Improve clarity on what the test is looking for in the footer
* Run the ``pyupgrade`` toolAdam Turner2022-10-171-3/+3
|
* Revert ``html_codeblock_linenos_style`` removal (#10922)Adam Turner2022-10-161-2/+15
|
* Merge branch '5.x'Adam Turner2022-10-161-0/+12
|\ | | | | | | | | | | | | | | # Conflicts: # .github/workflows/main.yml # CHANGES # sphinx/__init__.py # sphinx/domains/c.py
| * URI-escape image filenames (#10268)Eric Wieser2022-10-131-0/+9
| | | | | | | | | | | | | | | | 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>
| * Revert "Fix detection for out of date files (#9360)" (#10908)Martin Liška2022-10-131-0/+2
| | | | | | | | | | | | | | This reverts commit b1390c4191319e75d14ce3e6e73ef43c31d981b4. The change is reverted because some builders don't have fine-grained support for outdated docs: https://github.com/sphinx-doc/sphinx/issues/10903#issuecomment-1273199352
| * Fix detection for out of date files (#9360)Martin Liška2022-10-051-2/+0
| | | | | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
| * Extend cross referencing options with values (#10883)Martin Liška2022-10-021-0/+3
| | | | | | | | | | | | | | | | This change means that text following `=`, `[=`, or ` ` is ignored when searching for a corresponding option directive to an option cross reference role. These are commonly used options, for example `--profile=path`, `--profile[=path]` or `--profile path`. Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* | Merge branch '5.x'Adam Turner2022-09-301-0/+9
|\ \ | |/ | | | | | | # Conflicts: # sphinx/locale/__init__.py
| * extend option directive syntaxMartin Liska2022-09-271-0/+9
| | | | | | | | One can cross-reference an option value: :option:`--module=foobar`.
* | Increase minimum Docutils to 0.18Adam Turner2022-09-271-35/+1
| |
* | Increase minimum Docutils to 0.17Adam Turner2022-09-271-13/+5
| |
* | Merge branch '5.x'Adam Turner2022-09-251-1/+12
|\ \ | |/ | | | | | | | | | | | | | | | | # Conflicts: # CHANGES # doc/conf.py # sphinx/__init__.py # sphinx/builders/html/__init__.py # sphinx/domains/python.py # tests/test_build_html.py
| * Split out `sphinx_highlight.js`Adam Turner2022-09-241-1/+2
| |
| * Deprecate HTML 4 support (#10843)Adam Turner2022-09-231-0/+10
| |
* | Merge branch '5.x'Adam Turner2022-09-091-9/+1
|\ \ | |/ | | | | | | | | | | | | | | # Conflicts: # setup.py # sphinx/application.py # sphinx/environment/__init__.py # sphinx/ext/autodoc/directive.py # tests/test_build_html.py
| * Remove Pygments compatability code (#10812)Adam Turner2022-09-091-16/+5
| |
* | Merge branch '5.x'Adam Turner2022-07-171-6/+15
|\ \ | |/
| * Allow specifying multiple CSS files in themes (#10465)Takeshi KOMIYA2022-07-171-0/+9
| | | | | | Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
| * Lint with `flake8-bugbear` (#10602)danieleades2022-07-121-6/+6
| | | | | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* | Merge branch '5.x' into masterJean-François B2022-06-301-0/+25
|\ \ | |/ | | | | | | | | | | | | Resolved merge conflicts: sphinx/ext/extlinks.py sphinx/ext/napoleon/docstring.py (and removed from the latter a now unused import for flake8 F401 compliance)
| * Fix parsing of options with enabled option_emphasise_placeholders (#10565)Martin Liška2022-06-191-0/+5
| |
| * Fix usage of enable_search_shortcuts theme config value.marxin2022-06-171-0/+20
| | | | | | | | The option value is not properly propagated to Java script.
* | Merge branch '5.x'Adam Turner2022-06-161-1/+23
|\ \ | |/ | | | | | | | | | | # Conflicts: # .github/workflows/builddoc.yml # .github/workflows/lint.yml # sphinx/registry.py
| * Show the repr of the value in some warnings (#10439)Ezio Melotti2022-06-161-1/+1
| | | | | | Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
| * Allow emphasising placeholders in `option` directives (#10366)Martin Liška2022-06-161-0/+22
| | | | | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* | Remove deprecated items for Sphinx 6.0 (#10471)Adam Turner2022-06-161-19/+3
|/
* Merge branch '4.x' into 5.xTakeshi KOMIYA2022-05-061-0/+24
|\
| * Merge pull request #10251 from jbms/fix-inline-syntax-highlightTakeshi KOMIYA2022-05-061-0/+24
| |\ | | | | | | Make code role highlighting consistent with code-block directive
| | * Make code role highlighting consistent with code-block directiveJeremy Maitin-Shepard2022-03-191-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | `.write_text(...)` -> `.write_text(..., encoding='utf8')`Adam Turner2022-04-271-2/+2
| | |
* | | `.read_text()` -> `.read_text(encoding='utf8')`Adam Turner2022-04-271-29/+29
| | |
* | | Use docutils.__version_info__ directlyAdam Turner2022-04-221-1/+2
| | |
* | | Merge branch '4.x'Takeshi KOMIYA2022-03-271-2/+2
|\ \ \ | |/ /
| * | Include trailing / in PEP URL to avoid 301 redirectHugo van Kemenade2022-03-241-2/+2
| | |
* | | Merge branch '4.x'Takeshi KOMIYA2022-03-191-11/+3
|\ \ \ | |/ /
| * | environment: Update default value for pep_base_urlMichal Čihař2022-03-161-2/+2
| | | | | | | | | | | | | | | | | | This matches docutils change in https://sourceforge.net/p/docutils/code/9045/ Fixes #10253