It would be nice to delete go.mod and let the directory
be part of the x/website module, but right now x/website
requires Go 1.16 and the blog runs on App Engine which
doesn't yet support Go 1.16. So the blog is actually requiring
an older, pre-Go 1.16 version of x/website.
Once App Engine updates to Go 1.16 we can take that next
step of making blog not a submodule.
Or perhaps before that we will get to the point of serving the
blog from the cmd/golangorg server.
One way or another, this will get even simpler.
Change-Id: I04f9b4d4433009c8b204acba9043b2d8a6261189
Reviewed-on: https://go-review.googlesource.com/c/website/+/322791
Trust: Russ Cox <rsc@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
The x.blog branch was created out-of-band by rewriting the
x/blog history to have this repo's first commit as its initial commit
and moving all the work into a blog/ subdirectory.
This merge brings the blog/ subdirectory into the main branch
of x/website.
After this merge, all work on the blog will happen here in x/website,
first in the blog/ directory and then eventually merged into the website
proper.
Change-Id: I25b94377a1f111ee0a640afcb7e2e4a4384d0733
Replace the use of "stutter" with a word which
more clearly conveys the meaning.
Change-Id: I1411e721f033a9600c023691e31e150b94c64b6d
Reviewed-on: https://go-review.googlesource.com/c/website/+/322671
Trust: Katie Hockman <katie@golang.org>
Run-TryBot: Katie Hockman <katie@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
Replace the use of "stutter" with a word which
more clearly conveys the meaning.
Change-Id: Ib1278d9eb24f5c84ed1f6e121493b6690f549687
Reviewed-on: https://go-review.googlesource.com/c/blog/+/322633
Trust: Katie Hockman <katie@golang.org>
Run-TryBot: Katie Hockman <katie@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Sameer Ajmani <ajmani@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
X-Blog-Commit: f7888dee675b21953ddf396045cf4433fd692d3d
The special cases were simulating the normal template execution
and passing extra data (the release history).
We have a standard way to pass extra data (template functions),
so use one and delete the special case code.
Also change date format to standard yyyy-mm-dd.
The yyyy/mm/dd we have been using is kind of made up
and certainly unusual (see https://xkcd.com/1179/).
Change-Id: I59f4f67259381dd43cd53c0f6120f87d8f8c77d9
Reviewed-on: https://go-review.googlesource.com/c/website/+/296429
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>
The correct links to sections on cmd/go page are prefixed with "hdr-".
Change-Id: I8301a8f93c2a6ebbc3d67a9a82c809e776976922
Reviewed-on: https://go-review.googlesource.com/c/blog/+/319470
Trust: Alberto Donizetti <alb.donizetti@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
X-Blog-Commit: 594fa988c67b77baa1b04aa1ae57dc507f2f8045
1.16.4 and 1.15.12 are our first releases containing public security
fixes. As such, the existing template doesn't work well for them, so use
a CustomSummary.
Change-Id: Ib70990425b1a2963030b1034295a20b4c105c630
Reviewed-on: https://go-review.googlesource.com/c/website/+/317609
Trust: Heschi Kreinick <heschi@google.com>
Trust: Carlos Amedee <carlos@golang.org>
Run-TryBot: Heschi Kreinick <heschi@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Carlos Amedee <carlos@golang.org>
The current macOS release filenames no longer include a "-osx10.8"
suffix, so the featured file regexp can made shorter and simpler.
Change-Id: Ia6a1b58e20909ba9485e02b51ee4b0297f6ff20e
Reviewed-on: https://go-review.googlesource.com/c/website/+/293589
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Cherry Zhang <cherryyz@google.com>
This makes it easy to get a section link by clicking on the section heading.
Also add support for {#ID} in Markdown, in addition to the auto-generated anchors.
Change-Id: Idd9d6c7cec2395f86808220c885861dc6c45e9d6
Reviewed-on: https://go-review.googlesource.com/c/blog/+/314173
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
X-Blog-Commit: d5f68129df4102cd8ec637a7521d733978bc0c76
Nothing in this package or its dependencies uses this variable,
after CL 293449.
Change-Id: I5abb409616bdbe991bb2cbb0014c358090b197f7
Reviewed-on: https://go-review.googlesource.com/c/blog/+/295213
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>
X-Blog-Commit: 89efb9b5f23c0a21eb4d9b754f428344dbf60a48
Moving these into underscore directories
hides them from "go mod tidy",
which otherwise wants to add a dependency
on gorilla for content/context/*.go.
Also update appengine.go and local.go
to know about new locations.
Change-Id: I7e1eaee7aaa971ee39c6c0e3cca475086443fbae
Reviewed-on: https://go-review.googlesource.com/c/blog/+/296369
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>
X-Blog-Commit: d6ab486137afa7054e7ab8fd20e6facdc5a162b8
file.Name.Name should match the directory name not the filename.
In CL 296378, newDirTree's name parameter was removed and synopsis
matched against the filename of the source code, e.g. "*.go".
Fixesgolang/go#45042Fixesgolang/go#45614
Change-Id: Ifa4c8a70429e277efb1f9f726de9249509cbcee0
Reviewed-on: https://go-review.googlesource.com/c/website/+/311089
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Cherry Zhang <cherryyz@google.com>
The custom search algorithm that was previously implemented and served
on the golang.org website has been removed via CL 292590 and CL 293412,
so remove the search box in the blog.golang.org header too.
For golang/go#44357.
Fixesgolang/go#44912.
Change-Id: I51478ccb568e94df50d0dc6920a26c8f30a04c3c
Reviewed-on: https://go-review.googlesource.com/c/blog/+/311969
Trust: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Roland Shoemaker <roland@golang.org>
X-Blog-Commit: 5d47918ba6b83a86f5752483a2310cda931dd255
Thanks to Manoj Krishnan (@meetmanok) for pointing this out.
Change-Id: I821eba8fe32773bea392629e34f8a2f88e37cc7f
Reviewed-on: https://go-review.googlesource.com/c/website/+/310549
Trust: Jay Conrod <jayconrod@google.com>
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
Goldmark drops id characters after '.'.
Change-Id: I30cfde221900e91479338adbc069f6805feced5d
Reviewed-on: https://go-review.googlesource.com/c/website/+/310752
Trust: Jay Conrod <jayconrod@google.com>
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
'go get' will link here when the arguments refer to main packages and
the -d flag is not enabled.
For golang/go#43684
Change-Id: I62045a4451bb767a83d9401665420b164c6ca255
Reviewed-on: https://go-review.googlesource.com/c/website/+/305649
Trust: Jay Conrod <jayconrod@google.com>
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
Change-Id: Ic882dbe8392acd296168911794c036e4f294022c
Reviewed-on: https://go-review.googlesource.com/c/website/+/306949
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
This change removes adg, bradfitz, cbro, andybons and julieqiu from
the list of valid users. They are not expected to be releasing Go at
any point in the near future.
Change-Id: I38fd878f4c9487402ad61bab8b3d8c6437dd9763
Reviewed-on: https://go-review.googlesource.com/c/website/+/305689
Trust: Carlos Amedee <carlos@golang.org>
Run-TryBot: Carlos Amedee <carlos@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
For golang/go#45334.
For golang/go#45333.
Change-Id: I7928cf48bad658ca7dd391b84802e0c8bb788617
Reviewed-on: https://go-review.googlesource.com/c/website/+/306670
Trust: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Changed to vanity URL after becoming a Discord Partnered server.
Change-Id: I8c59574697c8202b7fe1777478d3abe708d02301
GitHub-Last-Rev: 5f857b73e8
GitHub-Pull-Request: golang/website#45
Reviewed-on: https://go-review.googlesource.com/c/website/+/306049
Trust: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
Change-Id: I22025263b8d33e236671748fad9ef46ebc4441d1
Reviewed-on: https://go-review.googlesource.com/c/website/+/305531
Trust: Carlos Amedee <carlos@golang.org>
Run-TryBot: Carlos Amedee <carlos@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Change-Id: I53a86d44165cd5a8f7fa523dd914fb1b127bf953
Reviewed-on: https://go-review.googlesource.com/c/website/+/301349
Trust: Jay Conrod <jayconrod@google.com>
Trust: Steve Traut <straut@google.com>
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Steve Traut <straut@google.com>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
The article contains links to code for strings.HasPrefix that reference
the wrong line number and URL to search for "Deprecated:" identifier
which also not working anymore.
This commit fix the line number link for strings.HasPrefix and
remove the line that describe examples for searching "Deprecated:"
identifier.
While at it, use HTTPS for link to Docstring and update the link
on Javadoc to latest location (according to the page redirect URL).
Signed-off-by: shulhan <m.shulhan@gmail.com>
Change-Id: Ife267af49c0816df2b3934d075c7a9a09eaac83e
Reviewed-on: https://go-review.googlesource.com/c/blog/+/302729
Reviewed-by: Ian Lance Taylor <iant@golang.org>
X-Blog-Commit: 181b0cc4321bcd631c6c87654dd4840acfdcd568
The downloads page has a link pointing to a section about module proxy
servers in the cmd/go doc that was removed in CL 282615. Remove the
anchor.
Fixesgolang/go#44780
Change-Id: Ifb7f4f991b3314a3cda6d00d77925401a8830456
Reviewed-on: https://go-review.googlesource.com/c/website/+/299129
Trust: Alberto Donizetti <alb.donizetti@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
CL 251343 (Feb 12) changed the default service URL for _content/doc/x.html
from https://golang.org/doc/x.html to https://golang.org/doc/x.
Remove Path metadata that simply restates this new default.
Change-Id: Ia132c08f200c5a93554755cd1cd8429c9f8f3062
Reviewed-on: https://go-review.googlesource.com/c/website/+/296382
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 makes various other code movement a bit nicer.
Change-Id: I89c46dcbf3019eead4922f4db301bf0ea82b697e
Reviewed-on: https://go-review.googlesource.com/c/website/+/296379
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>
- IsGOROOT is always true (the only docs we serve)
- SummarizePackage is unused
- newDirectory is only called on the root with unlimited depth
- Name is redundant with Path
- Directory.Depth is unused
- only DirEntry is assigned to dirEntryOrFileInfo
- parallel walk is only needed for huge trees (GOROOT is not)
- separate entirely from Corpus
- pull new DocTree out of handlerServer
This will let us better separate the package doc tree from HTTP service
and from the general document server.
Change-Id: Iac667a0ff624306cdd535a33dd22dcb04062b46c
Reviewed-on: https://go-review.googlesource.com/c/website/+/296378
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>
There is lots of dead flexibility in this code.
Remove it, to make the control flow and data dependencies
easier to understand.
Change-Id: Ie9aa7bc96afc64d2a07677a73f8fb311808ef307
Reviewed-on: https://go-review.googlesource.com/c/website/+/296377
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>
Mainly just isolate it from Presentation, but give it a nice API too.
Change-Id: I9650bf650a15bfd814fe4da58de6fa133a858d90
Reviewed-on: https://go-review.googlesource.com/c/website/+/296374
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>