Skip to content

Commit

Permalink
docs: Further build fix/es (#20)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Northey <ryan@synca.io>
  • Loading branch information
phlax authored Jul 31, 2024
1 parent e75361a commit 219fd1c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ pkg_files(
name = "examples_files",
srcs = [":files"],
prefix = "_include",
strip_prefix = "",
)

genrule(
Expand All @@ -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
Expand All @@ -133,6 +134,8 @@ filegroup(
"**/*",
],
exclude = [
".git/**/*",
"bazel-*/**/*",
"**/node_modules/**",
"**/*.rst",
"win32*",
Expand All @@ -146,6 +149,7 @@ pkg_tar(
extension = "tar.gz",
package_dir = "start/sandboxes",
deps = [":examples_docs"],
visibility = ["//visibility:public"],
)

envoy_examples(
Expand Down

0 comments on commit 219fd1c

Please sign in to comment.