Граф коммитов

15 Коммитов

Автор SHA1 Сообщение Дата
Jamal Carvalho 6f4aa0ee4c website: add support for JS/TS unit testing
Change-Id: I8bb35b7183c07c44c5e5da8dc2f2c15cc38ea64b
Reviewed-on: https://go-review.googlesource.com/c/website/+/377734
Run-TryBot: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Alex Rakoczy <alex@golang.org>
Trust: Jamal Carvalho <jamalcarvalho@google.com>
2022-01-11 22:46:10 +00:00
Jamal Carvalho 769f579886 website: add linter tooling and documentation
- Added package.json and lockfile
- Added npm and npx scripts
- Updated README

Change-Id: Ib01c09d943bb607c51544189d3dbbf1c42444921
Reviewed-on: https://go-review.googlesource.com/c/website/+/376301
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Trust: Jamal Carvalho <jamalcarvalho@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Alex Rakoczy <alex@golang.org>
2022-01-10 16:34:55 +00:00
Dmitri Shuralyov 577a9fdbc0 website: update deploying sections in README files
Use the README in cmd/golangorg directory as the canonical location
for documenting the deployment process for websites served by that
command. The top-level README now redirects to it, just like the
README in tour directory.

Add more context on how the website uses tests to ensure that deploys
can be done safely.

While here, also shorten various URLs to use the new go.dev domain.

For golang/go#36707.
Updates golang/go#39687.

Change-Id: If5cf7a74b19830540b29612de37286c5f14244a1
Reviewed-on: https://go-review.googlesource.com/c/website/+/367994
Reviewed-by: Russ Cox <rsc@golang.org>
Reviewed-by: Katie Hockman <katie@golang.org>
Trust: Katie Hockman <katie@golang.org>
Trust: Dmitri Shuralyov <dmitshur@golang.org>
2021-12-06 17:29:19 +00:00
Russ Cox 40c0eef097 go.dev: merge go.dev/_content into root _content
Many renames. And then adjust references.

Change-Id: I4d03c76dbc0bf4d070208d568861ee820904c0dc
Reviewed-on: https://go-review.googlesource.com/c/website/+/365097
Trust: Russ Cox <rsc@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
2021-11-22 16:42:59 +00:00
Russ Cox 6c6d3e7c40 cmd/golangorg: move blog from blog.golang.org to go.dev/blog
This is the first of a sequence of consolidations of web sites into
the single site go.dev. An accompanying blog post (next CL) will
explain the change.

The blog/_content tree moves to go.dev/_content/blog.
The *.article files were converted to *.md files using rsc.io/tmp/blog2md.
The old dot directives are now template function invocations,
so that blog content files are now exactly the same format and
semantics as regular site content files.

All the old blog redirects are carried forward, of course.

Also add exhaustive test that every .md file renders correctly.

Also rename rawhtml to raw, because it gets used for raw Markdown too.
The raw Markdown issue is working around a bigger problem
(html/template is not really right for Markdown) that we will have
to solve at some point, but not in this CL.

Change-Id: Ifa9b3b8d656a72af30d0d4e57e4c7bc8dacbc386
Reviewed-on: https://go-review.googlesource.com/c/website/+/342091
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
2021-08-18 19:48:35 +00:00
Russ Cox 66996d0d91 cmd/golangorg: simplify local vs prod programs
There was too much duplicated code between main.go
and appinit.go and too many build-tagged-out files.

Make main.go the func main for both prod and local.
Introduce local.go, merging dl.go and play.go.
Introduce prod.go, holding the prod-specific bits of appinit.go
(the rest are in main.go).

Rename the build tag to prod instead of golangorg
(the whole program is golangorg; it's very confusing).

Fixes golang/go#41102.

Change-Id: I261ce8e9171110f01798025f8218ce9f8253af81
Reviewed-on: https://go-review.googlesource.com/c/website/+/293413
Trust: Russ Cox <rsc@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2021-02-24 17:35:01 +00:00
Russ Cox 3bfcf053d6 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>
2021-02-18 03:22:26 +00:00
Russ Cox 6ba27a496a _content: move content/static/* to _content/*
The extra level of hierarchy here is unnecessary and confusing.
The directory is now _content so that any Go source files in our
docs are not considered by commands like "go mod tidy" and
"go test all".

Change-Id: Ib6d7cb12920193798ee825155a8f8b33f16e60d8
Reviewed-on: https://go-review.googlesource.com/c/website/+/291691
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2021-02-16 02:04:17 +00:00
Julie Qiu 8eafb4e1e1 README.md: add badge to pkg.go.dev
A badge is added to the x/website README to link to
pkg.go.dev/golang.org/x/website.

Change-Id: Ia54daec1cee91bd37510d07fb509174ac1344f4c
Reviewed-on: https://go-review.googlesource.com/c/website/+/275193
Trust: Julie Qiu <julie@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2020-12-07 21:45:09 +00:00
Russ Cox 4f399ec422 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>
2020-08-28 16:03:04 +00:00
Agniva De Sarker 1cbcbc1a04 all: add a section on JS/CSS formatting to README
Updates golang/go#21719

Change-Id: Ie33b439c929c466089398c4f24dc243239c48f10
Reviewed-on: https://go-review.googlesource.com/c/website/+/183879
Run-TryBot: Agniva De Sarker <agniva.quicksilver@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2020-05-28 18:41:37 +00:00
Diogo Pinela 23608d29fd all: Fix reference to time repository in README
Change-Id: I21e409e523722883b5a4b67153db669f1f8167dd
Reviewed-on: https://go-review.googlesource.com/c/163897
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-02-27 00:39:42 +00:00
Channing Kimble-Brown c68b58d296 cmd/golangorg: deploy to default service
This CL changes the deployment scripts so that they deploy x/website to
golang.org (GCP service name: default). x/website is now the canonical
source of golang.org.

Updates golang/go#29206

Change-Id: If29be6b191b84ac8856e4c0aa6239f96da41629b
Reviewed-on: https://go-review.googlesource.com/c/162157
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2019-02-20 16:41:46 +00:00
Channing Kimble-Brown f0ec21c42d x/website: update README.md
The README in the root is being updated to let users know that this
website is under development and where they should direct their CLs.

Change-Id: I7355e1103e2ac202061db20b0c55e1cf6b1b95f6
Reviewed-on: https://go-review.googlesource.com/c/156957
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-01-08 22:28:41 +00:00
Dmitri Shuralyov 001739136e initial commit 2019-01-04 09:34:42 -05:00