1 - al_hugo_site_info
AlHugoSiteInfo
load("@com-alwaldend-git-src//bzl/providers:al_hugo_site_info.bzl", "AlHugoSiteInfo") AlHugoSiteInfo(content, data, themes, layouts, config, env, env_script)
Information about a hugo site
FIELDS
Name | Description |
---|---|
content | Content dir |
data | Data dir |
themes | Themes dir |
layouts | Layouts dir |
config | Config file |
env | Environment variables |
env_script | Shell script to export env variables |
2 - al_toml_info
AlTomlInfo
load("@com-alwaldend-git-src//bzl/providers:al_toml_info.bzl", "AlTomlInfo") AlTomlInfo(srcs, deps)
Provide toml data info
FIELDS
Name | Description |
---|---|
srcs | Toml files |
deps | Toml data targets |
3 - al_transitive_sources
AlTransitiveSources
load("@com-alwaldend-git-src//bzl/providers:al_transitive_sources.bzl", "AlTransitiveSources") AlTransitiveSources(transitive_sources)
Provide transitive sources
- https://github.com/bazelbuild/examples/blob/main/rules/depsets/foo.bzl
- https://stackoverflow.com/a/57699683
FIELDS
Name | Description |
---|---|
transitive_sources | - |
al_transitive_sources
load("@com-alwaldend-git-src//bzl/providers:al_transitive_sources.bzl", "al_transitive_sources") al_transitive_sources(srcs, deps)
Obtain the source files for a target and its transitive dependencies.
PARAMETERS
Name | Description | Default Value |
---|---|---|
srcs | a list of source files | none |
deps | a list of targets that are direct dependencies | none |
RETURNS
a collection of the transitive sources