cmd/golangorg: fix -a mode (and README.md) for _content move

Change-Id: I78526b4834774ed46c59609467c2b43950f0cc99
Reviewed-on: https://go-review.googlesource.com/c/website/+/292589
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
This commit is contained in:
Russ Cox 2021-02-16 12:22:00 -05:00
Родитель e43fe083f8
Коммит 3bfcf053d6
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -4,7 +4,7 @@
This repo holds content and serving programs for the golang.org web site.
Content is in content/. Server code is in cmd/ and internal/.
Content is in _content/. Server code is in cmd/ and internal/.
To run the server to preview local content changes, use:
@ -12,7 +12,7 @@ To run the server to preview local content changes, use:
The supporting programs cmd/admingolangorg and cmd/googlegolangorg
are the servers for admin.golang.org and google.golang.org.
(They do not use the content/ directory.)
(They do not use the _content/ directory.)
Each command directory has its own README.md explaining deployment.

Просмотреть файл

@ -124,7 +124,7 @@ func main() {
fmt.Fprintln(os.Stderr, "runtime.Caller failed: cannot find templates for -a mode.")
os.Exit(2)
}
dir := filepath.Join(file, "../../../content")
dir := filepath.Join(file, "../../../_content")
if _, err := os.Stat(filepath.Join(dir, "godoc.html")); err != nil {
fmt.Fprintln(os.Stderr, err)
fmt.Fprintln(os.Stderr, "Cannot find templates for -a mode.")