Skip to content

Commit 0b28d03

Browse files
committed
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 <[email protected]> Reviewed-on: https://go-review.googlesource.com/22069
1 parent 286a9c3 commit 0b28d03

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

doc/install-source.html

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,14 +194,19 @@ <h2 id="fetch">Fetch the repository</h2>
194194
<p>Go will install to a directory named <code>go</code>.
195195
Change to the directory that will be its parent
196196
and make sure the <code>go</code> directory does not exist.
197-
Then clone the repository and check out the latest release tag:</p>
197+
Then clone the repository and check out the latest release tag
198+
(<code class="versionTag">go1.6</code>, for example):</p>
198199

199200
<pre>
200201
$ git clone https://go.googlesource.com/go
201202
$ cd go
202-
$ git checkout go1.6
203+
$ git checkout <span class="versionTag"><i>&lt;tag&gt;</i></span>
203204
</pre>
204205

206+
<p class="whereTag">
207+
Where <code>&lt;tag&gt;</code> is the version string of the release.
208+
</p>
209+
205210
<h2 id="head">(Optional) Switch to the master branch</h2>
206211

207212
<p>If you intend to modify the go source code, and
@@ -378,7 +383,7 @@ <h2 id="releases">Keeping up with releases</h2>
378383
<a href="//groups.google.com/group/golang-announce">golang-announce</a>
379384
mailing list.
380385
Each announcement mentions the latest release tag, for instance,
381-
<code>go1.6</code>.
386+
<code class="versionTag">go1.6</code>.
382387
</p>
383388

384389
<p>
@@ -388,11 +393,13 @@ <h2 id="releases">Keeping up with releases</h2>
388393
<pre>
389394
$ cd go/src
390395
$ git fetch
391-
$ git checkout <i>&lt;tag&gt;</i>
396+
$ git checkout <span class="versionTag"><i>&lt;tag&gt;</i></psan>
392397
$ ./all.bash
393398
</pre>
394399

400+
<p class="whereTag">
395401
Where <code>&lt;tag&gt;</code> is the version string of the release.
402+
</p>
396403

397404

398405
<h2 id="environment">Optional environment variables</h2>

0 commit comments

Comments
 (0)