| Age | Commit message (Collapse) | Author |
|
It stopped being a nested module and its content was merged into
x/website in CL 323897. It was never intended to be a published
module, rather it happened to be one during earlier development
of x/website.
Because the golang.org/x/website/tour module has a longer path than
the golang.org/x/website module, it gets in the way when trying to
install or run the latest version of the tour command. So, deprecate
and retact all of its versions to fix that.
For golang/go#47236.
Change-Id: I88615fc25cd6531d4650210ca8063c53a68ac81a
|
|
Delete separate learn service files, since the service has been deleted.
(learn.go.dev is now served by the same service as go.dev.)
Also make the yaml commands a bit more readable.
Change-Id: I8c453cb38bef84eb1d795e949c9bc315360c0deb
Reviewed-on: https://go-review.googlesource.com/c/website/+/323896
Trust: Russ Cox <rsc@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
|
|
This app has a lot of history. App Engine used to require different code
for local execution and running on App Engine, because the latter supplied
func main. No longer. Unify all the code into a simpler single file.
Also use the new x/website. (The old go.mod was pinning an older
x/website from before we adopted fs.FS. Now that we have a backported
io/fs, we can use the new x/website, which is what lets us get rid of
the submodule boundary.)
This brings blog in line with the other websites in this repo,
which will help smooth the eventual merge.
Change-Id: Ibe95674ac6765c15bb82a82dc52845a2377cebf7
Reviewed-on: https://go-review.googlesource.com/c/website/+/323894
Trust: Russ Cox <rsc@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
|
|
Now that x/website is Go 1.15-safe,
we can make go.dev a plain subdirectory
and use x/website's copy of the template packages
instead of the go.dev copy.
Change-Id: I55a1c3d47b6a96cedfd6eab260533d4e4b28ea88
Reviewed-on: https://go-review.googlesource.com/c/website/+/323893
Trust: Russ Cox <rsc@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
|
|
This app has been through a lot of evolution and has accumulated
a lot of cruft in the way it is deployed. We can simplify deployment
down to a short Cloud Build script and go back to regular App Engine
for execution.
Also remove the prod-vs-local distinction and the build tag complexity.
App Engine Flex doesn't let us have extant versions without at least
a couple dedicated VMs, and then it also imposes a limit of 20 VMs,
which makes it unsuitable for continuous deployment, where we can
rack up many versions in a short amount of time. Going back to
App Engine Standard is a better fit, since versions that aren't getting
traffic scale down to zero.
Using App Engine Standard also matches blog and go.dev,
which will help with the eventual merging of all these servers.
Change-Id: I35167b569327ad253b9d367d747072a269205b20
Reviewed-on: https://go-review.googlesource.com/c/website/+/323892
Trust: Russ Cox <rsc@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
|
|
Change-Id: If8b066124cb46a0e2a87eaf0271ee46221f02a3d
Reviewed-on: https://go-review.googlesource.com/c/website/+/328129
Trust: Filippo Valsorda <filippo@golang.org>
Run-TryBot: Filippo Valsorda <filippo@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
|
|
With the help of the backported libraries introduced in the previous CL,
we can make the whole cmd/golangorg site run on Go 1.15 again.
This will let us use App Engine standard in advance of the release
of Go 1.16 on App Engine.
Change-Id: I9d1612de6f366e0774919aa6a94af14aafb248f5
Reviewed-on: https://go-review.googlesource.com/c/website/+/323891
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>
|
|
This will let us use these APIs on App Engine before Go 1.16 is available.
The only thing we can't backport from Go 1.16 is embed, so that has to
be build-tagged off still, but we don't really need embed on App Engine.
This will let us move golang.org off App Engine Flex onto regular App Engine,
which will greatly simplify deployment and make it possible to do automatic
deployments.
When App Engine adds Go 1.16 support, most of this can go away.
(The template packages will need to stay, as go.dev will need some
Go 1.17 bug fixes from them.)
Change-Id: I16ee64862a43f591a31fae04caf4caa0fdb5af62
Reviewed-on: https://go-review.googlesource.com/c/website/+/323890
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>
|
|
Much shorter and clearer.
This also opens up the possibility of sharing
some tests between TestWeb and TestLiveServer.
Change-Id: Iaca004c88581b0e0d8c858333806f755cc140255
Reviewed-on: https://go-review.googlesource.com/c/website/+/321075
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>
Website-Publish: Russ Cox <rsc@golang.org>
|
|
This package provides a way to write simple script-based tests of
web server behaviors, instead of reinventing the logic in every test,
as we too often do.
See the doc comment in webtest.go for more details.
Change-Id: Ie1af4f1def488a7520dce46c242643aec15a2fcf
Reviewed-on: https://go-review.googlesource.com/c/website/+/321074
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>
|
|
This code is not likely to ever change, so it's nice to stash elsewhere.
CL generated by the script below.
[git-generate]
cd cmd/golangorg
rf '
mv codewalk.go golang.org/x/website/internal/codewalk
'
cd ../../internal/codewalk
rf '
mv CodewalkServer Server
mv NewCodewalkServer NewServer
mv Codewalk codewalk
mv Codestep codestep
'
Change-Id: If16a7dc9214a8d44ce42bc8e7e6ccd502b718c0e
Reviewed-on: https://go-review.googlesource.com/c/website/+/317661
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Website-Publish: Russ Cox <rsc@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
|
|
Preparation for moving to a new package.
Change-Id: Ib246f694f950eadcb9afa78e6551c8fb22e109a8
Reviewed-on: https://go-review.googlesource.com/c/website/+/317660
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
|
|
The toFS calls were a stop-gap to convert from old code that wasn't
strict about path forms to the io/fs routines that are more strict.
Arrange to pass io/fs-compatible paths everywhere and remove toFS.
Change-Id: Id69c0f23074ebd3a6dfef2255b2f8185ad1d1249
Reviewed-on: https://go-review.googlesource.com/c/website/+/317659
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
|
|
This completes an old TODO and uses the standard site frame
for the download page instead of having a separate copy.
Change-Id: Id647a6bb03d563b007b16cab51f40083d071c944
Reviewed-on: https://go-review.googlesource.com/c/website/+/317658
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
|
|
prod.go is build-tagged away and not updated by rf.
Change-Id: I40a655586ff9e019cccdf82ca96b25c6b80e383d
Reviewed-on: https://go-review.googlesource.com/c/website/+/317657
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
|
|
What's left of internal/godoc is mainly a simple web server
for static content (plus the package docs provided by internal/pkgdoc)
and bears little resemblance to the original godoc.
Revamp the API and retire the name, moving to internal/web.
CL generated by the script below.
[git-generate]
cd internal/godoc
mv util.go istext.go
mv godoc_test.go template_test.go
mv server_test.go site_test.go
rf '
mv TabWidth tabWidth
mv IsText isText
mv TabSpacer tabSpacer
mv Presentation Site
mv NewPresentation NewSite
mv writerCapturesErr writeErrorSaver
rm marshalJSON
mv redirect maybeRedirect
mv redirectFile maybeRedirectFile
mv Site.serveText Site.serveRawText
mv Site.serveTextFile Site.serveText
mv Site.serveDirectory Site.serveDir
mv Site.initFuncMap Site.initDocFuncs
mv \
toFS \
Site \
NewSite \
Site.ServeError \
Site.ServeHTTP \
Site.ServePage \
Page \
Site.fullPage \
Page.Invoke \
writeErrorSaver \
writeErrorSaver.Write \
applyTemplateToResponseWriter \
Site.serveFile \
maybeRedirect \
maybeRedirectFile \
doctype \
Site.serveHTML \
Site.serveDir \
Site.serveText \
selRx \
rangeSelection \
Site.serveRawText \
Site.googleCN \
site.go
mv example_nameFunc example_name
mv example_suffixFunc example_suffix
mv srcPosLinkFunc srcPosLink
mv \
siteFuncs \
example_name \
example_suffix \
srcToPkg \
Page.SrcPkgLink \
Page.SrcBreadcrumb \
Page.SrcPosLink \
srcPosLink \
sitefuncs.go
mv \
docServer \
docServer.ServeHTTP \
Page.ModeQuery \
pkgdoc.go
mv metaJSON fileJSON
mv extractMetadata parseFile
mv \
file \
fileJSON \
join \
open \
jsonStart \
parseFile \
file.go
mv \
Site.initDocFuncs \
Site.code \
Site.contents \
stringFor \
Site.oneLine \
Site.multipleLines \
parseArg \
match \
docfuncs.go
mv Site.ServeError.p Site.ServeError.s
mv Site.ServeHTTP.p Site.ServeHTTP.s
mv Site.ServePage.p Site.ServePage.s
mv Site.code.p Site.code.s
mv Site.contents.p Site.contents.s
mv Site.fullPage.p Site.fullPage.s
mv Site.googleCN.p Site.googleCN.s
mv Site.initDocFuncs.p Site.initDocFuncs.s
mv Site.multipleLines.p Site.multipleLines.s
mv Site.oneLine.p Site.oneLine.s
mv Site.serveDir.p Site.serveDir.s
mv Site.serveFile.p Site.serveFile.s
mv Site.serveHTML.p Site.serveHTML.s
mv Site.serveRawText.p Site.serveRawText.s
mv Site.serveText.p Site.serveText.s
mv Site.writeNode.p Site.writeNode.s
mv Page.pres Page.site
mv astfuncs.go docfuncs.go examplefuncs.go \
file.go istext.go markdown.go pkgdoc.go \
site.go site_test.go sitefuncs.go \
tab.go template_test.go \
golang.org/x/website/internal/web
'
rm godoc.go meta.go page.go pres.go server.go template.go
cd ../../cmd/golangorg
rf '
mv pres site
'
Change-Id: Ic03a2dbe14f74c60bd6a5a86ba4d3f36d8c5bea8
Reviewed-on: https://go-review.googlesource.com/c/website/+/317656
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
|
|
- convert from text/template to html/template
- use proper template set
- always pass *godoc.Page to templates, with custom value in .Data
- move stateful site template functions to methods on *godoc.Page
- unexport Presentation.ServeFile: ServeHTTP is good enough
- reorder api.DB.Func args to match source order (pkg first)
- rename lib/godoc/godoc.html to lib/godoc/site.html
(lib/godoc itself must stay lib/godoc because of links to other content it holds).
Change-Id: I873f17db20107fdab11d276932e6d847a6081015
Reviewed-on: https://go-review.googlesource.com/c/website/+/317655
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
|
|
Change-Id: I6ddea1c76244806439da9990758f15db466a01d4
Reviewed-on: https://go-review.googlesource.com/c/website/+/327750
Trust: Jonathan Amsterdam <jba@google.com>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
|
|
Now that retraction is a supported feature of both the `go` command
and pkgsite, advise module authors to use it instead of contacting us
to take down their modules.
Change-Id: Ib9b41b2aa42f85bd89b843aa10f08fb603684b5d
Reviewed-on: https://go-review.googlesource.com/c/website/+/326829
Trust: Jonathan Amsterdam <jba@google.com>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
|
|
The methods/21 slide in the tour linked to
golang.org/search?q=Read#Global
to list examples of the Reader interface implementations in the
standard library. The link has been dead since the search
functionality was removed from the golang.org website.
AFAIK the pkg.go.dev doesn't yet support symbol search, and I wasn't
able to find a way to replicate the old golang.org search result on
pkg.go.dev; this change replaces the link with a cs.opensource.google
search that shows very similar results to the ones from golang.org.
Fixes golang/tour#1140
Updates golang/tour#1144
Updates golang/tour#1158
Updates golang/tour#1168
Updates golang/tour#1169
Updates golang/tour#1173
Updates golang/tour#1174
Updates golang/tour#1175
Updates golang/tour#1178
Updates golang/tour#1206
Updates golang/tour#1207
Change-Id: I762f426cc84ee7b94a7a1147bf5a258f61d0acde
Reviewed-on: https://go-review.googlesource.com/c/website/+/326329
Trust: Alberto Donizetti <alb.donizetti@gmail.com>
Run-TryBot: Alberto Donizetti <alb.donizetti@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
|
|
These files were never served correctly but the libera.chat folks have
verified that the CL was merged (and presumably intended to be
displayed) and the project now has all the required permissions.
This reverts commit 7150aade441d21b06ee1a0634f02b985b0a67a95.
Change-Id: I74f10bd9899abaf8c189cc2fde2ac316ca584cd3
GitHub-Last-Rev: f2dca522865b97f4d74a604579f2c3f8b18aba8f
GitHub-Pull-Request: golang/website#61
Reviewed-on: https://go-review.googlesource.com/c/website/+/327251
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Trust: Heschi Kreinick <heschi@google.com>
Trust: Ian Lance Taylor <iant@golang.org>
|
|
Change-Id: I9db12489e940dcc7444801f9337e1564bab382d4
Reviewed-on: https://go-review.googlesource.com/c/website/+/326569
Trust: Heschi Kreinick <heschi@google.com>
Run-TryBot: Heschi Kreinick <heschi@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
|
|
The libera.chat folks have asked that we verify our chat room by temporarily (I will make the follow up to remove this) placing this string in the well-known tree. This would allow the `#go-nuts` channel to have certain protections including reservig the name `#go-*` and the ability to continue using the single `#` (instead of the two ##s for unverified channels). Is it possible the Go team would be okay with merging this temporarily? Thank you.
See golang/go#46281
/cc @danderson
Change-Id: I45e2a658c473e94c4ba6a03e68df02d68273cfa2
GitHub-Last-Rev: 7150aade441d21b06ee1a0634f02b985b0a67a95
GitHub-Pull-Request: golang/website#58
Reviewed-on: https://go-review.googlesource.com/c/website/+/325450
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Cherry Mui <cherryyz@google.com>
|
|
Instead of /pkg/fmt/?m=src people can use /src/pkg/fmt/.
Change-Id: I77dd11dcfa1b3e8d660e9cda6a5f07dbb60d721b
Reviewed-on: https://go-review.googlesource.com/c/website/+/317654
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Website-Publish: Russ Cox <rsc@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
|
|
Redirects can be handled by internal/redirect.
Raw-text serving is already handled in internal/godoc.
It can handle robots.txt and /doc/play/ too and avoid
exposing the underlying FileServer.
Change-Id: I11dda651128815b17cbd3a5db6572f21067529a7
Reviewed-on: https://go-review.googlesource.com/c/website/+/317653
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>
|
|
Move template loading from cmd/golangorg to internal/godoc,
which needs them.
Change-Id: I97cfebaa7e4bd3aa3bcc88e05a05393c1e8bbd1f
Reviewed-on: https://go-review.googlesource.com/c/website/+/317652
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>
|
|
Fixes golang/go#46599
Change-Id: I575e75f6d9806640480c7238a7d1060228332ef9
GitHub-Last-Rev: 2b09fa4657bf4b4386a2c0d9124792140c687b9e
GitHub-Pull-Request: golang/website#59
Reviewed-on: https://go-review.googlesource.com/c/website/+/325989
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Dmitri Shuralyov <dmitshur@golang.org>
|
|
Change-Id: Iae1ec48f92be8268ab3e7f4f87aa749773fd6c7e
GitHub-Last-Rev: 755e2b2b2f0eb59a6fa42872b7c88bf9fab21258
GitHub-Pull-Request: golang/website#57
Reviewed-on: https://go-review.googlesource.com/c/website/+/325050
Trust: Dmitri Shuralyov <dmitshur@golang.org>
Trust: Jamal Carvalho <jamal@golang.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Website-Publish: DO NOT USE <dmitshur@google.com>
|
|
The link provided to file an issue defaulted to a
template which cleared out the body. Remove that
part of the link so the issue defaults to the
regular issue body template.
Change-Id: I8b82a297394fd11c70e802cdba551bffc3f98508
Reviewed-on: https://go-review.googlesource.com/c/website/+/325069
Trust: Katie Hockman <katie@golang.org>
Run-TryBot: Katie Hockman <katie@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Roland Shoemaker <roland@golang.org>
|
|
Second security+dot release, another custom summary.
Change-Id: Ic36179259896f06cdbe7958f8d45628dc41f2ac3
Reviewed-on: https://go-review.googlesource.com/c/website/+/324772
Trust: David Chase <drchase@google.com>
Run-TryBot: David Chase <drchase@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Carlos Amedee <carlos@golang.org>
|
|
A redirect for the old /doc/install-source.html page was missed
in CL 296383. Use .md suffix for consistency with similar pages.
Update some links to point to the new canonical URLs without
the .html extension to make them shorter and save a redirect.
Fixes golang/go#46545.
Change-Id: I117ceb42bb6f97b370808d0e27ff2eaaaa5a472e
Reviewed-on: https://go-review.googlesource.com/c/website/+/324771
Trust: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
|
|
Change-Id: I10fb5478db02d5a122db910c6f516a51c62e80b6
Reviewed-on: https://go-review.googlesource.com/c/website/+/324789
Trust: Katie Hockman <katie@golang.org>
Run-TryBot: Katie Hockman <katie@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Roland Shoemaker <roland@golang.org>
|
|
The golden tests fail if you update _content/events.yaml
before you run the tests. Don't do that.
Change-Id: Ia7b8b4c05169e26b1341a0e70ef5b1c88aa52cb4
Reviewed-on: https://go-review.googlesource.com/c/website/+/324770
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
|
|
These deployment configs are meant to be run from Cloud Build.
They deploy a new version of the site on each commit,
using the commit date and hash to derive the app version.
If a commit is submitted with a Website-Publish+1 vote,
then the new version is promoted to be the live version of the site.
Otherwise the new version is left unpromoted, where it can be
manually inspected and potentially manually promoted,
or simply ignored and eventually automatically deleted.
golang.org will work this way too, after we move it off of Flex.
Change-Id: Iaddb3596276d5cfbf18aa67f210fcd33f323d9d5
Reviewed-on: https://go-review.googlesource.com/c/website/+/324511
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Website-Publish: Russ Cox <rsc@golang.org>
|
|
The site will never run on Windows, but keeping the tests passing
makes the x/website TryBots happy, and it is easy to do.
Fixes golang/go#46501.
Change-Id: Ib9ea07dc4164fbea38b7624c32a6f46d7bab6739
Reviewed-on: https://go-review.googlesource.com/c/website/+/324510
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Website-Publish: Russ Cox <rsc@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
|
|
The supporting packages (pic, reader, tree, wc) are still
in golang.org/x/tour, so delete these copies.
Fix the remaining references in local.go to use
golang.org/x/website/tour instead of golang.org/x/tour
to find the content files.
While we are here, make go test ./... considerably faster
by parallelizing TestContent.
For golang/go#46501.
Change-Id: Ia80161830f5f2f87fb6e39a0ee39c4b176fb425b
Reviewed-on: https://go-review.googlesource.com/c/website/+/324395
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Website-Publish: Russ Cox <rsc@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
|
|
For golang/go#46501.
Change-Id: Ie2adbc3536570e66ffda1227ffd4431fe4bf870a
Reviewed-on: https://go-review.googlesource.com/c/website/+/324411
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Website-Publish: Russ Cox <rsc@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
|
|
Automatic deployment is now enabled for these web sites.
(But not yet for golang.org. Waiting on the pending CLs for
better testing.)
Change-Id: I19a690d6354f83601be355b1eb5ca8003efd911a
Reviewed-on: https://go-review.googlesource.com/c/website/+/324410
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Website-Publish: Russ Cox <rsc@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
|
|
This was hinted at in "Finding a repository for a module path", but
this change makes the functionality more explicit and provides and
example.
Change-Id: I9a60c1d19c53108e8ae20112fcb3e88d97413677
Reviewed-on: https://go-review.googlesource.com/c/website/+/322670
Trust: Jay Conrod <jayconrod@google.com>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
|
|
This came up a couple times in Slack recently. I was confused about
this myself before we switched to -mod=readonly.
Change-Id: I3bafe347f4f9ecc3599e4b2568701422c95066c3
Reviewed-on: https://go-review.googlesource.com/c/website/+/322669
Trust: Jay Conrod <jayconrod@google.com>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
|
|
CL 296383 removed a trailing slash and .html suffix from some URLs.
CL 296429 changed the date format from yyyy/mm/dd to yyyy-mm-dd.
Update TestLiveServer accordingly so it passes on an instance that
would be deployed.
Change-Id: I6a632c8db1a6bc335946a7f6b131c6af60021b94
Reviewed-on: https://go-review.googlesource.com/c/website/+/322971
Trust: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
|
|
There's nothing left in Corpus but the file system and the API database.
Hoist them into Presentation and delete the Corpus itself.
Change-Id: I2cb61b77122b2f7216b0b2a96fd6b48e29eae189
Reviewed-on: https://go-review.googlesource.com/c/website/+/317651
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
|
|
Fixes golang/go#46420
Change-Id: Ic307699187864b398089d5973c0831a65560cf1e
Reviewed-on: https://go-review.googlesource.com/c/website/+/323130
Trust: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
|
|
As macOS is now in version 11, or XI, which Go supports. There is no
need to specify OS X as a prerequisite now, it would be more correct
to specify just 'macOS'.
Change-Id: Ida07bb513e75c9700e77eb57278604e76d2afa24
GitHub-Last-Rev: 8a47eedc88e4953fab3da1e145aa5564a459416f
GitHub-Pull-Request: golang/website#50
Reviewed-on: https://go-review.googlesource.com/c/website/+/312712
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Heschi Kreinick <heschi@google.com>
|
|
Function comments specify that n go routines are launched, but code
launches n+1. To match comments, launch n go routines instead of n+1.
Fixes golang/go#46223
Change-Id: I4e2bf6f521a52af351d6b6a33311988c082d8bec
GitHub-Last-Rev: a32ca355f59f9a2c11638e308caa4d7dee175544
GitHub-Pull-Request: golang/website#52
Reviewed-on: https://go-review.googlesource.com/c/website/+/320032
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Trust: Dmitri Shuralyov <dmitshur@golang.org>
Trust: Heschi Kreinick <heschi@google.com>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
|
|
See golang/go#46281
Change-Id: I35628633e47d92aa449d73512f80ed6326405229
GitHub-Last-Rev: 0013cd4b9719b15b53189f1a056399b028745a9e
GitHub-Pull-Request: golang/website#53
Reviewed-on: https://go-review.googlesource.com/c/website/+/321731
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Trust: Josh Bleecher Snyder <josharian@gmail.com>
Trust: Brad Fitzpatrick <bradfitz@golang.org>
|
|
The old Hugo setup was strange in that Hugo thought it was generating
pages for go.dev/learn, and then we put in a redirect from go.dev/learn
to learn.go.dev, and then we had a whole separate app just for serving
files in that subtree. All the actual file serving was done in app.yaml using
static file directives, not anything in Go.
In the migration to a Go web server, I did not make learn.go.dev/ work,
so it was showing the main go.dev page instead, which is clearly bad.
I spent a little while trying to make the Go server behave like the old
setup, but in the end I gave up and removed all the subterfuge.
Now the pages are served from go.dev/learn, same as in the _content tree,
and there is a redirect from learn.go.dev/anything to go.dev/learn/anything.
Given how much trouble I had getting the server to work the other way,
it seemed like we'd keep tripping over this special case as we make more changes.
And given that the long-term plan is to move everything onto go.dev,
it seemed better all around to just start telling the truth now.
This fix is already deployed, to fix the broken learn.go.dev.
Change-Id: I774850ade327623eefffc785f923f5002f3abff8
Reviewed-on: https://go-review.googlesource.com/c/website/+/322970
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
|
|
Change-Id: I6c6c9a605e831bb4a67f5b4a50b5545f29bb957b
Reviewed-on: https://go-review.googlesource.com/c/website/+/322969
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
|
|
The x.go.dev branch was created out-of-band by rewriting the
x/go.dev history to have this repo's first commit as its initial commit
and moving all the work into a go.dev/ subdirectory.
This merge brings the go.dev/ subdirectory into the main branch
of x/website.
After this merge, all work on go.dev will happen here in x/website,
first in the go.dev/ directory and then eventually merged into the website
proper.
Change-Id: I179988072340535ac835fe14a0d7614cc74c3db1
|
|
Back when the entire site had to live in $GOROOT/doc, we needed
some way to specify content that was served from URLs outside of golang.org/doc,
so we added the ability for a doc to declare its own URL (the Path metadata).
That meant the file system layout did not match the URL layout.
That meant the content for any particular URL could be anywhere in the file system.
That meant the entire file system had to be scanned to serve a URL.
That meant an index of the file system had to be built and updated.
Now that we have a file tree (_content) for the whole of golang.org,
we can move files to make the file system layout match the URL space.
Then each URL can be served by just reading the right file.
Then the index and its updater can be deleted.
And now if you want to edit /doc/gdb it's obvious which file to open.
Change-Id: I3357f275e61a31c8de3091af580cac80753e71a4
Reviewed-on: https://go-review.googlesource.com/c/website/+/296383
Trust: Russ Cox <rsc@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
|