website: update README.md
Update README.md to explain how to make basic content changes, with a link to the content/README.md for advanced things. Fixes golang/go#39687. Change-Id: Ie2a603422f4c7057ffdab71f434b60f53e99a828 Reviewed-on: https://go-review.googlesource.com/c/website/+/251121 Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
This commit is contained in:
Родитель
b323e46427
Коммит
4f399ec422
28
README.md
28
README.md
|
@ -1,11 +1,29 @@
|
|||
# Go Website
|
||||
# Go website
|
||||
|
||||
This repository holds the Go Website server code and content.
|
||||
This repository holds the Go website server code and content.
|
||||
|
||||
## Download/Install
|
||||
## Checkout and Run
|
||||
|
||||
The easiest way to install is to run `go get -u golang.org/x/website`. You can
|
||||
also manually git clone the repository to `$GOPATH/src/golang.org/x/website`.
|
||||
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](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](content/README.md) for more sophisticated instructions.
|
||||
|
||||
## JS/CSS Formatting
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче