tree: 81a021c9be28fd8623c0cd0f8a833b874b825016 [path history] [tgz]
  1. archetypes/
  2. assets/
  3. cmd/
  4. content/
  5. data/
  6. layouts/
  7. static/
  8. .eslintrc.json
  9. .firebaserc
  10. .gcloudignore
  11. .gitignore
  12. .prettierrc.yaml
  13. .stylelintrc.json
  14. app.learn.yaml
  15. app.staging.learn.yaml
  16. app.staging.yaml
  17. app.yaml
  18. cloudbuild.ci.yaml
  19. cloudbuild.staging.yaml
  20. cloudbuild.yaml
  21. config.toml
  22. Dockerfile.hugo
  23. go.mod
  24. go.sum
  25. LICENSE
  26. 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

Go.dev uses Hugo to serve the frontend client.

To build using the Dockerfile.hugo image:

docker build -t hugo -f Dockerfile.hugo .

Then run and serve locally

docker run -v $(pwd):/src -p 1313:1313 -t -i hugo serve --bind 0.0.0.0 -s /src

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: hugo server -D
  • 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