ci(docs) replace use of sed with proper configuration variables

This commit is contained in:
embeddedt
2022-05-09 13:28:06 -04:00
parent bae6bc08e0
commit 1816fa576c
114 changed files with 17 additions and 232 deletions

View File

@@ -32,14 +32,8 @@ ex.exec()
urlpath = re.sub('release/', '', br)
# Be sure the GitHub links point to the right branch
f = open("header.rst", "w")
f.write(".. |github_link_base| replace:: https://github.com/lvgl/lvgl/blob/" + gitcommit + "/docs")
f.close()
base_html = "html_baseurl = 'https://docs.lvgl.io/" + urlpath + "/en/html/'"
os.system("sed -i \"s|html_baseurl = .*|" + base_html +"|\" conf.py")
os.environ['LVGL_URLPATH'] = urlpath
os.environ['LVGL_GITCOMMIT'] = gitcommit
clean = 0
trans = 0