diff options
| author | Dmitri Shuralyov <dmitshur@golang.org> | 2021-06-03 13:20:45 -0400 |
|---|---|---|
| committer | Dmitri Shuralyov <dmitshur@golang.org> | 2021-06-03 20:22:02 +0000 |
| commit | 1d2c8e57cf34bc3b4cdb8c9ea58804f6136aa623 (patch) | |
| tree | 877f1fbf93704d6493b508c1f8b7c532b4203bbb | |
| parent | 5912d4fc49192189c42892172fc5ee603bfacbc8 (diff) | |
| download | go-x-website-1d2c8e57cf34bc3b4cdb8c9ea58804f6136aa623.tar.xz | |
_content/doc: add redirect and fix links to /doc/install/source
A redirect for the old /doc/install-source.html page was missed
in CL 296383. Use .md suffix for consistency with similar pages.
Update some links to point to the new canonical URLs without
the .html extension to make them shorter and save a redirect.
Fixes golang/go#46545.
Change-Id: I117ceb42bb6f97b370808d0e27ff2eaaaa5a472e
Reviewed-on: https://go-review.googlesource.com/c/website/+/324771
Trust: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
| -rw-r--r-- | _content/doc/install-source.md | 3 | ||||
| -rw-r--r-- | _content/doc/install.html | 4 | ||||
| -rw-r--r-- | _content/doc/install/gccgo.html | 2 | ||||
| -rw-r--r-- | _content/doc/manage-install.html | 4 |
4 files changed, 8 insertions, 5 deletions
diff --git a/_content/doc/install-source.md b/_content/doc/install-source.md new file mode 100644 index 00000000..482569b5 --- /dev/null +++ b/_content/doc/install-source.md @@ -0,0 +1,3 @@ +<!--{ + "Redirect": "/doc/install/source" +}--> diff --git a/_content/doc/install.html b/_content/doc/install.html index f6695423..d238e17f 100644 --- a/_content/doc/install.html +++ b/_content/doc/install.html @@ -7,11 +7,11 @@ <p>For other content on installing, you might be interested in:</p> <ul> <li> - <a href="/doc/manage-install.html">Managing Go installations</a> -- How to + <a href="/doc/manage-install">Managing Go installations</a> -- How to install multiple versions and uninstall. </li> <li> - <a href="/doc/install-source.html">Installing Go from source</a> -- How to + <a href="/doc/install/source">Installing Go from source</a> -- How to check out the sources, build them on your own machine, and run them. </li> </ul> diff --git a/_content/doc/install/gccgo.html b/_content/doc/install/gccgo.html index 82d019b0..27ca7873 100644 --- a/_content/doc/install/gccgo.html +++ b/_content/doc/install/gccgo.html @@ -15,7 +15,7 @@ does not cover code generated by gccgo). <p> Note that gccgo is not the <code>gc</code> compiler; see -the <a href="/doc/install.html">Installing Go</a> instructions for that +the <a href="/doc/install">Installing Go</a> instructions for that compiler. </p> diff --git a/_content/doc/manage-install.html b/_content/doc/manage-install.html index c1ff35b5..06d56314 100644 --- a/_content/doc/manage-install.html +++ b/_content/doc/manage-install.html @@ -8,8 +8,8 @@ This topic describes how to install multiple versions of Go on the same machine, <p>For other content on installing, you might be interested in:</p> <ul> -<li><a href="/doc/install.html">Download and install</a> -- The simplest way to get installed and running.</li> -<li><a href="/doc/install-source.html">Installing Go from source</a> -- How to check out the sources, build them on your own machine, and run them.</li> +<li><a href="/doc/install">Download and install</a> -- The simplest way to get installed and running.</li> +<li><a href="/doc/install/source">Installing Go from source</a> -- How to check out the sources, build them on your own machine, and run them.</li> </ul> <h2 id="installing-multiple">Installing multiple Go versions</h2> |
