[LLVM][docs] Finish MyST migration for remaining docs (batch 11) #223100
Thank you for working on this! Since we're both using LLMs here, I'm listing findings in one place so you can feed this directly to your agent rather than clicking through inline diff threads:
1. llvm/docs/SecurityTransparencyReports.md (lines 111–161, ## 2023 section):
When the ## 2023 list was unindented from a blockquote to a native list, the <...> autolink brackets were dropped around all 26 https://... URLs in that section (unlike ## 2022 and ## 2024). Since MyST linkify is off in llvm/docs/conf.py, those 26 URLs currently render as non-clickable plain text. Please wrap the bare URLs in ## 2023 in <https://...> (and wrap __builtin_unreachable() on line 123 in backticks).
2. llvm/docs/XRay.md (lines 297–298):
The original .rst link was missing a trailing _, so rst2myst turned it into {title-reference} instead of a link:
- Replace {title-reference}Chrome Trace Viewer (catapult)\n <https://github.com/catapult-project/catapult>` with Chrome Trace Viewer (catapult).
3. Leftover {title-reference} roles that should be inline code ( ... ):
- llvm/docs/Security.md (line 29): {title-reference} ${full_name} (${affiliation}) [${github_username}] -> ${full_name} (${affiliation}) [${github_username}] llvm/docs/TransformMetadata.md
- (line 393): {title-reference}B[0] -> B[0] llvm/docs/XRay.md
- (line 86): {title-reference}libclang_rt.xray-{arch} where {title-reference}{arch} -> libclang_rt.xray-{arch} where {arch}
4. *Single-backtick code identifiers converted to italics instead of code :
- llvm/docs/StackMaps.md (lines 47–50): GCFunctionMetadata (x2) and GCRoot -> GCFunctionMetadata and GCRoot llvm/docs/TableGen/ProgRef.md
- :int
- Lines 593–594: and list\<int> -> int and list<int> deftype
- Line 1349: -> deftype dump
- Line 1420: -> dump !repr
- Line 1429: -> !repr [0, 1, 2, 3]
- Lines 2073–2075: , [1, 2, 3], [0, 2]* -> [0, 1, 2, 3] , [1, 2, 3] , [0, 2] `
Good idea, also had a bot chew on this:
llvm/docs/SecurityTransparencyReports.md (lines 111–161, ## 2023 section):
around all 26 https://... URLs
My bot counted 28. There are 2 that are immediately followed by a period, so perhaps check for that.
Single-backtick code identifiers converted to italics instead of code:
More cases of that:
1. Lines 593–594 (m, n, i, j, ls):
#issuecomment-5733523561 flagged int and list\<int> on ProgRef.md:593-594, but missed m, n, i, j, and ls on the same two lines
(which are already formatted as inline code m, n, i, j, ls in the immediately preceding list on lines 587–590):
--- a/llvm/docs/TableGen/ProgRef.md
+++ b/llvm/docs/TableGen/ProgRef.md
@@ -593,2 +593,2 @@
-The type of m and n should be int.
-The type of i, j, and ls should be either int or list\<int>.
+The type of m and n should be int.
+The type of i, j, and ls should be either int or list<int>.
2. Line 554 (Type):
In ProgRef.md:554, Type refers to the grammar production Type from the !isa<Type> / bang-operator syntax block right above it (and line 555
uses Type in backticks):
--- a/llvm/docs/TableGen/ProgRef.md
+++ b/llvm/docs/TableGen/ProgRef.md
@@ -554,2 +554,2 @@
-The Type is only accepted for certain bang operators, and must not be
-specified with other bang operators. When Type is omitted, the curly braces
+The Type is only accepted for certain bang operators, and must not be
+specified with other bang operators. When Type is omitted, the curly braces
3. Lines 298 & 429 (bits<n>):
In ProgRef.md:298 and ProgRef.md:429, `bits< n > was converted to bits<n> (adjacent inline code spans sandwiching italics).
While valid CommonMark, it renders with mixed <code class="docutils literal">bits<</code><em>n</em><code class="docutils literal">></code>
styling.
---
One indented syntax line at ProgRef.md:1525 is still a > blockquote instead of a code block or unindented syntax line:
--- a/llvm/docs/TableGen/ProgRef.md
+++ b/llvm/docs/TableGen/ProgRef.md
@@ -1523,3 +1523,3 @@
The syntax of a dag instance is:(
-> operator argument1, argument2, ... )(
+ operator argument1, argument2, ... )`
Thanks for the review, fixed!
I think many of these differences were not visible in the pixel diff because they are either invisible in the HTML ({title-reference}) or they are hidden in the big pixel diff from the blockquote removal, and that was my main quality evaluation criteria: Does it render the same.
Anyway, I went through a new diff, I think it looks good. I'm publishing new HTML, but that will take 15min, FYI.
LGTM. Thank you for the update!
kazutakahirata
rnk
Migration notes:
TableGen/ProgRefwhich uses EBNF production lists to define grammars. This apparently doesn't work in myst.Projectsare native definition lists.Tracking issue: #201242
See the [migration guide] for more information.
[migration guide]: https://llvm.org/docs/SphinxQuickstartTemplate.html#markdown-migration-guidelines
This is a stacked PR based on #223098, which is a standalone commit that
renames .rst -> .md before this PR lands for history preservation purposes.
This was prepared with rst2myst plus LLM-assisted cleanup.