Add TOC to Java tutorial. RELNOTES: None. PiperOrigin-RevId: 164278379
diff --git a/site/docs/tutorial/java.md b/site/docs/tutorial/java.md index 6059ba1..0c5cafb 100644 --- a/site/docs/tutorial/java.md +++ b/site/docs/tutorial/java.md
@@ -23,11 +23,33 @@ * Reference targets through labels * Deploy a target +## Contents + +* [Before you begin](#before-you-begin) + * [Install Bazel](#install-bazel) + * [Get the sample project](#get-the-sample-project) +* [Build with Bazel](#build-with-bazel) + * [Set up the workspace](#set-up-the-workspace) + * [Understand the BUILD file](#understand-the-build-file) + * [Build the project](#build-the-project) + * [Review the dependency graph](#review-the-dependency-graph) +* [Refine your Bazel build](#refine-your-bazel-build) + * [Specify multiple build targets](#specify-multiple-build-targets) + * [Use multiple packages](#use-multiple-packages) +* [Use labels to reference targets](#use-labels-to-reference-targets) +* [Package a Java target for deployment](#package-a-java-target-for-deployment) +* [Further reading](#further-reading) + ## Before you begin +### Install Bazel + To prepare for the tutorial, first [Install Bazel](../install.md) if -you don't have it installed already. Then, retrieve the sample project from -Bazel's GitHub repository: +you don't have it installed already. + +### Get the sample project + +Retrieve the sample project from Bazel's GitHub repository: ```sh git clone https://github.com/bazelbuild/examples/