tree: d5c4250c0c3e0b6d1f634d45b2c2e704752b202f [path history] [tgz]
  1. _content/
  2. _templates/
  3. cmd/
  4. testdata/
  5. .eslintrc.json
  6. .firebaserc
  7. .gcloudignore
  8. .gitignore
  9. .prettierrc.yaml
  10. .stylelintrc.json
  11. app.learn.yaml
  12. app.staging.learn.yaml
  13. app.staging.yaml
  14. app.yaml
  15. cloudbuild.ci.yaml
  16. cloudbuild.staging.yaml
  17. cloudbuild.yaml
  18. go.mod
  19. go.sum
  20. LICENSE
  21. README.md
go.dev/README.md

go.dev

Contributing

git clone sso://partner-code/go.dev && (cd go.dev && f=`git rev-parse --git-dir`/hooks/commit-msg ; mkdir -p $(dirname $f) ; curl -Lo $f https://gerrit-review.googlesource.com/tools/hooks/commit-msg ; chmod +x $f)
  • data/learn contains links for the Learn pages, as all content is currently external.
  • content/solutions contains Use Cases and Case Studies.
    • Please include relevant resources using the same name attribute for images.
  • themes/default contains the site layout.

Style Guides

Installation/Usage

To serve the go.dev pages, run

go run ./cmd/frontend

Deploying

All commits targeting master will trigger a CI test defined in cloudbuild.ci.yaml. All commits pushed to master will be automatically deployed to https://dev.go.dev.

Code repo

https://partner-code.git.corp.google.com/go.dev

Commands

  • Running the server: go run ./cmd/frontend
  • Pushing to staging: git push -f origin HEAD:staging

Where things live

  • Javascript:
  • Carousels: /static/js/carousels.js
  • Tab navigation, filtering, listeners: /static/js/site.js
  • Solutions page template: /layouts/solutions/single.html
  • Home page template: /layouts/index.html
  • Site wide styles: /assets/css/styles.css
  • Site configuration: /config.toml
  • Promotional components (modal, snackbar, etc) are in this branch: messaging-components