mirror of
https://github.com/The-OpenROAD-Project/OpenROAD.git
synced 2026-06-02 01:08:34 +08:00
* update os matrix and reorder build instructions to put prebuilt>docker>local * prototype for tabbed content for openroad APIs * add sphinx_tabs * Updated docs requirements.txt * Now displays OpenROAD APIs nicely. Signed-off-by: luarss <39641663+luarss@users.noreply.github.com> Signed-off-by: Vitor Bandeira <vvbandeira@users.noreply.github.com> Signed-off-by: Song Luar <espsluar@gmail.com> Co-authored-by: Vitor Bandeira <vvbandeira@users.noreply.github.com>
15 lines
376 B
Python
Executable File
15 lines
376 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
|
|
def swap_prefix(file, old, new):
|
|
with open(file, "r") as f:
|
|
lines = f.read()
|
|
lines = lines.replace(old, new)
|
|
with open(file, "wt") as f:
|
|
f.write(lines)
|
|
|
|
|
|
for filename in ["../README.md", "../README2.md"]:
|
|
swap_prefix(filename, "(../", "(docs/")
|
|
swap_prefix(filename, "```{mermaid}\n:align: center\n", "```mermaid")
|