Add mkdocs bazel rules
I want to add some more detailed AOS documentation. mkdocs seems like a
reasonable choice, since it allows markdown (so GitHub and Gerrit will
still be able to render it even for people not using mkdocs), and it
was reasonably straightforwards to integrate.
Now that I am calling some python code that is using pip in the exec
configuration, also needed to set --host_platform for the
k8_upstream_python config.
Change-Id: I987f531759170272686f6488271be732827d0f9b
Signed-off-by: James Kuszmaul <james.kuszmaul@bluerivertech.com>
diff --git a/documentation/BUILD b/documentation/BUILD
index 5099a7d..a75eb46 100644
--- a/documentation/BUILD
+++ b/documentation/BUILD
@@ -1,7 +1,16 @@
load("//tools/build_rules:pandoc.bzl", "pandoc_html")
+exports_files(["mkdocs_bin.py"])
+
pandoc_html(
name = "index",
src = "README.md",
target_compatible_with = ["@platforms//os:linux"],
)
+
+py_binary(
+ name = "mkdocs_bin",
+ srcs = ["mkdocs_bin.py"],
+ visibility = ["//visibility:public"],
+ deps = ["@pip//mkdocs"],
+)