Clone this repo:
  1. 58f90b8 Prepare release 0.8.1 (#309) by Alexandre Rostovtsev · 2 weeks ago upstream/master 0.8.1
  2. fe49ef3 Improve exception message when encountering unknown attribute types, and sync stardoc_output.proto (#308) by Alexandre Rostovtsev · 2 weeks ago
  3. 9a144be Fix CI for Bazel 9 (#310) by Alexandre Rostovtsev · 2 weeks ago
  4. 6a469c1 chore: readme point to BCR-hosted docs (#306) by Alex Eagle · 3 months ago
  5. c086e25 Fix goldens for latest Bazel@HEAD (#302) by Xùdōng Yáng · 4 months ago

Stardoc - Starlark Documentation Generator

Build status

Stardoc is a documentation generator for Bazel APIs such as custom rules written in Starlark.

Stardoc provides a Bazel rule (stardoc, see documentation) that can be used to generate Markdown documentation for Starlark rules. Stardoc generates one documentation page per .bzl file.

Design and Alternatives

Stardoc runs a Velocity template on the output of the native.starlark_doc_extract rule.

Modules published to the Bazel Central Registry do not need to use Stardoc. They can simply publish the starlark_doc_extract outputs as a release artifact. See https://github.com/bazelbuild/bazel-central-registry/blob/main/docs/stardoc.md.

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.