rules_docs¶
Declare runtime dependencies
mkdocs_repository¶
load("@rules_docs//docgen:repositories.bzl", "mkdocs_repository")
mkdocs_repository(name, plugins, pypi_hub, repo_mapping)
Fetch external tools needed for docgen toolchain
ATTRIBUTES
| Name | Description | Type | Mandatory | Default |
|---|---|---|---|---|
| name | A unique name for this repository. | Name | required | |
| plugins | List of mkdocs plugins to install | List of strings | optional | [] |
| pypi_hub | Name of the pip repository hub that contains mkdocs | Label | required | |
| repo_mapping | In WORKSPACE context only: a dictionary from local repository name to global repository name. This allows controls over workspace dependency resolution for dependencies of this repository.For example, an entry "@foo": "@bar" declares that, for any time this repository depends on @foo (such as a dependency on @foo//some:target, it should actually resolve that dependency within globally-declared @bar (@bar//some:target).This attribute is not supported in MODULE.bazel context (when invoking a repository rule inside a module extension's implementation function). |
Dictionary: String -> String | optional |
Last updated: January 01, 2026 at 08:16 PM