Commit d3c0e95f authored by Gerard Marull-Paretas's avatar Gerard Marull-Paretas Committed by Carles Cufi
Browse files

doc: extensions: kconfig: fix module prefix handling



If two modules started with the same prefix, e.g. nrf and nrfxlib, the
file name prefix was incorrectly set with the common prefix. Include
trailing "/" to the comparison, so that we match the full module name.

Signed-off-by: default avatarGerard Marull-Paretas <gerard.marull@nordicsemi.no>
parent 23f05780
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -354,8 +354,9 @@ def kconfig_build_resources(app: Sphinx) -> None:

                filename = node.filename
                for name, path in module_paths.items():
                    path += "/"
                    if node.filename.startswith(path):
                        filename = node.filename.replace(path, f"<module:{name}>")
                        filename = node.filename.replace(path, f"<module:{name}>/")
                        break

                db.append(