Files
OpenROAD/docs/revert-links.py
Song Luar 0aff237a5b [Docs] OR Review 2 (#4159)
* 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>
2024-08-27 10:36:18 -03:00

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")