Add some tutorial articles
Documentation can build built into html for example using
`bazel build //documentation/...`
To build a specific file run `bazel build
//documentation/tutorials:make-a-drivebase-move`
Change-Id: Ie8c09cfeb60593e18349c8889f0c19e2c6a178e2
diff --git a/tools/build_rules/pandoc.bzl b/tools/build_rules/pandoc.bzl
new file mode 100644
index 0000000..bc63bac
--- /dev/null
+++ b/tools/build_rules/pandoc.bzl
@@ -0,0 +1,18 @@
+"""Converts a markdown file to an html file.
+
+Given the src "xyz.md", produces "xyz.html".
+
+Attrs:
+ src: Markdown file to convert. Only one file can be specified.
+"""
+
+def pandoc_html(name, src):
+ output = name + ".html"
+ native.genrule(
+ name = name,
+ srcs = [src],
+ outs = [output],
+ cmd = "$(location @pandoc//:pandoc_wrapper) -s $< -o $@",
+ tools = ["@pandoc//:all_files", "@pandoc//:pandoc_wrapper"],
+ executable = True,
+ )