fix: docs pages (#1316)
This commit is contained in:
parent
3881d278c5
commit
adc5080a91
|
@ -40,3 +40,16 @@ index 0000000..98bb722
|
|||
+"""A module represeting the version of rules_foreign_cc"""
|
||||
+
|
||||
+VERSION = "0.1.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
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
diff --git a/docs/.bazelrc b/docs/.bazelrc
|
||||
index dc6a3f7..9eb0697 100644
|
||||
--- a/docs/.bazelrc
|
||||
+++ b/docs/.bazelrc
|
||||
@@ -1,3 +1,7 @@
|
||||
-# Bazel configuration flags for rules_foregin_cc_docs
|
||||
+# 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
|
|
@ -40,3 +40,16 @@ index 0000000..98bb722
|
|||
+"""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
|
||||
|
|
|
@ -80,3 +80,16 @@ index 0000000..98bb722
|
|||
+"""A module represeting the version of rules_foreign_cc"""
|
||||
+
|
||||
+VERSION = "0.3.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
|
||||
|
|
|
@ -11,3 +11,16 @@ index 2bdbf6e..418dd13 100644
|
|||
release="\\$${RELEASE}"
|
||||
fi
|
||||
mkdir -p \\$${BUILD_WORKSPACE_DIRECTORY}/src
|
||||
diff --git a/docs/.bazelrc b/docs/.bazelrc
|
||||
index dc6a3f7..9eb0697 100644
|
||||
--- a/docs/.bazelrc
|
||||
+++ b/docs/.bazelrc
|
||||
@@ -1,3 +1,7 @@
|
||||
-# Bazel configuration flags for rules_foregin_cc_docs
|
||||
+# 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
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
diff --git a/docs/.bazelrc b/docs/.bazelrc
|
||||
index dc6a3f7..9eb0697 100644
|
||||
--- a/docs/.bazelrc
|
||||
+++ b/docs/.bazelrc
|
||||
@@ -1,3 +1,7 @@
|
||||
-# Bazel configuration flags for rules_foregin_cc_docs
|
||||
+# 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
|
|
@ -0,0 +1,13 @@
|
|||
diff --git a/docs/.bazelrc b/docs/.bazelrc
|
||||
index dc6a3f7..9eb0697 100644
|
||||
--- a/docs/.bazelrc
|
||||
+++ b/docs/.bazelrc
|
||||
@@ -1,3 +1,7 @@
|
||||
-# Bazel configuration flags for rules_foregin_cc_docs
|
||||
+# 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
|
|
@ -0,0 +1,13 @@
|
|||
diff --git a/docs/.bazelrc b/docs/.bazelrc
|
||||
index dc6a3f7..9eb0697 100644
|
||||
--- a/docs/.bazelrc
|
||||
+++ b/docs/.bazelrc
|
||||
@@ -1,3 +1,7 @@
|
||||
-# Bazel configuration flags for rules_foregin_cc_docs
|
||||
+# 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
|
|
@ -0,0 +1,13 @@
|
|||
diff --git a/docs/.bazelrc b/docs/.bazelrc
|
||||
index dc6a3f7..9eb0697 100644
|
||||
--- a/docs/.bazelrc
|
||||
+++ b/docs/.bazelrc
|
||||
@@ -1,3 +1,7 @@
|
||||
-# Bazel configuration flags for rules_foregin_cc_docs
|
||||
+# 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
|
|
@ -0,0 +1,13 @@
|
|||
diff --git a/docs/.bazelrc b/docs/.bazelrc
|
||||
index dc6a3f7..9eb0697 100644
|
||||
--- a/docs/.bazelrc
|
||||
+++ b/docs/.bazelrc
|
||||
@@ -1,3 +1,7 @@
|
||||
-# Bazel configuration flags for rules_foregin_cc_docs
|
||||
+# 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
|
|
@ -0,0 +1,13 @@
|
|||
diff --git a/docs/.bazelrc b/docs/.bazelrc
|
||||
index dc6a3f7..9eb0697 100644
|
||||
--- a/docs/.bazelrc
|
||||
+++ b/docs/.bazelrc
|
||||
@@ -1,3 +1,7 @@
|
||||
-# Bazel configuration flags for rules_foregin_cc_docs
|
||||
+# 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
|
|
@ -0,0 +1,13 @@
|
|||
diff --git a/docs/.bazelrc b/docs/.bazelrc
|
||||
index dc6a3f7..9eb0697 100644
|
||||
--- a/docs/.bazelrc
|
||||
+++ b/docs/.bazelrc
|
||||
@@ -1,3 +1,7 @@
|
||||
-# Bazel configuration flags for rules_foregin_cc_docs
|
||||
+# 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
|
|
@ -17,6 +17,9 @@ jobs:
|
|||
# Create a job for release
|
||||
include:
|
||||
- ref: main
|
||||
- ref: "0.12.0"
|
||||
- ref: "0.11.1"
|
||||
- ref: "0.11.0"
|
||||
- ref: "0.10.1"
|
||||
- ref: "0.9.0"
|
||||
- ref: "0.8.0"
|
||||
|
@ -41,10 +44,19 @@ jobs:
|
|||
if: ${{ matrix.ref == 'main' }}
|
||||
- name: Patch older branches
|
||||
run: |
|
||||
ref="${{ matrix.ref }}"
|
||||
|
||||
[[ "$ref" == "main" ]] && exit
|
||||
|
||||
v_major="$(echo "$ref" | cut -d. -f1)"
|
||||
v_minor="$(echo "$ref" | cut -d. -f2)"
|
||||
v_patch="$(echo "$ref" | cut -d. -f3)"
|
||||
|
||||
[[ $v_major -gt 10 ]] && exit
|
||||
|
||||
mkdir -p ${{ github.workspace }}/.github
|
||||
curl https://raw.githubusercontent.com/bazel-contrib/rules_foreign_cc/main/.github/docs-${{ matrix.ref }}.patch > ${{ github.workspace }}/.github/docs-${{ matrix.ref }}.patch
|
||||
git apply ${{ github.workspace }}/.github/docs-${{ matrix.ref }}.patch
|
||||
if: ${{ matrix.ref == '0.4.0' || matrix.ref == '0.3.0' || matrix.ref == '0.2.0' || matrix.ref == '0.1.0' }}
|
||||
- name: Install bazelisk
|
||||
run: |
|
||||
curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.9.0/bazelisk-linux-amd64"
|
||||
|
@ -67,7 +79,7 @@ jobs:
|
|||
run: ${{ github.workspace }}/bin/mdbook build
|
||||
working-directory: ${{ github.workspace }}/docs
|
||||
- name: Save the newly built book
|
||||
uses: actions/upload-artifact@v2
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: "${{ matrix.ref }}"
|
||||
path: ${{ github.workspace }}/docs/book
|
||||
|
@ -78,7 +90,7 @@ jobs:
|
|||
if: ${{ matrix.ref == 'main' }}
|
||||
working-directory: ${{ github.workspace }}/docs/root
|
||||
- name: Save the newly built book
|
||||
uses: actions/upload-artifact@v2
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: "${{ matrix.ref }}-root"
|
||||
path: ${{ github.workspace }}/docs/root/book
|
||||
|
|
|
@ -5,6 +5,9 @@ Rules for building C/C++ projects using foreign build systems (non Bazel) inside
|
|||
## Versions
|
||||
|
||||
- [main](main/index.md)
|
||||
- [0.12.0](0.12.0/index.md)
|
||||
- [0.11.1](0.11.1/index.md)
|
||||
- [0.11.0](0.11.0/index.md)
|
||||
- [0.10.1](0.10.1/index.md)
|
||||
- [0.9.0](0.9.0/index.md)
|
||||
- [0.8.0](0.8.0/index.md)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
"""A module represeting the version of rules_foreign_cc"""
|
||||
|
||||
VERSION = "0.9.0"
|
||||
VERSION = "0.12.0"
|
||||
|
|
Loading…
Reference in New Issue