mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-06 03:26:53 +03:00
Keep the html folder on a flast structure (no subfolders). Else the OTA fails until >15.0.x because it does not create the needed subfolders (#2080)
Co-authored-by: CaCO3 <caco@ruinelli.ch>
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -25,4 +25,3 @@ code/edgeAI.code-workspace
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
tools/parameter-tooltip-generator/html
|
tools/parameter-tooltip-generator/html
|
||||||
tools/parameter-tooltip-generator/AI-on-the-edge-device-docs
|
tools/parameter-tooltip-generator/AI-on-the-edge-device-docs
|
||||||
sd-card/html/param_tooltips
|
|
||||||
|
|||||||
@@ -105,9 +105,9 @@ textarea {
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<link rel="stylesheet" href="param_tooltips/theme.css?v=$COMMIT_HASH" />
|
<link rel="stylesheet" href="mkdocs_theme.css?v=$COMMIT_HASH" />
|
||||||
<link rel="stylesheet" href="param_tooltips/theme_extra.css?v=$COMMIT_HASH" />
|
<link rel="stylesheet" href="mkdocs_theme_extra.css?v=$COMMIT_HASH" />
|
||||||
<link rel="stylesheet" href="param_tooltips/github.min.css?v=$COMMIT_HASH" />
|
<link rel="stylesheet" href="github.min.css?v=$COMMIT_HASH" />
|
||||||
|
|
||||||
<link href="firework.css?v=$COMMIT_HASH" rel="stylesheet">
|
<link href="firework.css?v=$COMMIT_HASH" rel="stylesheet">
|
||||||
<script type="text/javascript" src="jquery-3.6.0.min.js?v=$COMMIT_HASH"></script>
|
<script type="text/javascript" src="jquery-3.6.0.min.js?v=$COMMIT_HASH"></script>
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
The files in this folder are directly copied from the generated mkdocs site folder.
|
|
||||||
@@ -9,7 +9,6 @@ import markdown
|
|||||||
parameterDocsFolder = "AI-on-the-edge-device-docs/param-docs/parameter-pages"
|
parameterDocsFolder = "AI-on-the-edge-device-docs/param-docs/parameter-pages"
|
||||||
docsMainFolder = "../../sd-card/html"
|
docsMainFolder = "../../sd-card/html"
|
||||||
configPage = "edit_config_param.html"
|
configPage = "edit_config_param.html"
|
||||||
imagesFolder = "param_tooltips"
|
|
||||||
|
|
||||||
htmlTooltipPrefix = """
|
htmlTooltipPrefix = """
|
||||||
<div class="rst-content"><div class="tooltip"><img src="help.png" width="32px"><span class="tooltiptext">
|
<div class="rst-content"><div class="tooltip"><img src="help.png" width="32px"><span class="tooltiptext">
|
||||||
@@ -42,7 +41,7 @@ def generateHtmlTooltip(section, parameter, markdownFile):
|
|||||||
|
|
||||||
# Update image paths and copy images to right folder
|
# Update image paths and copy images to right folder
|
||||||
if "../img/" in htmlTooltip:
|
if "../img/" in htmlTooltip:
|
||||||
htmlTooltip = htmlTooltip.replace("../img/", imagesFolder + "/")
|
htmlTooltip = htmlTooltip.replace("../img/", "/")
|
||||||
|
|
||||||
htmlTooltip = htmlTooltipPrefix + htmlTooltip + htmlTooltipSuffix
|
htmlTooltip = htmlTooltipPrefix + htmlTooltip + htmlTooltipSuffix
|
||||||
|
|
||||||
@@ -77,4 +76,4 @@ for folder in folders:
|
|||||||
"""
|
"""
|
||||||
Copy images to main folder
|
Copy images to main folder
|
||||||
"""
|
"""
|
||||||
os.system("cp " + parameterDocsFolder + "/img/* " + docsMainFolder + "/" + imagesFolder)
|
os.system("cp " + parameterDocsFolder + "/img/* " + docsMainFolder + "/")
|
||||||
Reference in New Issue
Block a user