Site: Use automatic ToC for more pages
RELNOTES: None.
PiperOrigin-RevId: 221140593
diff --git a/site/docs/tutorial/java.md b/site/docs/tutorial/java.md
index b0ee64f..c7355c6 100644
--- a/site/docs/tutorial/java.md
+++ b/site/docs/tutorial/java.md
@@ -3,8 +3,7 @@
title: Build Tutorial - Java
---
-Introduction to Bazel: Building a Java Project
-==========
+# Introduction to Bazel: Building a Java Project
In this tutorial, you'll learn the basics of building Java applications with
Bazel. You will set up your workspace and build a simple Java project that
@@ -24,22 +23,11 @@
* Deploy a target
## Contents
+{:.no_toc}
-* [Before you begin](#before-you-begin)
- * [Install Bazel](#install-bazel)
- * [Install the JDK](#install-the-jdk)
- * [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)
+* ToC
+{:toc}
+
## Before you begin