| Age | Commit message (Collapse) | Author |
|
This change moves pkgsite page styles to lib/css directory
and writes processed and minified css to static/css.
For golang/go#43360
Change-Id: I42d61f4a270e3cde5016c6063555eb037f35c302
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/281772
Trust: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
|
|
Updates css generator and creates new readme.css file that
preserves github heading styles when using the goldmark
parser.
Change-Id: Iddd2ea99711ffe11c14f6e9e2087b023b7d73325
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/266580
Trust: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Julie Qiu <julie@golang.org>
|
|
Fixes a warning from staticcheck.
Change-Id: I2aa4f108f39dc62830c8e3622bdee4a4a2726dc9
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/266362
Trust: Jamal Carvalho <jamal@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
|
|
A script is added to create an experiment.yaml file which will enable
all experiments.
Documentation on how to enable experiments is consolidated in
experiment.md. Instructions on how to use this script is added.
Change-Id: I46dc75a5f84d3100b8ecb45453f803afab5c19af
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/264757
Trust: Julie Qiu <julie@golang.org>
Run-TryBot: Julie Qiu <julie@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
|
|
This change modifies the script used to generate github styles to save
to a separate css file while converting the px values to rem. Note
thatthe generated styles is formatted properly after run with prettier.
Change-Id: I860e4512a5ff281a6d53210293cb310d5c5e074c
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/258257
Trust: Miguel Acero <acero@google.com>
Reviewed-by: Julie Qiu <julie@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
|
|
Experiments are now managed via a YAML config file.
Change-Id: I8c70e14bcbdcf3372994b80b1fa420fcbc5232f0
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/259839
Trust: Jonathan Amsterdam <jba@google.com>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Julie Qiu <julie@golang.org>
|
|
Change-Id: I8331a06e4f5d0dfb3b9dee1e9b6d8de2add25bc6
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/255967
Reviewed-by: Julie Qiu <julie@golang.org>
Trust: Miguel Acero <acero@google.com>
|
|
Package documentation is added to devtools/cmd/css and the css filepath is fixed since being moved from content/static/css.
Change-Id: I4f12513a26c273e605a57c8101a1ed06f72e1b23
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/253609
Reviewed-by: Jamal Carvalho <jamal@golang.org>
|
|
content/static/css is moved to devtools/cmd/css (pure code in motion).
Change-Id: I7b48bf017edffb1b4c3c571ed44bac7e09e37918
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/253608
Reviewed-by: Jamal Carvalho <jamal@golang.org>
|
|
Several packages were missing package documentation, which is now added.
Change-Id: I1a88ebebaee0fddeb5a7bb9e2573375ad887c311
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/253607
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
|
|
Users can now remove experiments using the experiment devtool.
Change-Id: I02e2a2b10686271f4b63cd40cdfac6eea28878ae
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/241602
Reviewed-by: Jonathan Amsterdam <jba@google.com>
|
|
Experiments are renamed to be shorter, so that they are easier to type
in query params and when inserting into the database.
Descriptions are added for each experiment, which will be used when
inserting an experiment with the script in
devtools/cmd/experiment/experiment.go.
Change-Id: Ie3f6ba05dbe075c899fc09f139c9b9fc93f7650d
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/240944
Reviewed-by: Jonathan Amsterdam <jba@google.com>
|
|
A script is added to add/update/list experiments.
Change-Id: I9fa306ab102a4ac458ee93f5751b43b9999db4c5
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/240948
Reviewed-by: Jonathan Amsterdam <jba@google.com>
|
|
Report any scripts that will change dynamically due to a template
expansion. CSP hashing can't support scripts like that, because the
contents and therefore the hash will change on each execution.
Change-Id: I975859a59c8f5d19bcd0ffc5dad1e5068a380587
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/240500
Reviewed-by: Julie Qiu <julie@golang.org>
|
|
Add a tool that checks the script hashes used
for our Content Security Policy (CSP).
Run the tool from all.bash.
(Also, prettier decided to change CONTRIBUTING.md.)
Fixes b/159711607.
Change-Id: I4498a19143c53fb90bcf0560ccaf529f4fb72a81
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/240138
Reviewed-by: Julie Qiu <julie@golang.org>
|