|
78 | 78 | "docs/releases/PostAlpha2.1BranchMethodology.md", |
79 | 79 | "main", |
80 | 80 | "index.md", |
| 81 | + "contrib/GitGuideAdapter.md", |
81 | 82 | ] |
82 | 83 |
|
83 | 84 | # The name of the Pygments (syntax highlighting) style to use. |
@@ -162,14 +163,22 @@ def setup(app): |
162 | 163 | url = "https://raw.githubusercontent.com/The-OpenROAD-Project/OpenROAD/master/docs/index.md" |
163 | 164 | get_file_from_url(url, "SupportedOS.md") |
164 | 165 |
|
165 | | - # edit OpenROAD to OpenROAD-flow-scripts for GitGuide |
| 166 | + # Adapt the downloaded GitGuide for ORFS: rename references and inject |
| 167 | + # ORFS-specific submodule forking instructions from GitGuideAdapter.md. |
166 | 168 | with open("contrib/GitGuide.md", "r") as f: |
167 | 169 | content = f.read() |
| 170 | + content = ( |
| 171 | + content.replace( |
| 172 | + "user/Build.md", "../index.md#build-or-installing-orfs-dependencies" |
| 173 | + ) |
| 174 | + .replace("OpenROAD", "OpenROAD-flow-scripts") |
| 175 | + .replace("The-OpenROAD-flow-scripts", "The-OpenROAD") |
| 176 | + ) |
| 177 | + with open("contrib/GitGuideAdapter.md", "r") as f: |
| 178 | + adapter_content = f.read() |
168 | 179 | content = content.replace( |
169 | | - "user/Build.md", "../index.md#build-or-installing-orfs-dependencies" |
| 180 | + "## Creating a branch", adapter_content + "\n## Creating a branch" |
170 | 181 | ) |
171 | | - content = content.replace("OpenROAD", "OpenROAD-flow-scripts") |
172 | | - content = content.replace("The-OpenROAD-flow-scripts", "The-OpenROAD") |
173 | 182 | with open("contrib/GitGuide.md", "w") as f: |
174 | 183 | f.write(content) |
175 | 184 |
|
|
0 commit comments