From a5d7bbe59a0c15a162b8f37207c8e4aa34ce10b5 Mon Sep 17 00:00:00 2001 From: Satana de Sant'Ana Date: Mon, 29 Jun 2026 22:13:16 +0100 Subject: [PATCH] Fix id names in rst renders after docutils 0.18 Fix id names changing in rst renders with the upgrade to docutils 0.18 by enforcing the old default value `id` for `auto_id_prefix`. See: https://docutils.sourceforge.io/RELEASE-NOTES.html#release-0-18-2021-10-26 co-authored-by: Tyler Dixon --- lib/github/commands/rest2html | 1 + test/markups/README.long.rst.html | 52 +++++++++++++++---------------- test/markups/README.rst.html | 4 +-- 3 files changed, 29 insertions(+), 28 deletions(-) diff --git a/lib/github/commands/rest2html b/lib/github/commands/rest2html index c6fc663e..0c79bbb4 100755 --- a/lib/github/commands/rest2html +++ b/lib/github/commands/rest2html @@ -160,6 +160,7 @@ SETTINGS = { 'syntax_highlight': 'none', 'math_output': 'latex', 'field_name_limit': 50, + 'auto_id_prefix': 'id', } default_highlight_language = None diff --git a/test/markups/README.long.rst.html b/test/markups/README.long.rst.html index 7f9e1ac3..e992d666 100644 --- a/test/markups/README.long.rst.html +++ b/test/markups/README.long.rst.html @@ -46,7 +46,7 @@

Robot Framework 7.0

-

Installation

+

Installation

If you have pip installed, just run

 pip install --upgrade robotframework
@@ -59,7 +59,7 @@ 

Installation

from PyPI and install it manually. For more details and other installation approaches, see the installation instructions.

-

Most important enhancements

+

Most important enhancements

If you are interested to learn more about the new features in Robot Framework 7.0, join the RoboCon conference in February, 2024. Pekka Klärck, Robot Framework @@ -71,7 +71,7 @@

Most important enhancements

used for future Robot Framework development.

-

Listener enhancements

+

Listener enhancements

Robot Framework's listener interface is a very powerful mechanism to get notifications about various events during execution and it also allows modifying data and results on the fly. It is not typically directly used by normal Robot @@ -179,7 +179,7 @@

Paths are passed to version 3 listeners as pathlib.Path objects paths were strings, but nowadays listener version 3 methods get them as more convenient pathlib.Path objects.

-

Native VAR syntax

+

Native VAR syntax

The new VAR syntax (#3761) makes it possible to create local variables as well as global, suite and test/task scoped variables dynamically during execution. The motivation is to have a more convenient syntax than using @@ -245,7 +245,7 @@

Native VAR syntax

IF 1 > 0 VAR ${x} true value ELSE VAR ${x} false value
-

Mixed argument support with library keywords

+

Mixed argument support with library keywords

User keywords got support to use both embedded and normal arguments in Robot Framework 6.1 (#4234) and now that support has been added also to library keywords (#4710). The syntax works so, that if a function or method implementing a keyword @@ -266,7 +266,7 @@

Mixed argument support with library keywords

Number of dogs should be 3 -

JSON result format

+

JSON result format

Robot Framework 6.1 added support to convert test/task data to JSON and back and Robot Framework 7.0 extends the JSON serialization support to execution results (#4847). One of the core use cases for data serialization was making it easy to @@ -293,7 +293,7 @@

JSON result format

The plan is to enhance the support for JSON output files in the future so that they could be created already during execution. For more details see issue #3423.

-

Argument conversion enhancements

+

Argument conversion enhancements

Automatic argument conversion is a very powerful feature that library developers can use to avoid converting arguments manually and to get more useful Libdoc documentation. There are two important new enhancements to it.

@@ -340,7 +340,7 @@

Support "stringified" types like 'list[int]' and 'int |

These stringified types are also compatible with the Remote library API and other scenarios where using actual types is not possible.

-

Tags set globally can be removed using -tag syntax

+

Tags set globally can be removed using -tag syntax

Individual tests and keywords can nowadays remove tags that have been set in the Settings section with Test Tags or Keyword Tags settings by using the -tag syntax with their own [Tags] setting (#4374). For example, @@ -364,7 +364,7 @@

Tags set globally can be removed using -tag#4365) and using the new -tag syntax is recommended. With keywords there was no similar functionality earlier.

-

Dynamic and hybrid library APIs support asynchronous execution

+

Dynamic and hybrid library APIs support asynchronous execution

Dynamic and hybrid libraries nowadays support asynchronous execution. In practice the special methods like get_keyword_names and run_keyword can be implemented as async methods (#4803).

@@ -372,7 +372,7 @@

Dynamic and hybrid library APIs support asynchronous 6.1 (#4089). A bug related to handling asynchronous keywords if execution is stopped gracefully has also been fixed (#4808).

-

Timestamps in result model and output.xml use standard format

+

Timestamps in result model and output.xml use standard format

Timestamps used in the result model and stored to the output.xml file used custom format like 20231107 19:57:01.123 earlier. Non-standard formats are seldom a good idea, and in this case parsing the custom format turned out to be slow @@ -404,18 +404,18 @@

Timestamps in result model and output.xml use standa that process timestamps. This is discussed more in Changes to output.xml section below along with other output.xml changes.

-

Dark mode support to report and log

+

Dark mode support to report and log

Report and log got a new dark mode (#3725). It is enabled automatically based on browser and operating system preferences, but there is also a toggle to switch between the modes.

-

Backwards incompatible changes

+

Backwards incompatible changes

-

Python 3.6 and 3.7 are no longer supported

+

Python 3.6 and 3.7 are no longer supported

Robot Framework 7.0 requires Python 3.8 or newer (#4294). The last version that supports Python 3.6 and 3.7 is Robot Framework 6.1.1.

-

Changes to output.xml

+

Changes to output.xml

The output.xml file has changed in different ways making Robot Framework 7.0 incompatible with external tools processing output.xml files until these tools are updated. We try to avoid this kind of breaking changes, but in this case @@ -485,7 +485,7 @@

Schema updates

The output.xml schema has been updated and can be found via https://github.com/robotframework/robotframework/tree/master/doc/schema/.

-

Changes to result model

+

Changes to result model

There have been some changes to the result model that unfortunately affect external tools using it. The main motivation for these changes has been cleaning up the model before creating a JSON representation for it (#4847).

@@ -533,7 +533,7 @@

Deprecated attributes have been removed

Additionally, TestSuite.keywords and TestCase.keywords have been removed from the execution model.

-

Changes to parsing model

+

Changes to parsing model

There have been some changes also to the parsing model:

-

Changes to Libdoc spec files

+

Changes to Libdoc spec files

The following deprecated constructs have been removed from Libdoc spec files (#4667):