mirror of
https://github.com/pezkuwichain/labels.git
synced 2026-04-22 06:37:56 +00:00
Initial labels setup for Pezkuwi SDK
This commit is contained in:
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#!/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
|
||||
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Generate date, commit and footer
|
||||
export DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
|
||||
export COMMIT=$(git rev-parse HEAD)
|
||||
|
||||
tera --template templates/home.md.tera --env-only --include --env --env-key env > docs/src/HOME.md
|
||||
|
||||
mdbook build docs/
|
||||
|
||||
echo "You may now open your book with:"
|
||||
echo "open docs/book/index.html"
|
||||
Reference in New Issue
Block a user