]> granicus.if.org Git - esp-idf/commitdiff
docs: Don't show Kconfig.projbuild from MQTT submodule examples in docs
authorAngus Gratton <angus@espressif.com>
Fri, 21 Sep 2018 01:05:16 +0000 (11:05 +1000)
committerAngus Gratton <gus@projectgus.com>
Fri, 21 Sep 2018 01:05:16 +0000 (11:05 +1000)
docs/conf_common.py

index 1ff9d351dd45871d8499c8a678c470d9f11870b4..968a3cca949808bf7ed17e7f59a275d018d4c08f 100644 (file)
@@ -60,8 +60,14 @@ call_with_python('../gen-dxd.py')
 print("Generating kconfig.inc from kconfig contents")
 kconfig_inc_path = '{}/inc/kconfig.inc'.format(builddir)
 temp_sdkconfig_path = '{}/sdkconfig.tmp'.format(builddir)
-kconfigs = subprocess.check_output(["find", "../../components", "-name", "Kconfig"]).decode()
-kconfig_projbuilds = subprocess.check_output(["find", "../../components", "-name", "Kconfig.projbuild"]).decode()
+# note: trimming "examples" dir from KConfig/KConfig.projbuild as MQTT submodule
+# has its own examples in the submodule.
+kconfigs = subprocess.check_output(["find", "../../components",
+                                    "-name", "examples", "-prune",
+                                    "-o", "-name", "Kconfig", "-print"]).decode()
+kconfig_projbuilds = subprocess.check_output(["find", "../../components",
+                                              "-name", "examples", "-prune",
+                                              "-o", "-name", "Kconfig.projbuild", "-print"]).decode()
 confgen_args = [sys.executable,
                 "../../tools/kconfig_new/confgen.py",
                 "--kconfig", "../../Kconfig",