diff options
author | Andrew Gerrand <adg@golang.org> | 2016-04-14 12:12:11 +1000 |
---|---|---|
committer | Andrew Gerrand <adg@golang.org> | 2016-04-15 00:11:04 +0000 |
commit | 0b28d0360b3a5888bcb85b53be6e571338f0406f (patch) | |
tree | a230a5a92c1b0822545c5ab0b5e0bafef83859ad | |
parent | 286a9c3d74aaec172195a034c2fbc6984ff67009 (diff) | |
download | go-0b28d0360b3a5888bcb85b53be6e571338f0406f.tar.gz go-0b28d0360b3a5888bcb85b53be6e571338f0406f.zip |
doc: add classes to version tags in source install instructions
This will allow us to mechanically substitute these strings
using javascript (in a forthcoming change to x/tools/godoc).
Updates #14371
Change-Id: I96e876283060ffbc9f3eabaf55d6b880685453e1
Reviewed-on: https://go-review.googlesource.com/22055
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-on: https://go-review.googlesource.com/22069
-rw-r--r-- | doc/install-source.html | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/doc/install-source.html b/doc/install-source.html index 7da5675f63..da71f47bb7 100644 --- a/doc/install-source.html +++ b/doc/install-source.html @@ -194,14 +194,19 @@ To build without <code>cgo</code>, set the environment variable <p>Go will install to a directory named <code>go</code>. Change to the directory that will be its parent and make sure the <code>go</code> directory does not exist. -Then clone the repository and check out the latest release tag:</p> +Then clone the repository and check out the latest release tag +(<code class="versionTag">go1.6</code>, for example):</p> <pre> $ git clone https://go.googlesource.com/go $ cd go -$ git checkout go1.6 +$ git checkout <span class="versionTag"><i><tag></i></span> </pre> +<p class="whereTag"> +Where <code><tag></code> is the version string of the release. +</p> + <h2 id="head">(Optional) Switch to the master branch</h2> <p>If you intend to modify the go source code, and @@ -378,7 +383,7 @@ New releases are announced on the <a href="//groups.google.com/group/golang-announce">golang-announce</a> mailing list. Each announcement mentions the latest release tag, for instance, -<code>go1.6</code>. +<code class="versionTag">go1.6</code>. </p> <p> @@ -388,11 +393,13 @@ To update an existing tree to the latest release, you can run: <pre> $ cd go/src $ git fetch -$ git checkout <i><tag></i> +$ git checkout <span class="versionTag"><i><tag></i></psan> $ ./all.bash </pre> +<p class="whereTag"> Where <code><tag></code> is the version string of the release. +</p> <h2 id="environment">Optional environment variables</h2> |