[mirror] Home of the go.dev and golang.org websites
Перейти к файлу
Jamal Carvalho 0c2f86a568 content,internal: move HaTS trigger to download doc pages
Moves the HaTS trigger to the install doc pages so
that surveys will prompt while file downloads are
in progress.

Change-Id: I9437909c96907740fa21a0176d86b6adfe45d574
Reviewed-on: https://go-review.googlesource.com/c/website/+/286775
Reviewed-by: Alexander Rakoczy <alex@golang.org>
Trust: Jamal Carvalho <jamal@golang.org>
2021-01-27 16:46:14 +00:00
cmd cmd/googlegolangorg: point to pkg.go.dev 2021-01-07 17:01:08 +00:00
content content,internal: move HaTS trigger to download doc pages 2021-01-27 16:46:14 +00:00
internal content,internal: move HaTS trigger to download doc pages 2021-01-27 16:46:14 +00:00
.prettierrc all: add a section on JS/CSS formatting to README 2020-05-28 18:41:37 +00:00
AUTHORS initial commit 2019-01-04 09:34:42 -05:00
CONTRIBUTING.md initial commit 2019-01-04 09:34:42 -05:00
CONTRIBUTORS initial commit 2019-01-04 09:34:42 -05:00
LICENSE initial commit 2019-01-04 09:34:42 -05:00
PATENTS initial commit 2019-01-04 09:34:42 -05:00
README.md README.md: add badge to pkg.go.dev 2020-12-07 21:45:09 +00:00
codereview.cfg x/website: add code and static files for website 2019-01-08 18:22:29 +00:00
favicon.ico x/website: add code and static files for website 2019-01-08 18:22:29 +00:00
go.mod website: update to tools@97606e32 2020-08-27 20:30:11 +00:00
go.sum website: update to tools@97606e32 2020-08-27 20:30:11 +00:00
robots.txt x/website: add code and static files for website 2019-01-08 18:22:29 +00:00

README.md

Go website

Go Reference

This repository holds the Go website server code and content.

Checkout and Run

To download and run the golang.org web server locally:

  • git clone https://go.googlesource.com/website
  • cd website
  • go run ./cmd/golangorg
  • Open http://localhost:6060/ in your browser.

See cmd/golangorg/README.md for more details.

Changing Content

To make basic changes to the golang.org website content:

  • Make the changes you want in the content/static directory.
  • Stop any running go run ./cmd/golangorg.
  • go generate ./content/static
  • go run ./cmd/golangorg
  • Open http://localhost:6060/ in your browser.

See content/README.md for more sophisticated instructions.

JS/CSS Formatting

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.

Report Issues / Send Patches

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.