Bazel DevSite: Add "create issue" & "view source" buttons to narrative documentation.
A future change will add the buttons to the reference docs (which is a bit more complex since there is no 1:1 relation between displayed page and source file).
PiperOrigin-RevId: 486889786
Change-Id: I2d0d1963f7c82ab7b17dbe257196e4f105fe94cb
diff --git a/site/en/docs/android-build-performance.md b/site/en/docs/android-build-performance.md
index bbb7209..fcd3e63 100644
--- a/site/en/docs/android-build-performance.md
+++ b/site/en/docs/android-build-performance.md
@@ -3,6 +3,8 @@
# Android Build Performance
+{% include "_buttons.html" %}
+
This page contains information on optimizing build performance for Android
apps specifically. For general build performance optimization with Bazel, see
[Optimizing Performance](/rules/performance).
diff --git a/site/en/docs/android-instrumentation-test.md b/site/en/docs/android-instrumentation-test.md
index 8d01376..0006d02 100644
--- a/site/en/docs/android-instrumentation-test.md
+++ b/site/en/docs/android-instrumentation-test.md
@@ -3,6 +3,8 @@
# Android Instrumentation Tests
+{% include "_buttons.html" %}
+
_If you're new to Bazel, start with the [Building Android with
Bazel](/tutorials/android-app) tutorial._
diff --git a/site/en/docs/android-ndk.md b/site/en/docs/android-ndk.md
index cbc2cfb..d50cd90 100644
--- a/site/en/docs/android-ndk.md
+++ b/site/en/docs/android-ndk.md
@@ -3,6 +3,8 @@
# Using the Android Native Development Kit with Bazel
+{% include "_buttons.html" %}
+
_If you're new to Bazel, please start with the [Building Android with
Bazel](/tutorials/android-app) tutorial._
diff --git a/site/en/docs/bazel-and-android.md b/site/en/docs/bazel-and-android.md
index 747ed18..9797c27 100644
--- a/site/en/docs/bazel-and-android.md
+++ b/site/en/docs/bazel-and-android.md
@@ -3,6 +3,8 @@
# Android and Bazel
+{% include "_buttons.html" %}
+
This page contains resources that help you use Bazel with Android projects. It
links to a tutorial, build rules, and other information specific to building
Android projects with Bazel.
diff --git a/site/en/docs/bazel-and-apple.md b/site/en/docs/bazel-and-apple.md
index 1be6b80..cddf900 100644
--- a/site/en/docs/bazel-and-apple.md
+++ b/site/en/docs/bazel-and-apple.md
@@ -3,6 +3,8 @@
# Apple Apps and Bazel
+{% include "_buttons.html" %}
+
This page contains resources that help you use Bazel to build macOS and iOS
projects. It links to a tutorial, build rules, and other information specific to
using Bazel to build and test for those platforms.
diff --git a/site/en/docs/bazel-and-cpp.md b/site/en/docs/bazel-and-cpp.md
index b1c0050..b8332e8 100644
--- a/site/en/docs/bazel-and-cpp.md
+++ b/site/en/docs/bazel-and-cpp.md
@@ -3,6 +3,8 @@
# C++ and Bazel
+{% include "_buttons.html" %}
+
This page contains resources that help you use Bazel with C++ projects. It links
to a tutorial, build rules, and other information specific to building C++
projects with Bazel.
diff --git a/site/en/docs/bazel-and-java.md b/site/en/docs/bazel-and-java.md
index 91e22bd..5179370 100644
--- a/site/en/docs/bazel-and-java.md
+++ b/site/en/docs/bazel-and-java.md
@@ -3,6 +3,8 @@
# Java and Bazel
+{% include "_buttons.html" %}
+
This page contains resources that help you use Bazel with Java projects. It
links to a tutorial, build rules, and other information specific to building
Java projects with Bazel.
diff --git a/site/en/docs/bazel-and-javascript.md b/site/en/docs/bazel-and-javascript.md
index cac52f22..97a7ac5 100644
--- a/site/en/docs/bazel-and-javascript.md
+++ b/site/en/docs/bazel-and-javascript.md
@@ -3,6 +3,8 @@
# JavaScript and Bazel
+{% include "_buttons.html" %}
+
This page contains resources that help you use Bazel with JavaScript projects.
It links to build rules and other information specific to building JavaScript
with Bazel.
diff --git a/site/en/docs/cc-toolchain-config-reference.md b/site/en/docs/cc-toolchain-config-reference.md
index 9ce7570..c49ee57 100644
--- a/site/en/docs/cc-toolchain-config-reference.md
+++ b/site/en/docs/cc-toolchain-config-reference.md
@@ -3,6 +3,8 @@
# C++ Toolchain Configuration
+{% include "_buttons.html" %}
+
## Overview {:#overview}
To invoke the compiler with the right options, Bazel needs some knowledge about
diff --git a/site/en/docs/configurable-attributes.md b/site/en/docs/configurable-attributes.md
index 3e30140..40e88df 100644
--- a/site/en/docs/configurable-attributes.md
+++ b/site/en/docs/configurable-attributes.md
@@ -3,6 +3,8 @@
# Configurable Build Attributes
+{% include "_buttons.html" %}
+
**_Configurable attributes_**, commonly known as [`select()`](
/reference/be/functions#select), is a Bazel feature that lets users toggle the values
of build rule attributes at the command line.
diff --git a/site/en/docs/external.md b/site/en/docs/external.md
index 74d4b78..80fcf56 100644
--- a/site/en/docs/external.md
+++ b/site/en/docs/external.md
@@ -3,6 +3,8 @@
# Working with External Dependencies
+{% include "_buttons.html" %}
+
Bazel can depend on targets from other projects. Dependencies from these other
projects are called _external dependencies_.
diff --git a/site/en/docs/mobile-install.md b/site/en/docs/mobile-install.md
index 630cf3e..b5cc59f 100644
--- a/site/en/docs/mobile-install.md
+++ b/site/en/docs/mobile-install.md
@@ -3,6 +3,8 @@
# bazel mobile-install
+{% include "_buttons.html" %}
+
<p class="lead">Fast iterative development for Android</p>
This page describes how `bazel mobile-install` makes iterative development
diff --git a/site/en/docs/sandboxing.md b/site/en/docs/sandboxing.md
index 527dec8..79f26d9 100644
--- a/site/en/docs/sandboxing.md
+++ b/site/en/docs/sandboxing.md
@@ -3,6 +3,8 @@
# Sandboxing
+{% include "_buttons.html" %}
+
This article covers sandboxing in Bazel, installing `sandboxfs`, and debugging
your sandboxing environment.
diff --git a/site/en/docs/user-manual.md b/site/en/docs/user-manual.md
index f9bdb26..7e4d01d 100644
--- a/site/en/docs/user-manual.md
+++ b/site/en/docs/user-manual.md
@@ -3,6 +3,8 @@
# Commands and Options
+{% include "_buttons.html" %}
+
This page covers the options that are available with various Bazel commands,
such as `bazel build`, `bazel run`, and `bazel test`. This page is a companion
to the list of Bazel's commands in [Build with Bazel](/docs/build).