Switch to Bzlmod by default for managing external dependencies (#213)

Switch from WORKSPACE-based to bzlmod-based dependency management by default.

WORKSPACE-based usage is still supported for users loading Stardoc's versioned distro tarballs,
but some packages (`//distro`) in the git development tree will no longer load, and some of
Stardoc's own golden tests will no longer pass, when using WORKSPACE.

Note that the new default behavior - when using Bzlmod for dependency management - is
that Stardoc uses `@stardoc` as its repo name. The legacy WORKSPACE-based setup uses
`@io_bazel_stardoc` as repo name. For compatibility with the legacy `WORKSPACE` setup,
and for ease of migration, users of Stardoc may load it via
`bazel_dep(name = "stardoc", repo_name = "io_bazel_stardoc", ...)` in their `MODULE.bazel`.

Fixes #189
22 files changed
tree: 28155b0bc72632ae869066171796c5e8549845db
  1. .bazelci/
  2. distro/
  3. docs/
  4. src/
  5. stardoc/
  6. test/
  7. .bazelignore
  8. .bazelrc
  9. .gitignore
  10. AUTHORS
  11. BUILD
  12. CHANGELOG.md
  13. CODEOWNERS
  14. CONTRIBUTING.md
  15. CONTRIBUTORS
  16. deps.bzl
  17. LICENSE
  18. maven_install.json
  19. MODULE.bazel
  20. README.md
  21. rules_jvm_external.patch
  22. setup.bzl
  23. update-release-binary.sh
  24. update-stardoc-docs.sh
  25. update-stardoc-tests.sh
  26. version.bzl
  27. WORKSPACE
  28. WORKSPACE.bzlmod
README.md

Stardoc - Starlark Documentation Generator

Build status

Stardoc is a documentation generator for Bazel build rules written in Starlark.

Stardoc provides a Starlark rule (stardoc, see documentation) that can be used to build documentation for Starlark rules in Markdown. Stardoc generates one documentation page per .bzlfile.

Get Started

About Stardoc

Project Status

Skydoc deprecation

Stardoc is a replacement for the deprecated “Skydoc” documentation generator.

See Skydoc Deprecation for details on the deprecation and migration details.

Future plans

See our future plans for refactoring Stardoc to be more consistent with how Bazel evaluates .bzl files, and what it means for maintenance of this project.

Maintainer's guide

See the maintaner's guide for instructions for cutting a new release.