[DOC] refactor openlane docs + support it in make README.rst
diff --git a/Makefile b/Makefile
index 5c27250..4747b95 100644
--- a/Makefile
+++ b/Makefile
@@ -245,7 +245,13 @@
endif
# Make README.rst
-README.rst: README.src.rst docs/source/getting_started.rst docs/source/tool_versioning.rst Makefile
+README.rst: README.src.rst docs/source/getting_started.rst docs/source/tool_versioning.rst openlane/README.src.rst docs/source/caravel_with_openlane.rst Makefile
pip -q install rst_include && \
rm -f README.rst && \
- rst_include include README.src.rst - > README.rst
\ No newline at end of file
+ rst_include include README.src.rst - | sed -e's@\.\/\_static@\/docs\/source\/\_static@g' > README.rst && \
+ rst_include include openlane/README.src.rst - | \
+ sed \
+ -e's@https://github.com/efabless/caravel/blob/master/verilog@../verilog@g' \
+ -e's@:ref:`getting-started`@`README.rst <../README.rst>`__@g' \
+ -e's@https://github.com/efabless/caravel/blob/master/openlane/@./@g' \
+ > openlane/README.rst
\ No newline at end of file