[Openmp-commits] [lldb] [llvm] [openmp] [docs] Rename leftover rst docs to md (PR #234786)

Reid Kleckner via Openmp-commits openmp-commits at lists.llvm.org
Thu Oct 22 15:54:34 PDT 2026


https://github.com/rnk created https://github.com/llvm/llvm-project/pull/234786

Tracking issue: #201242
See the [migration guide] for more information. 

[migration guide]: https://llvm.org/docs/SphinxQuickstartTemplate.html#markdown-migration-guidelines

This is the initial straight rename commit. It will probably break the docs build, but it has to be a separate PR for blame preservation purposes.

Besides the renames, this updates the references that name the old files: the lldb help test (which reads the man page source), a comment in the lldb driver option definitions, `llvm/utils/lit/setup.py`, and a comment in a GN build file. The lit README is also lit's PyPI `long_description`, so `setup.py` now reads `README.md`.


>From 0f100711afe904d6ac02b7fd8cda4d0c7fe20829 Mon Sep 17 00:00:00 2001
From: Reid Kleckner <rkleckner at nvidia.com>
Date: Thu, 22 Oct 2026 18:49:53 +0000
Subject: [PATCH] [docs] Rename leftover rst docs to md

Rename the remaining standalone reStructuredText documents (the lldb man
pages, the VariableNames proposal, and the lit, gn, cmake and OpenMP
Modules READMEs) to .md ahead of converting them to Markdown, and update
the references that name the old files: the lldb help test, the lldb
driver option comment, lit's setup.py and a GN build file comment.

This is a straight rename, so it is expected to break the docs build
until the follow-up conversion lands.

LLM-aided
---
 cmake/{README.rst => README.md}                             | 0
 lldb/docs/man/{lldb-server.rst => lldb-server.md}           | 0
 lldb/docs/man/{lldb.rst => lldb.md}                         | 0
 lldb/test/Shell/Driver/TestHelp.test                        | 2 +-
 lldb/tools/driver/Options.td                                | 2 +-
 llvm/docs/Proposals/{VariableNames.rst => VariableNames.md} | 0
 llvm/utils/gn/{README.rst => README.md}                     | 0
 llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn   | 2 +-
 llvm/utils/lit/{README.rst => README.md}                    | 0
 llvm/utils/lit/setup.py                                     | 2 +-
 openmp/tools/Modules/{README.rst => README.md}              | 0
 11 files changed, 4 insertions(+), 4 deletions(-)
 rename cmake/{README.rst => README.md} (100%)
 rename lldb/docs/man/{lldb-server.rst => lldb-server.md} (100%)
 rename lldb/docs/man/{lldb.rst => lldb.md} (100%)
 rename llvm/docs/Proposals/{VariableNames.rst => VariableNames.md} (100%)
 rename llvm/utils/gn/{README.rst => README.md} (100%)
 rename llvm/utils/lit/{README.rst => README.md} (100%)
 rename openmp/tools/Modules/{README.rst => README.md} (100%)

diff --git a/cmake/README.rst b/cmake/README.md
similarity index 100%
rename from cmake/README.rst
rename to cmake/README.md
diff --git a/lldb/docs/man/lldb-server.rst b/lldb/docs/man/lldb-server.md
similarity index 100%
rename from lldb/docs/man/lldb-server.rst
rename to lldb/docs/man/lldb-server.md
diff --git a/lldb/docs/man/lldb.rst b/lldb/docs/man/lldb.md
similarity index 100%
rename from lldb/docs/man/lldb.rst
rename to lldb/docs/man/lldb.md
diff --git a/lldb/test/Shell/Driver/TestHelp.test b/lldb/test/Shell/Driver/TestHelp.test
index 703000b6452e96..aede361c935e98 100644
--- a/lldb/test/Shell/Driver/TestHelp.test
+++ b/lldb/test/Shell/Driver/TestHelp.test
@@ -1,5 +1,5 @@
 RUN: %lldb --help | FileCheck %s
-RUN: cat %S/../../../docs/man/lldb.rst | FileCheck %s
+RUN: cat %S/../../../docs/man/lldb.md | FileCheck %s
 
 CHECK: ATTACHING
 CHECK: --attach-name
diff --git a/lldb/tools/driver/Options.td b/lldb/tools/driver/Options.td
index e8f1bd993176ea..a157ff1eeace26 100644
--- a/lldb/tools/driver/Options.td
+++ b/lldb/tools/driver/Options.td
@@ -5,7 +5,7 @@ class S<string name> : Separate<["--", "-"], name>;
 class R<list<string> prefixes, string name>
     : Option<prefixes, name, KIND_REMAINING_ARGS>;
 
-// Please keep this in sync with the man page in docs/man/lldb.rst
+// Please keep this in sync with the man page in docs/man/lldb.md
 
 // Attaching options.
 def grp_attach : OptionGroup<"attaching">, HelpText<"ATTACHING">;
diff --git a/llvm/docs/Proposals/VariableNames.rst b/llvm/docs/Proposals/VariableNames.md
similarity index 100%
rename from llvm/docs/Proposals/VariableNames.rst
rename to llvm/docs/Proposals/VariableNames.md
diff --git a/llvm/utils/gn/README.rst b/llvm/utils/gn/README.md
similarity index 100%
rename from llvm/utils/gn/README.rst
rename to llvm/utils/gn/README.md
diff --git a/llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn b/llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn
index 051d8425756997..229dbabe764504 100644
--- a/llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn
@@ -28,7 +28,7 @@ import("//llvm/version.gni")
 # to keep the gn build close to the cmake build.
 
 # Other than in the cmake build, header generation doesn't do any feature
-# checking. See also "Philosophy" in llvm/utils/gn/README.rst.
+# checking. See also "Philosophy" in llvm/utils/gn/README.md.
 
 ##############################################################################
 # config.h, llvm-config.h, abi-breaking.h
diff --git a/llvm/utils/lit/README.rst b/llvm/utils/lit/README.md
similarity index 100%
rename from llvm/utils/lit/README.rst
rename to llvm/utils/lit/README.md
diff --git a/llvm/utils/lit/setup.py b/llvm/utils/lit/setup.py
index b11e3eafb2a354..51b705e3cd7e69 100644
--- a/llvm/utils/lit/setup.py
+++ b/llvm/utils/lit/setup.py
@@ -12,7 +12,7 @@
 
 import lit
 
-with open("README.rst", "r", encoding="utf-8") as f:
+with open("README.md", "r", encoding="utf-8") as f:
     long_description = f.read()
 
 setup(
diff --git a/openmp/tools/Modules/README.rst b/openmp/tools/Modules/README.md
similarity index 100%
rename from openmp/tools/Modules/README.rst
rename to openmp/tools/Modules/README.md



More information about the Openmp-commits mailing list