diff --git a/scripts/run-docs-build b/scripts/run-docs-build
index 36e0793..4a7e5be 100755
--- a/scripts/run-docs-build
+++ b/scripts/run-docs-build
@@ -195,6 +195,11 @@ git clean -ffdx
 
 export LATEXMKOPTS="-silent"
 
+# These two variables are used by yocto-docs to locate these two repositories
+# and document Python docstrings.
+export BITBAKE_REPO_PATH="$bbdocs/../"
+export OECORE_REPO_PATH="$oecore"
+
 function checkout_closest_ref() {
   # The purpose of this function is to take a ref from yocto-docs (ref=$1) and
   # checkout the closes possible ref on given (repo=$2).
