commit | 4c40783eaee9044e2e3ec516fe05a7e5c50e1fb0 | [log] [tgz] |
---|---|---|
author | ipriver <g1ran1q@gmail.com> | Fri Oct 02 17:29:27 2020 +0000 |
committer | Dmitri Shuralyov <dmitshur@golang.org> | Thu Oct 08 22:07:46 2020 +0000 |
tree | fa656bd0bb2a83af310687d51561740c6f71e272 | |
parent | 687f4169bf23a4a462373f44ec4aae8716d6d20a [diff] |
doc/install: fixed how JS defines browser OS Updated "detectOS" function to use "userAgent" instead of "appVersion". It has more info and using that it can be correctly detected that the user uses Firefox on Linux. Users who want to be incognito can modify these values in their browsers, so there is no workaround for such rare cases. Added "else if" statements to prevent overwriting the variable. Also, added a check that prevents to use "click" on "null" elements (in case if OS haven't been detected or an element doesn't exist in DOM). Fixes golang/go#41537 Fixes golang/go#41528 Change-Id: Iab94801008eddc17c039d49c19c98bef7641afeb GitHub-Last-Rev: 6b891e9757ec61cd8107f53669f8ed1c0b807294 GitHub-Pull-Request: golang/website#17 Reviewed-on: https://go-review.googlesource.com/c/website/+/256318 Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Steve Traut <straut@google.com> Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Trust: Dmitri Shuralyov <dmitshur@golang.org>
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.