From 3a7f88c8c08b048c8b15bd909c844e4d216271b5 Mon Sep 17 00:00:00 2001 From: Ryan Northey Date: Wed, 31 Jul 2024 22:45:40 +0100 Subject: [PATCH] docs: Further build fix/es Signed-off-by: Ryan Northey --- BUILD | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/BUILD b/BUILD index b63ac86..3ed7280 100644 --- a/BUILD +++ b/BUILD @@ -99,6 +99,7 @@ pkg_files( name = "examples_files", srcs = [":files"], prefix = "_include", + strip_prefix = "", ) genrule( @@ -108,7 +109,7 @@ genrule( cmd = """ TEMP=$$(mktemp -d) for location in $(locations :docs_rst); do - example=$$(echo $$location | sed -e 's#^external/[^/]*/##' | cut -d/ -f2) + example=$$(echo $$location | sed -e 's#^external/[^/]*/##' | cut -d/ -f1) cp -a $$location "$${TEMP}/$${example}.rst" echo " $${example}" >> "$${TEMP}/_toctree.rst" done @@ -133,6 +134,8 @@ filegroup( "**/*", ], exclude = [ + ".git/**/*", + "bazel-*/**/*", "**/node_modules/**", "**/*.rst", "win32*", @@ -146,6 +149,7 @@ pkg_tar( extension = "tar.gz", package_dir = "start/sandboxes", deps = [":examples_docs"], + visibility = ["//visibility:public"], ) envoy_examples(