commit | c1a7e8072ea1c3565f9ba65db77d14a4527aa2c9 | [log] [tgz] |
---|---|---|
author | ipriver <g1ran1q@gmail.com> | Wed Sep 09 11:55:25 2020 +0000 |
committer | Steve Traut <straut@google.com> | Wed Sep 09 13:13:28 2020 +0000 |
tree | 65196da852bfbc2d14c2cbb9060c56f375dda89b | |
parent | 97c2bf7d7e64b1042350a75e8c4e19bf9e8bd326 [diff] |
doc/install: fix Linux tab installation command There is a command on doc/install page https://golang.org/doc/install that uses an outdated filename that is being shown as an example of how to install go for Linux: tar -C /usr/local -xzf go1.14.3.linux-amd64.tar.gz Currently, there is a button that allows downloading .tar file that include go1.15 and its name is different from the command, so that if you follow installation steps you'll get an error that .tar file wasn't found. Changes purposed: Added a function that uses a filename from the "Download" button that can be used to update Linux installation command. This function could be used in the future for other OSes if there will be a need for adding informational data that may change in the future. So there's no need to update such data in the markup files. If there's something wrong during running JS code (or JS is disabled in the browser) and the filename couldn't be parsed - the old filename is used as an example like before. Fixes golang/go#41232 Change-Id: Ie389ce73de5393f151ad739b3e97873e1a9be179 GitHub-Last-Rev: 0a93f69393a0b81ee1d869bfb7df612278479c1b GitHub-Pull-Request: golang/website#15 Reviewed-on: https://go-review.googlesource.com/c/website/+/253118 Run-TryBot: Steve Traut <straut@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Steve Traut <straut@google.com>
This repository holds the Go website server code and content.
To download and run the golang.org web server locally:
git clone https://go.googlesource.com/website
cd website
go run ./cmd/golangorg
See cmd/golangorg/README.md for more details.
To make basic changes to the golang.org website content:
content/static
directory.go run ./cmd/golangorg
.go generate ./content/static
go run ./cmd/golangorg
See content/README.md for more sophisticated instructions.
This repository uses prettier to format JS and CSS files.
The version of prettier
used is 1.18.2.
It is encouraged that all JS and CSS code be run through this before submitting a change. However, it is not a strict requirement enforced by CI.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the website repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/website:” in the subject line, so it is easy to find.