aboutsummaryrefslogtreecommitdiff
path: root/doc
AgeCommit message (Collapse)Author
34 hoursinternal/api: improve ambiguous package path resolutionHana Kim
Instead of falling back to UnknownModulePath, we now: 1. Query all candidate module paths. 2. Filter out candidates where the database fell back to a different module path (preventing false positives like google.golang.org). 3. Filter out deprecated or retracted candidates if at least one good candidate exists. 4. Return 400 if ambiguity remains among good candidates. This commit fixes the issue where /v1/package/google.golang.org/adk/agent was returning HTTP 400 because all candidate module paths matched: ``` { "code":400, "message":"ambiguous package path", "candidates":[ {"modulePath":"google.golang.org/adk/agent","packagePath":"google.golang.org/adk/agent"}, {"modulePath":"google.golang.org/adk","packagePath":"google.golang.org/adk/agent"}, {"modulePath":"google.golang.org","packagePath":"google.golang.org/adk/agent"}] } ``` Change-Id: I3ea24bca5144d536490019efd85fb597da214029 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/766380 kokoro-CI: kokoro <noreply+kokoro@google.com> Reviewed-by: Jonathan Amsterdam <jba@google.com> LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2026-03-13package.json: move all dependencies to dev dependenciesHana Kim
Our system does not use Node.JS in production. It is only for testing. Make this clear. And remove unneeded dependencies. Change-Id: I7b28bbb62a163cda3cc1e241710e2889f79807c6 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/753420 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Ethan Lee <ethanalee@google.com> kokoro-CI: kokoro <noreply+kokoro@google.com>
2026-03-09all: update PostgreSQL version to 14Ethan Lee
Update Docker configurations and documentation to use PostgreSQL 14, aligning local development and testing environments with production. There has been a change in how PostgreSQL 14 tokenizes paths. This has caused an alteration in how multi word searches are resolved. Update test case to reflect this. See golang/go#78036 for more context. To test: `tests/search/run.sh` Fixes golang/go#77903 Change-Id: I28eaa722914b2163fe962a1b4a1b8681d60b18b3 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/750740 Auto-Submit: Ethan Lee <ethanalee@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com> kokoro-CI: kokoro <noreply+kokoro@google.com>
2026-02-23internal/database: set db connection pool limitsHana Kim
Under high-load, the frontend can issue many queries and trigger many connections. This can exceed the Cloud SQL connection limit of 100 per instance enforced by the Cloud Run environment, even if the database itself has remaining global capacity. To prevent this, we introduce limits on the database connection pool. We also include settings for idle connections and connection lifetimes to ensure better resource management and connection rotation. Introduces new env vars: GO_DISCOVERY_DATABASE_MAX_OPEN_CONNS GO_DISCOVERY_DATABASE_MAX_IDLE_CONNS GO_DISCOVERY_DATABASE_CONN_MAX_LIFETIME GO_DISCOVERY_DATABASE_CONN_MAX_IDLE_TIME Updates SetPoolSettings to validate that MaxIdleConns does not exceed MaxOpenConns, providing a warning if it does and capping it. Change-Id: I74edac05c4a23102d64e74a180c661c223e1b757 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/747620 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Jonathan Amsterdam <jba@google.com> Reviewed-by: Nicholas Husin <nsh@golang.org> Reviewed-by: Nicholas Husin <husin@google.com> kokoro-CI: kokoro <noreply+kokoro@google.com>
2025-11-05internal/config/serverconfig: randomly pick two DBs from same envHongxiang Jiang
Primary and secondary DB will be derived from a single env var GO_DISCOVERY_DATABASE_HOST. The env GO_DISCOVERY_DATABASE_SECONDARY_HOST will be obsolete. Change-Id: I4c5276c1fef7c93f9abbe5878401f22bdbab69dd Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/717800 Reviewed-by: Nicholas Husin <nsh@golang.org> kokoro-CI: kokoro <noreply+kokoro@google.com> Reviewed-by: Nicholas Husin <husin@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Michael Pratt <mpratt@google.com>
2025-10-28all: remove code for the decommissioned beta environmentNicholas S. Husin
The beta environment is no longer in use. This change removes related logic and references, such as the middleware redirect to beta.pkg.go.dev. Change-Id: I0c6ebbe11d5689ccf2abf8c722399d8dc339db89 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/715321 kokoro-CI: kokoro <noreply+kokoro@google.com> Reviewed-by: Jonathan Amsterdam <jba@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Michael Matloob <matloob@google.com> Reviewed-by: Michael Matloob <matloob@golang.org>
2023-04-27all: remove repeated definite articlescui fliter
Change-Id: I5c0291156ec8b1fa0a207c680d121f4b76a63b61 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/489616 Run-TryBot: Ian Lance Taylor <iant@google.com> Run-TryBot: shuang cui <imcusg@gmail.com> TryBot-Result: kokoro <noreply+kokoro@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
2022-10-18doc: corrects number of datasource used by pkgsite frontendDung Le
Change-Id: I20179fd648fc842e679a434f794c4ec8d4b489d2 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/443616 TryBot-Result: kokoro <noreply+kokoro@google.com> Auto-Submit: Hyang-Ah Hana Kim <hyangah@gmail.com> Run-TryBot: Dylan Le <dungtuanle@google.com> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com> Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
2022-07-19doc,CONTRIBUTING.md: update go version to 1.19Stavros Panakakis
Fixes golang/go#53670 Change-Id: I8aba20ea0fbf82a296c2a8fc464a31a8b3a56beb GitHub-Last-Rev: 34611e022af28173da869388e578cea7d93d6af7 GitHub-Pull-Request: golang/pkgsite#47 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/416114 Reviewed-by: Jamal Carvalho <jamal@golang.org> Reviewed-by: Jonathan Amsterdam <jba@google.com>
2022-03-04pkgsite: fix some typoscuishuang
Change-Id: I625bc9feb72cd1bf055b362d83c380d67b57a4c2 GitHub-Last-Rev: c67b5189043943cf9f133ad09fcc40283273087d GitHub-Pull-Request: golang/pkgsite#42 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/389995 Reviewed-by: Jonathan Amsterdam <jba@google.com> Trust: Peter Weinberger <pjw@google.com>
2022-02-02doc,tests: update frontend testing docsJamal Carvalho
Updated docs for screentest checks. Change-Id: Iddf594ca537b4d98ae97c9263568c4a7bd0d893d Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/382434 Trust: Jamal Carvalho <jamal@golang.org> Run-TryBot: Jamal Carvalho <jamal@golang.org> Reviewed-by: Jonathan Amsterdam <jba@google.com>
2021-11-23several: remove prober code and mentionsJonathan Amsterdam
Change-Id: Iac0eba316ee24b60e87e8851584cbe88a8432060 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/366576 Trust: Jonathan Amsterdam <jba@google.com> Run-TryBot: Jonathan Amsterdam <jba@google.com> Reviewed-by: Jamal Carvalho <jamal@golang.org>
2021-09-10doc: add config.mdJulie Qiu
Documentation on environment variables for pkgsite is added. Change-Id: I66f532ffeb4bb6f972e87424a33799f47c01c088 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/348931 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>
2021-08-03devtools/docker: add run.shJulie Qiu
run.sh is added, which is a shorthand for running `docker-compose -f devtools/docker/compose.yaml`. The dockercompose function from devtools/docker.sh is also now used where applicable. Change-Id: I424157c25b4ad7f96d23ba37c3dc2cb4caa34c8c Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/339392 Trust: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> Reviewed-by: Jamal Carvalho <jamal@golang.org>
2021-07-16tests: move e2e/ to tests/e2eJulie Qiu
A new tests directory is created which contains all tests that require setup using docker and a database to be seed. e2e/ is moved to tests/e2e. devtools/run_e2e.sh is renamed to tests/e2e/run.sh. A tests/README.md is added. Change-Id: I224d71b31090ca4a9b0ff4e2adcaee8db7fa236f Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/334374 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>
2021-07-14devtools/docker: rename docker-compose.yaml to compose.yamlJulie Qiu
The "docker-" is removed from docker-compose.yaml to remove unnecessary repetition. Change-Id: I9a4bfcb7dcb52281f49d2c67361454d900ce38c5 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/334449 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>
2021-07-12doc: update instructions for postgres setup with dockerJulie Qiu
Instructions on setting up postgres with docker are updated to use the new docker-compose file. References to GO_DISCOVERY_TEST_XXX are also changed, since we no longer use those environment variables. Change-Id: Ifd212c201594734381fff7118167f773667e2eaf Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/332949 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>
2021-06-18all: remove GO_DISCOVERY_DATABASE_TEST_*Julie Qiu
There doesn't seem to be any reason that the config for testing needs to be different from the normal GO_DISCOVERY_DATABASE_* environment variables. To simplify our setup, remove the GO_DISCOVERY_DATABASE_TEST_* variables and replaced them with the GO_DISCOVERY_DATABASE_* variables. Change-Id: Iedb05579693d70282f6aec531c1f9a443f8e80f0 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/329494 Trust: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Jamal Carvalho <jamal@golang.org>
2021-06-10devtools/e2e: add setup for running e2e in CIJulie Qiu
A setup is added using docker-compose, which allows us to run e2e tests locally and in CI. As of this CL, e2e/basic.test.ts can be run locally using `./e2e/docker/run.sh e2e/basic.test.ts`. Change-Id: Ief17c51ed7ab7de9cc8c535a7061f18d75763ecd Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/326649 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>
2021-05-18doc: add chrome version to browserless/chrome commandJamal Carvalho
Change-Id: I918f2dc3aeae1247c9dc9adb1c314d978272b36a Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/320411 Trust: Jamal Carvalho <jamal@golang.org> Run-TryBot: Jamal Carvalho <jamal@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Julie Qiu <julie@golang.org>
2021-05-14doc: update e2e test instructionsJamal Carvalho
Change-Id: I94fe0c7ff2a12b4d4f333b2222cbc829e538f8e4 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/320049 Trust: Jamal Carvalho <jamal@golang.org> Run-TryBot: Jamal Carvalho <jamal@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Julie Qiu <julie@golang.org>
2021-04-19doc: update frontend docsJamal Carvalho
Updated frontend docs to reflect changes to npm scripts and e2e test config. Change-Id: I4b4b675dc3ff6d17d31db441c2854c05890edc0a Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/311409 Trust: Jamal Carvalho <jamal@golang.org> Reviewed-by: Julie Qiu <julie@golang.org>
2021-03-10doc: update frontend docJamal Carvalho
Updates frontend doc to add new development and build processes for scripts. Change-Id: I518237682b2eb7a832a43d559c616b2aaf80bc3f Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/300553 Trust: Jamal Carvalho <jamal@golang.org> Reviewed-by: Julie Qiu <julie@golang.org>
2021-03-04doc: add e2e test documentationJamal Carvalho
Change-Id: I92142f186b1f1bcd91f6c31155200471d0900374 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/298730 Trust: Jamal Carvalho <jamal@golang.org> Run-TryBot: Jamal Carvalho <jamal@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Julie Qiu <julie@golang.org>
2021-02-22cmd/pkgsite: remove -local flagZyad A. Ali
As local mode is now separate, -local flag is no longer needed. Remove it and use command line arguments instead. Change-Id: Ib4841f582eaf16068a8db163ac91cf1f15855b2e Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/295170 Reviewed-by: Jonathan Amsterdam <jba@google.com> Reviewed-by: Julie Qiu <julie@golang.org> Trust: Jamal Carvalho <jamal@golang.org>
2021-02-17doc: update frontend docs with new testing commandsJamal Carvalho
For golang/go#43361 Change-Id: I5303902f29c746638c7a562833be52d3403d972f Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/292702 Trust: Jamal Carvalho <jamal@golang.org> Run-TryBot: Jamal Carvalho <jamal@golang.org> Reviewed-by: Jonathan Amsterdam <jba@google.com>
2021-02-05cmd/pkgsite: add commandJulie Qiu
Functionality for running the pkgsite frontend locally is moved from cmd/frontend to cmd/pkgsite, since cmd/frontend is currently overloaded with flag options and running locally does not need all the dependencies for running cmd/frontend. Additional functionality will be added to cmd/pkgsite in future CLs. For golang/go#40371 Change-Id: I4230aa9539c94e01a68eda33cc6492ae377debff Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/290134 Reviewed-by: Jamal Carvalho <jamal@golang.org> Trust: Julie Qiu <julie@golang.org>
2021-01-08doc: update frontend docsJamal Carvalho
Adds a section to the frontend docs that details the new frontend development process. For golang/go#40960 Change-Id: Ia9d89c05486819a6a236af7d69a5416f03257ab5 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/281776 Trust: Jamal Carvalho <jamal@golang.org> Reviewed-by: Julie Qiu <julie@golang.org>
2021-01-05doc: fix formatting in frontend docJamal Carvalho
Change-Id: I00406b65b2488c004cf3307b5a58edec3f1dba48 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/280894 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>
2020-12-30e2e: add snapshot tests for homepageJamal Carvalho
Adds accessibility tree and image snapshot tests for the homepage. These tests will create diffs on failure. Timeouts and diff thresholds are configurable if adjustments are needed to prevent test flake. API for image snapshots is available here: https://github.com/americanexpress/jest-image-snapshot\#%EF%B8%8F-api. To run the tests locally, start the pkgsite server and then run ./devtools/npm.sh run test-e2e Change-Id: I73a60764bb60b494230b92b88b7eb989f10c00d4 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/280693 Trust: Jamal Carvalho <jamal@golang.org> Run-TryBot: Jamal Carvalho <jamal@golang.org> Reviewed-by: Julie Qiu <julie@golang.org>
2020-12-15doc: clarify that Postgres v11 or higher is requiredJonathan Amsterdam
See golang/go#43154, where an older version was missing a function we use. Change-Id: I268b5ded629bf10504bb2418843978f21c15f483 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/278292 Trust: Jonathan Amsterdam <jba@google.com> Run-TryBot: Jonathan Amsterdam <jba@google.com> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Julie Qiu <julie@golang.org>
2020-12-09all.bash: update prettier script to use dockerized prettier installJamal Carvalho
Updates all.bash to use a dockerized prettier install as a fallback when prettier is not installed globally. For now the script will only use the container if it has already been built. We could change this in the future to automatically build the image but this will give everyone a chance to test it out first. To build the image run 'docker-compose -f devtools/config/docker-compose.yaml build' from the repo root. Change-Id: I56ad2cd2da2fe0dbbf46636024f44cc614adb168 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/275532 Trust: Jamal Carvalho <jamal@golang.org> Run-TryBot: Jamal Carvalho <jamal@golang.org> Reviewed-by: Jonathan Amsterdam <jba@google.com> Reviewed-by: Julie Qiu <julie@golang.org>
2020-11-30doc: correct environment variable in postgres.mdCharlotte Brandhorst-Satzkorn
The Postgres contribution guide (/doc/postgres.md) tells the user to use a specific environment variable called "GO_DISCOVERY_RUN_TESTDB" to enable the tests to run the database tests. However, everywhere else in the code the variable is referenced as "GO_DISCOVERY_TESTDB". Changes the environment variable named in the document to match the environment variables in the code. Change-Id: Ie17007e5799594223533a6ce13e08c92baf9efb8 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/273926 Reviewed-by: Jonathan Amsterdam <jba@google.com> Reviewed-by: Julie Qiu <julie@golang.org> Trust: Jonathan Amsterdam <jba@google.com> Run-TryBot: Jonathan Amsterdam <jba@google.com> TryBot-Result: kokoro <noreply+kokoro@google.com>
2020-11-24doc/postgres.md: document being clearer about data migrationsJonathan Amsterdam
Change-Id: Ic2b1e7201887ca36d58944020c78f17928262425 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/272794 Trust: Jonathan Amsterdam <jba@google.com> Run-TryBot: Jonathan Amsterdam <jba@google.com> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Jamal Carvalho <jamal@golang.org>
2020-11-16doc: ran prettier on frontend.mdJulie Qiu
A stray newline is removed from running prettier via all.bash. Change-Id: I777b816c1355a909f9275e12d8fcb22dc9d578f0 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/270239 Reviewed-by: Jonathan Amsterdam <jba@google.com> Trust: Julie Qiu <julie@golang.org>
2020-11-13x/pgksite: update frontend.md with JS mentionEli Bendersky
Update doc to mention how to recompile JS Change-Id: Ia0eab4471a6aba9484094d6bb9bb8c91e32109ac GitHub-Last-Rev: 2d2c7c2ecaad43b38fc478902adb1ad5a69cf8f5 GitHub-Pull-Request: golang/pkgsite#17 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/269497 Reviewed-by: Jonathan Amsterdam <jba@google.com> Reviewed-by: Jamal Carvalho <jamal@golang.org>
2020-10-27all: add tool for enabling all experimentsJulie Qiu
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>
2020-10-19doc: add information about running the frontend with -localZyad A. Ali
Change-Id: I35a0b6194924a4e4d654af64e7bf2ef6be8bd902 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/263100 Reviewed-by: Julie Qiu <julie@golang.org> Trust: Dmitri Shuralyov <dmitshur@golang.org>
2020-10-06doc: describe dynamic config setupJonathan Amsterdam
Change-Id: I387cb8c2c7fcd4f58239b56948bca57fc1a326c6 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/259837 Trust: Jonathan Amsterdam <jba@google.com> Run-TryBot: Jonathan Amsterdam <jba@google.com> Reviewed-by: Julie Qiu <julie@golang.org>
2020-08-06internal/postgres,etc.: support bypassing license restrictionsJonathan Amsterdam
Add a mode to postgres.DB where data is saved even if the module or package is not redistributable. This "bypassing license restrictions" mode is off by default. Add a flag to the worker binary to turn it on. Used a flag rather than an environment variable so there is no way for ambient state to affect the binary for this important decision. Also: - Add a test to verify that license data is removed/not removed depending on the bypass setting. - Fix a bug where the new model insertion wasn't omitting documentation for non-redistributable modules. - Fix a bug in internal/sample where the top-level readme wasn't getting populated. A later CL will change the frontend to bypass the check. For golang/go#39602 For golang/go#39629 Change-Id: I67a6d24c18f3b93cfbfc9ec2a20159c07a84e077 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/246957 Reviewed-by: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com>
2020-08-06doc: fix go mod index and mirror urlsAmarjeet Anand
Go mod index and mirror urls were missing http scheme in the design doc. As a result, it was redirecting to https://github.com/golang/pkgsite/blob/master/doc/proxy.golang.org. Fixes golang/go#40602 Change-Id: I8717101d64769fd5dd9af0b90bed28c2a19c4986 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/247097 Reviewed-by: Jonathan Amsterdam <jba@google.com>
2020-07-15doc: update precommit.mdMiguel Acero
This change removes internal information about Google workstations from documentation. Change-Id: I9284ee56d6fe2364b36e4146a16bfca50e7fc90a Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/242779 Reviewed-by: Julie Qiu <julie@golang.org>
2020-07-08doc: prettier-ed frontend.md and worker.mdJulie Qiu
Change-Id: I095d23ba746648e7efe9b7872e66db56143a48bd Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/241377 Reviewed-by: Jonathan Amsterdam <jba@google.com>
2020-07-07doc: improve 'go run' tips for cmd packagesDaniel Martí
Running a single Go file is OK if that file is specifically standalone, such as gen_foo.go. However, if we're building an entire package, it's both easier and better to build the entire package instead. Even if the package is currently just one file, using 'go run ./cmd/frontend' is easier to type, and won't break if the package ever gets more Go files, which is likely. While at it, use indentation for short single-line code blocks, since that's nicer in plaintext than triple backticks. Change-Id: If905cbe79eedbd676dbeb4ead2588a9a6a7ebb76 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/241018 Reviewed-by: Julie Qiu <julie@golang.org> Reviewed-by: Jonathan Amsterdam <jba@google.com>
2020-06-30devtools/cmd/csphash: check script hashes for CSPJonathan Amsterdam
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>
2020-06-23doc: update postgres.mdJulie Qiu
Information is added about GO_DISCOVERY_RUN_TESTDB and docker setup. Change-Id: Ib6fea76f2ad2bece0f520c1a765b7f775dd4e179 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/239285 Reviewed-by: Jonathan Amsterdam <jba@google.com>
2020-06-15doc: fix architecture.pngJulie Qiu
Update line colors to match and add missing arrow from frontend to frontend task queue. Change-Id: I988fcc8a7ed012980c4cbccf0dc58af23ffc8922 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/237940 Reviewed-by: Jonathan Amsterdam <jba@google.com>
2020-06-15doc: fix link to postgres.md and database.mdJulie Qiu
Change-Id: I37237bb48a5eaa4b9517850b7414f10363a9934e Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/237939 Reviewed-by: Jamal Carvalho <jamalcarvalho@google.com> Reviewed-by: Andrew Bonventre <andybons@golang.org>
2020-06-11doc: minor updates and fixed formatting to postgres.mdJulie Qiu
Change-Id: I077a67ec75217cc2c84f66717b0229f15802e84e Reviewed-on: https://team-review.git.corp.google.com/c/golang/discovery/+/768679 CI-Result: Cloud Build <devtools-proctor-result-processor@system.gserviceaccount.com> Reviewed-by: Jonathan Amsterdam <jba@google.com>
2020-06-11doc: format and ran prettier on precommit.mdJulie Qiu
Change-Id: Ibcff373bc817f2b67abbb45b85ae7ccb34b5bcfd Reviewed-on: https://team-review.git.corp.google.com/c/golang/discovery/+/768318 CI-Result: Cloud Build <devtools-proctor-result-processor@system.gserviceaccount.com> Reviewed-by: Jonathan Amsterdam <jba@google.com>