kopia lustrzana https://github.com/espressif/esp-idf
Merge branch 'bugfix/doc_static_Files_v4.4' into 'release/v4.4'
docs: fix missing static file path (v4.4) See merge request espressif/esp-idf!17329pull/9239/head
commit
be8129dc2d
|
@ -23,7 +23,7 @@ $(document).ready(function() {
|
||||||
|
|
||||||
(Where 'idf_target' path element are optional depending on if the project has multiple target support)
|
(Where 'idf_target' path element are optional depending on if the project has multiple target support)
|
||||||
*/
|
*/
|
||||||
let project_base_url = DOCUMENTATION_OPTIONS.URL_ROOT + "../..";
|
let project_base_url = DOCUMENTATION_OPTIONS.URL_ROOT + "../../..";
|
||||||
if (DOCUMENTATION_OPTIONS.IDF_TARGETS) {
|
if (DOCUMENTATION_OPTIONS.IDF_TARGETS) {
|
||||||
project_base_url += "/..";
|
project_base_url += "/..";
|
||||||
}
|
}
|
||||||
|
@ -38,17 +38,29 @@ $(document).ready(function() {
|
||||||
return result + "/";
|
return result + "/";
|
||||||
};
|
};
|
||||||
|
|
||||||
old_ver_list = "";
|
old_ver_table = "";
|
||||||
|
old_ver_table_row = "<tr>"
|
||||||
|
let row_items = 0;
|
||||||
|
const ITEMS_PER_ROW = 4;
|
||||||
|
|
||||||
for (let i = 0; i < versions.length; i++) {
|
for (let i = 0; i < versions.length; i++) {
|
||||||
let v = versions[i];
|
let v = versions[i];
|
||||||
let url = getVersionUrl(v);
|
let url = getVersionUrl(v);
|
||||||
|
|
||||||
if (v.old) {
|
if (v.old) {
|
||||||
old_ver_list += "<li><a href=\"" + url + "\">" + v.name + "</li>";
|
old_ver_table_row += "<td><a href=\"" + url + "\">" + v.name + "</td>";
|
||||||
|
row_items++;
|
||||||
|
if (row_items === ITEMS_PER_ROW) {
|
||||||
|
old_ver_table_row += "</tr>"
|
||||||
|
old_ver_table += old_ver_table_row
|
||||||
|
|
||||||
|
/* Prepare a new row */
|
||||||
|
old_ver_table_row = "<tr>"
|
||||||
|
row_items = 0
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$( "#version_list" ).append(old_ver_list);
|
$( "#version_table" ).append(old_ver_table);
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
<version_table>
|
<version_table>
|
||||||
<script src="_static/js/version_table.js"></script>
|
<script src="_static/js/version_table.js"></script>
|
||||||
<ul id="version_list">
|
<table id="version_table" style="width: 100%">
|
||||||
|
|
||||||
</ul>
|
</table>
|
||||||
</version_table>
|
</version_table>
|
||||||
|
|
|
@ -179,3 +179,5 @@ with open('../page_redirects.txt') as f:
|
||||||
if len(line.split(' ')) != 2:
|
if len(line.split(' ')) != 2:
|
||||||
raise RuntimeError('Invalid line in page_redirects.txt: %s' % line)
|
raise RuntimeError('Invalid line in page_redirects.txt: %s' % line)
|
||||||
html_redirect_pages = [tuple(line.split(' ')) for line in lines]
|
html_redirect_pages = [tuple(line.split(' ')) for line in lines]
|
||||||
|
|
||||||
|
html_static_path = ['../_static']
|
||||||
|
|
Ładowanie…
Reference in New Issue