mirror of
https://github.com/pezkuwichain/labels.git
synced 2026-04-22 10:07:56 +00:00
15 lines
368 B
Bash
Executable File
15 lines
368 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
export DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
|
|
export COMMIT=$(git rev-parse HEAD)
|
|
|
|
mkdir -p ./docs/src
|
|
|
|
repo=$1
|
|
repo=${repo:-"polkadot-sdk"}
|
|
|
|
for chain in $repo; do
|
|
echo "Generating doc for $chain..."
|
|
tera --include --env --env-key env --template templates/template.md.tera ruled_labels/specs_${chain}.yaml >./docs/src/doc_${chain}.md
|
|
done
|