commit | e37f2691fb034d84af012420e1a3828b8d8265ea | [log] [tgz] |
---|---|---|
author | Ben Hoyt <benhoyt@gmail.com> | Thu Nov 19 09:43:21 2020 +1300 |
committer | Dmitri Shuralyov <dmitshur@golang.org> | Thu Nov 19 14:36:58 2020 +0000 |
tree | 500456fdb43711faf2bad5ea49184a9b5bf83c85 | |
parent | 5cc0176c2859dad3a10e7e54a10071e21777a9f2 [diff] |
content/static: fix collapsed spacing in preformatted blocks We have "word-spacing: -0.3em" for <code> in our CSS, but that causes Markdown code blocks to have misaligned spacing. Markdown renders blocks in <pre><code>, so this change updates the CSS to override the word spacing back to zero for code blocks. (We use the goldmark package, but other Markdown renderers produces <pre><code> too.) Fixes golang/go#41507 Change-Id: Ic5262dfe006d1206843575975885deb1c14e5c75 Reviewed-on: https://go-review.googlesource.com/c/website/+/271277 Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Trust: Jay Conrod <jayconrod@google.com>
This repository holds the Go website server code and content.
To download and run the golang.org web server locally:
git clone https://go.googlesource.com/website
cd website
go run ./cmd/golangorg
See cmd/golangorg/README.md for more details.
To make basic changes to the golang.org website content:
content/static
directory.go run ./cmd/golangorg
.go generate ./content/static
go run ./cmd/golangorg
See content/README.md for more sophisticated instructions.
This repository uses prettier to format JS and CSS files.
The version of prettier
used is 1.18.2.
It is encouraged that all JS and CSS code be run through this before submitting a change. However, it is not a strict requirement enforced by CI.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the website repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/website:” in the subject line, so it is easy to find.