56 lines
1.4 KiB
Diff
56 lines
1.4 KiB
Diff
diff --git a/docs/BUILD.bazel b/docs/BUILD.bazel
|
|
index a5a37ac..091e679 100644
|
|
--- a/docs/BUILD.bazel
|
|
+++ b/docs/BUILD.bazel
|
|
@@ -35,7 +35,7 @@ genrule(
|
|
cmd = """cat << EOF > $@
|
|
#!/bin/bash
|
|
set -e
|
|
-cat \\$${BUILD_WORKSPACE_DIRECTORY}/$(location //:docs) > \\$${BUILD_WORKSPACE_DIRECTORY}/README.md
|
|
+cat \\$${BUILD_WORKSPACE_DIRECTORY}/$(location //:docs) > \\$${BUILD_WORKSPACE_DIRECTORY}/src/index.md
|
|
""",
|
|
)
|
|
|
|
diff --git a/docs/book.toml b/docs/book.toml
|
|
new file mode 100644
|
|
index 0000000..5096728
|
|
--- /dev/null
|
|
+++ b/docs/book.toml
|
|
@@ -0,0 +1,5 @@
|
|
+[book]
|
|
+title = "Rules ForeignCc"
|
|
+
|
|
+[output.html]
|
|
+git-repository-url = "https://github.com/bazel-contrib/rules_foreign_cc"
|
|
diff --git a/docs/src/SUMMARY.md b/docs/src/SUMMARY.md
|
|
new file mode 100644
|
|
index 0000000..69fbd4d
|
|
--- /dev/null
|
|
+++ b/docs/src/SUMMARY.md
|
|
@@ -0,0 +1,3 @@
|
|
+# SUMMARY
|
|
+
|
|
+- [Rules ForeignCc](index.md)
|
|
diff --git a/version.bzl b/version.bzl
|
|
new file mode 100644
|
|
index 0000000..98bb722
|
|
--- /dev/null
|
|
+++ b/version.bzl
|
|
@@ -0,0 +1,3 @@
|
|
+"""A module represeting the version of rules_foreign_cc"""
|
|
+
|
|
+VERSION = "0.2.0"
|
|
diff --git a/docs/.bazelrc b/docs/.bazelrc
|
|
new file mode 100644
|
|
index 0000000..9eb0697
|
|
--- /dev/null
|
|
+++ b/docs/.bazelrc
|
|
@@ -0,0 +1,7 @@
|
|
+# Bazel configuration flags for rules_foreign_cc_docs
|
|
+
|
|
+# https://github.com/bazelbuild/stardoc/issues/112
|
|
+common --incompatible_allow_tags_propagation
|
|
+
|
|
+common --noenable_bzlmod
|
|
+build --workspace_status_command=tools/workspace_status.sh
|