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
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/CONTRIBUTING.md
```
# Contributing
+2 -8
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
+15 -1
View File
@@ -114,9 +114,23 @@ html_theme_options = {
'logo_only': True,
}
# For site map generation
html_baseurl = 'https://docs.lvgl.io/master/en/html/'
html_baseurl = f"https://docs.lvgl.io/{os.environ['LVGL_URLPATH']}/en/html/"
sitemap_url_scheme = "{link}"
#lvgl_github_url = f"https://github.com/lvgl/lvgl/blob/{os.environ['LVGL_GITCOMMIT']}/docs"
#extlinks = {'github_link_base': (github_url + '%s', github_url)}
html_context = {
'github_version': os.environ['LVGL_GITCOMMIT'],
'github_user': 'lvgl',
'github_repo': 'lvgl',
'display_github': True,
'conf_py_path': '/docs/'
}
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
-2
View File
@@ -103,7 +103,6 @@ def exec():
d_all.update(d_act)
fout.write("```eval_rst\n")
fout.write(".. include:: /header.rst\n")
fout.write(":github_url: |github_link_base|/examples.md\n")
fout.write("```\n")
fout.write("\n")
@@ -124,4 +123,3 @@ def exec():
print_item(h, 3, d_all, fout)
fout.write("")
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/get-started/bindings/micropython.md
```
# Cpp
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/get-started/bindings/index.md
```
# Bindings
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/get-started/bindings/micropython.md
```
# Micropython
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/get-started/index.md
```
# Get started
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/get-started/os/freertos.md
```
# FreeRTOS
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/get-started/os/index.md
```
# (RT)OS
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/get-started/os/nuttx.md
```
# NuttX RTOS
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/get-started/os/rt-thread.md
```
# RT-Thread RTOS
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/get-started/os/zephyr.md
```
# Zephyr
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/get-started/platforms/arduino.md
```
# Arduino
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/get-started/platforms/cmake.md
```
# CMake
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/get-started/platforms/espressif.md
```
# Espressif (ESP32 chip series)
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/get-started/index.md
```
# Platforms
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/get-started/platforms/nxp.md
```
# NXP
NXP has integrated LVGL into the MCUXpresso SDK packages for several of their general
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/get-started/platoforms/simulator.md
```
# Simulator on PC
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/get-started/platforms/stm32.md
```
# STM32
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/get-started/platforms/tasmota-berry.md
```
# Tasmota and berry
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/get-started/quick-overview.md
```
# Quick overview
-1
View File
@@ -1 +0,0 @@
.. |github_link_base| replace:: https://github.com/lvgl/lvgl/blob/8a8153219163b689e8f96d6a97c1f128eefd7ce2/docs
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/index.md
```
```eval_rst
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/intro/index.md
```
# Introduction
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/layouts/flex.md
```
# Flex
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/layouts/grid.md
```
# Grid
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/layouts/index.md
```
# Layouts
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/libs/bmp.md
```
# BMP decoder
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/libs/ffmpeg.md
```
# FFmpeg support
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/libs/freetype.md
```
# FreeType support
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/libs/fsdrv.md
```
# File System Interfaces
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/libs/gif.md
```
# GIF decoder
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/libs/index.md
```
# 3rd party libraries
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/libs/png.md
```
# PNG decoder
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/libs/qrcode.md
```
# QR code
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/libs/rlottie.md
```
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/libs/sjpg.md
```
# JPG decoder
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/others/fragment.md
```
# Fragment
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/others/gridnav.md
```
# Grid navigation
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/others/imgfont.md
```
## Image font (imgfont)
Draw image in label or span obj with imgfont.
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/others/index.md
```
# Others
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/others/monkey.md
```
# Monkey
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/others/msg.md
```
# Messaging
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/others/snapshot.md
```
# Snapshot
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/overview/animation.md
```
# Animations
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/overview/color.md
```
# Colors
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/overview/coords.md
```
# Positions, sizes, and layouts
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/overview/display.md
```
# Displays
-2
View File
@@ -1,6 +1,4 @@
```eval_rst
.. include:: /header.rst
:github_url: |github_link_base|/overview/drawing.md
```
# Drawing

Some files were not shown because too many files have changed in this diff Show More