Skip to content

Commit 3bfcf05

Browse files
committed
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 <[email protected]> Trust: Russ Cox <[email protected]> Run-TryBot: Russ Cox <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent e43fe08 commit 3bfcf05

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44

55
This repo holds content and serving programs for the golang.org web site.
66

7-
Content is in content/. Server code is in cmd/ and internal/.
7+
Content is in _content/. Server code is in cmd/ and internal/.
88

99
To run the server to preview local content changes, use:
1010

1111
go run ./cmd/golangorg -a
1212

1313
The supporting programs cmd/admingolangorg and cmd/googlegolangorg
1414
are the servers for admin.golang.org and google.golang.org.
15-
(They do not use the content/ directory.)
15+
(They do not use the _content/ directory.)
1616

1717
Each command directory has its own README.md explaining deployment.
1818

cmd/golangorg/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func main() {
124124
fmt.Fprintln(os.Stderr, "runtime.Caller failed: cannot find templates for -a mode.")
125125
os.Exit(2)
126126
}
127-
dir := filepath.Join(file, "../../../content")
127+
dir := filepath.Join(file, "../../../_content")
128128
if _, err := os.Stat(filepath.Join(dir, "godoc.html")); err != nil {
129129
fmt.Fprintln(os.Stderr, err)
130130
fmt.Fprintln(os.Stderr, "Cannot find templates for -a mode.")

0 commit comments

Comments
 (0)