Skip to content

Commit a35e936

Browse files
zkoppertCopilot
andcommitted
Fix RST TOC anchor ids to complete docutils 0.18 fix (#2081)
PR #2081 set auto_id_prefix: 'id' in lib/github/commands/rest2html to keep the pre-docutils-0.18 anchor id scheme, but the committed RST fixtures still held the docutils-0.18 default (toc-entry-N). The rendered output therefore never matched the fixtures, so test_rst, test_long.rst, and test_toc.rst failed on master and on every PR built from it. I regenerated README.rst.html, README.long.rst.html, and README.toc.rst.html against the CI-pinned docutils 0.22.4 so the fixtures use the idN scheme that the auto_id_prefix: 'id' setting actually produces, honoring #2081's intent. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Zack Koppert <zkoppert@github.com>
1 parent aca8395 commit a35e936

3 files changed

Lines changed: 31 additions & 31 deletions

File tree

test/markups/README.long.rst.html

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -8,38 +8,38 @@ <h1>Robot Framework 7.0</h1>
88
and possible bugs submitted to the <a href="https://github.com/robotframework/robotframework/issues">issue tracker</a>.</p>
99
<div id="contents">
1010
<ul>
11-
<li><a href="#installation" id="toc-entry-1">Installation</a></li>
12-
<li><a href="#most-important-enhancements" id="toc-entry-2">Most important enhancements</a><ul>
13-
<li><a href="#listener-enhancements" id="toc-entry-3">Listener enhancements</a></li>
14-
<li><a href="#native-var-syntax" id="toc-entry-4">Native <code>VAR</code> syntax</a></li>
15-
<li><a href="#mixed-argument-support-with-library-keywords" id="toc-entry-5">Mixed argument support with library keywords</a></li>
16-
<li><a href="#json-result-format" id="toc-entry-6">JSON result format</a></li>
17-
<li><a href="#argument-conversion-enhancements" id="toc-entry-7">Argument conversion enhancements</a></li>
18-
<li><a href="#tags-set-globally-can-be-removed-using-tag-syntax" id="toc-entry-8">Tags set globally can be removed using <code>-tag</code> syntax</a></li>
19-
<li><a href="#dynamic-and-hybrid-library-apis-support-asynchronous-execution" id="toc-entry-9">Dynamic and hybrid library APIs support asynchronous execution</a></li>
20-
<li><a href="#timestamps-in-result-model-and-output-xml-use-standard-format" id="toc-entry-10">Timestamps in result model and output.xml use standard format</a></li>
21-
<li><a href="#dark-mode-support-to-report-and-log" id="toc-entry-11">Dark mode support to report and log</a></li>
11+
<li><a href="#installation" id="id113">Installation</a></li>
12+
<li><a href="#most-important-enhancements" id="id114">Most important enhancements</a><ul>
13+
<li><a href="#listener-enhancements" id="id115">Listener enhancements</a></li>
14+
<li><a href="#native-var-syntax" id="id116">Native <code>VAR</code> syntax</a></li>
15+
<li><a href="#mixed-argument-support-with-library-keywords" id="id117">Mixed argument support with library keywords</a></li>
16+
<li><a href="#json-result-format" id="id118">JSON result format</a></li>
17+
<li><a href="#argument-conversion-enhancements" id="id119">Argument conversion enhancements</a></li>
18+
<li><a href="#tags-set-globally-can-be-removed-using-tag-syntax" id="id120">Tags set globally can be removed using <code>-tag</code> syntax</a></li>
19+
<li><a href="#dynamic-and-hybrid-library-apis-support-asynchronous-execution" id="id121">Dynamic and hybrid library APIs support asynchronous execution</a></li>
20+
<li><a href="#timestamps-in-result-model-and-output-xml-use-standard-format" id="id122">Timestamps in result model and output.xml use standard format</a></li>
21+
<li><a href="#dark-mode-support-to-report-and-log" id="id123">Dark mode support to report and log</a></li>
2222
</ul>
2323
</li>
24-
<li><a href="#backwards-incompatible-changes" id="toc-entry-12">Backwards incompatible changes</a><ul>
25-
<li><a href="#python-3-6-and-3-7-are-no-longer-supported" id="toc-entry-13">Python 3.6 and 3.7 are no longer supported</a></li>
26-
<li><a href="#changes-to-output-xml" id="toc-entry-14">Changes to output.xml</a></li>
27-
<li><a href="#changes-to-result-model" id="toc-entry-15">Changes to result model</a></li>
28-
<li><a href="#changes-to-parsing-model" id="toc-entry-16">Changes to parsing model</a></li>
29-
<li><a href="#changes-to-libdoc-spec-files" id="toc-entry-17">Changes to Libdoc spec files</a></li>
30-
<li><a href="#changes-to-selecting-tests-with-suite-test-and-include" id="toc-entry-18">Changes to selecting tests with <code>--suite</code>, <code>--test</code> and <code>--include</code></a></li>
31-
<li><a href="#other-backwards-incompatible-changes" id="toc-entry-19">Other backwards incompatible changes</a></li>
24+
<li><a href="#backwards-incompatible-changes" id="id124">Backwards incompatible changes</a><ul>
25+
<li><a href="#python-3-6-and-3-7-are-no-longer-supported" id="id125">Python 3.6 and 3.7 are no longer supported</a></li>
26+
<li><a href="#changes-to-output-xml" id="id126">Changes to output.xml</a></li>
27+
<li><a href="#changes-to-result-model" id="id127">Changes to result model</a></li>
28+
<li><a href="#changes-to-parsing-model" id="id128">Changes to parsing model</a></li>
29+
<li><a href="#changes-to-libdoc-spec-files" id="id129">Changes to Libdoc spec files</a></li>
30+
<li><a href="#changes-to-selecting-tests-with-suite-test-and-include" id="id130">Changes to selecting tests with <code>--suite</code>, <code>--test</code> and <code>--include</code></a></li>
31+
<li><a href="#other-backwards-incompatible-changes" id="id131">Other backwards incompatible changes</a></li>
3232
</ul>
3333
</li>
34-
<li><a href="#deprecations" id="toc-entry-20">Deprecations</a><ul>
35-
<li><a href="#return-setting" id="toc-entry-21"><code>[Return]</code> setting</a></li>
36-
<li><a href="#singular-section-headers" id="toc-entry-22">Singular section headers</a></li>
37-
<li><a href="#deprecated-attributes-in-parsing-running-and-result-models" id="toc-entry-23">Deprecated attributes in parsing, running and result models</a></li>
38-
<li><a href="#other-deprecated-features" id="toc-entry-24">Other deprecated features</a></li>
34+
<li><a href="#deprecations" id="id132">Deprecations</a><ul>
35+
<li><a href="#return-setting" id="id133"><code>[Return]</code> setting</a></li>
36+
<li><a href="#singular-section-headers" id="id134">Singular section headers</a></li>
37+
<li><a href="#deprecated-attributes-in-parsing-running-and-result-models" id="id135">Deprecated attributes in parsing, running and result models</a></li>
38+
<li><a href="#other-deprecated-features" id="id136">Other deprecated features</a></li>
3939
</ul>
4040
</li>
41-
<li><a href="#acknowledgements" id="toc-entry-25">Acknowledgements</a></li>
42-
<li><a href="#full-list-of-fixes-and-enhancements" id="toc-entry-26">Full list of fixes and enhancements</a></li>
41+
<li><a href="#acknowledgements" id="id137">Acknowledgements</a></li>
42+
<li><a href="#full-list-of-fixes-and-enhancements" id="id138">Full list of fixes and enhancements</a></li>
4343
</ul>
4444
</div>
4545
<a name="installation"></a>

test/markups/README.rst.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ <h2 id="subtitle">Subtitle</h2>
44
<div id="table-of-contents">
55
<p><a href="#top">Table of Contents</a></p>
66
<ul>
7-
<li><a href="#header-2" id="toc-entry-1">Header 2</a></li>
8-
<li><a href="#field-list" id="toc-entry-2">Field list</a></li>
7+
<li><a href="#header-2" id="id1">Header 2</a></li>
8+
<li><a href="#field-list" id="id2">Field list</a></li>
99
</ul>
1010
</div>
1111
<a name="header-2"></a>

test/markups/README.toc.rst.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<div id="contents">
22
<p><a href="#top">Contents</a></p>
33
<ul>
4-
<li><a href="#introduction" id="toc-entry-1">1&nbsp;&nbsp;&nbsp;Introduction</a><ul>
5-
<li><a href="#what-is-pycparser" id="toc-entry-2">1.1&nbsp;&nbsp;&nbsp;What is pycparser?</a></li>
6-
<li><a href="#what-is-it-good-for" id="toc-entry-3">1.2&nbsp;&nbsp;&nbsp;What is it good for?</a></li>
4+
<li><a href="#introduction" id="id1">1&nbsp;&nbsp;&nbsp;Introduction</a><ul>
5+
<li><a href="#what-is-pycparser" id="id2">1.1&nbsp;&nbsp;&nbsp;What is pycparser?</a></li>
6+
<li><a href="#what-is-it-good-for" id="id3">1.2&nbsp;&nbsp;&nbsp;What is it good for?</a></li>
77
</ul>
88
</li>
99
</ul>

0 commit comments

Comments
 (0)