Skip to content

Rewrite examples and new user documentation #4251

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Feb 10, 2025

Conversation

jayconrod
Copy link
Contributor

What type of PR is this?

Documentation

What does this PR do? Why is it needed?

  • Added examples/hello and examples/basic_gazelle. The first is a minimal example, the second uses Gazelle. Both use modules.
  • Removed examples/basic-gazelle. It served as an example for a tutorial that's been replaced upstream. It used WORKSPACE, so it needed an update. I replaced it with a smaller example, since it pulled in a lot of external dependencies.
  • Updated .bazelci/presubmit.yml to build examples on all platforms. I wonder if we want to use bazel_integration_test or go_bazel_test for this though.
  • Several updates to README.rst:
    • Removed Announcements section since it's a bit cluttered and doesn't mention recent releases.
    • Fixed formatting on gomock link.
    • Removed "The rules are in the beta stage of development" since they're actually pretty mature.
    • Added arm64 as a supported platform. It's being tested on macOS at least.
    • Rewrote the Setup section to link to the new user tutorial, the two examples, and the bzlmod/WORKSPACE docs.

Which issues(s) does this PR fix?

Fixes #3717
Fixes #3183
Fixes #1912
Fixes #1154
Updates #1643

Other notes for review

- Added examples/hello and examples/basic_gazelle. The first is a minimal
  example, the second uses Gazelle. Both use modules.
- Removed examples/basic-gazelle. It served as an example for a tutorial
  that's been replaced upstream. It used WORKSPACE, so it needed an
  update. I replaced it with a smaller example, since it pulled in
  a lot of external dependencies.
- Updated .bazelci/presubmit.yml to build examples on all platforms.
  I wonder if we want to use bazel_integration_test or go_bazel_test
  for this though.
- Several updates to README.rst:
  - Removed Announcements section since it's a bit cluttered and doesn't mention
    recent releases.
  - Fixed formatting on gomock link.
  - Removed "The rules are in the beta stage of development" since they're
    actually pretty mature.
  - Added arm64 as a supported platform. It's being tested on macOS at least.
  - Rewrote the Setup section to link to the new user tutorial, the two
    examples, and the bzlmod/WORKSPACE docs.
@jayconrod jayconrod requested review from linzhp and fmeum February 7, 2025 22:01
Copy link
Member

@fmeum fmeum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this makes for a much better onboarding experience!

@jayconrod jayconrod enabled auto-merge (squash) February 10, 2025 18:46
@jayconrod jayconrod merged commit 712ddee into bazel-contrib:master Feb 10, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants