Skip to content
Commit fa413ddc authored by Lingkai Dong's avatar Lingkai Dong Committed by Hugues Kamba Mpiana
Browse files

mkdocs: Fix handling of root-level pages in convert_mkdocs_links.py



If a markdown page is located at the root level of the Open IoT SDK,
`{page_dir}/{link}` wrongly evaluates to `/{link}` because `{page_dir}`
is an empty string. This causes the existence check to fail for the
destination file.

Fix this by using `os.path.join()` which correctly gives `{link}`
without a preceding `/`.

Signed-off-by: Lingkai Dong's avatarLingkai Dong <lingkai.dong@arm.com>
parent 3cd36f9a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment