Merge branch 'doc/fix_broken_links_v4.2' into 'release/v4.2'
Doc/fix broken links (backport v4.2) See merge request espressif/esp-idf!9265
This commit is contained in:
commit
8bf1d3118a
2 changed files with 3 additions and 2 deletions
|
@ -44,7 +44,7 @@ Tutorials
|
|||
~~~~~~~~~
|
||||
|
||||
- `ESP-IDF and ESP32-DevKitC: debugging, unit testing, project analysis
|
||||
<https://docs.platformio.org/en/latest/tutorials/espressif32/espidf_debugging_unit_testing_inspect.html?utm_source=docs.espressif.com>`__
|
||||
<https://docs.platformio.org/en/latest/tutorials/espressif32/espidf_debugging_unit_testing_analysis.html?utm_source=docs.espressif.com>`__
|
||||
|
||||
Project Examples
|
||||
~~~~~~~~~~~~~~~~
|
||||
|
|
|
@ -57,7 +57,8 @@ def github_link(link_type, idf_rev, submods, root_path, app_config):
|
|||
# Redirects to submodule repo if path is a submodule, else default to IDF repo
|
||||
def redirect_submodule(path, submods, rev):
|
||||
for key, value in submods.items():
|
||||
if path.lstrip('/').startswith(key):
|
||||
# Add path separator to end of submodule path to ensure we are matching a directory
|
||||
if path.lstrip('/').startswith(os.path.join(key, '')):
|
||||
return value.url.replace('.git', ''), value.rev, re.sub('^/{}/'.format(key), '', path)
|
||||
|
||||
return IDF_REPO, rev, path
|
||||
|
|
Loading…
Reference in a new issue