Skip to content

Commit

Permalink
Fix doc generation
Browse files Browse the repository at this point in the history
- remove polkadot / substrate / cumulus
- add polkadot-sdk
  • Loading branch information
chevdor committed Aug 30, 2023
1 parent 4f7e0e4 commit 31ab369
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

env:
MDBOOK_VERSION: 0.4.21 # https://github.com/rust-lang/mdBook/releases
TERA_VERSION: 0.2.2 # https://github.com/chevdor/tera-cli/release
TERA_VERSION: 0.2.4 # https://github.com/chevdor/tera-cli/release

steps:
- name: Checkout sources
Expand Down
4 changes: 1 addition & 3 deletions docs/src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,5 @@
[Home](HOME.md)

- [Respositories](#)
- [Polkadot](doc_polkadot.md)
- [Cumulus](doc_cumulus.md)
- [Substrate](doc_substrate.md)
- [Polkadot SDK](doc_polkadot-sdk.md)
- [FAQ](faq.md)
6 changes: 3 additions & 3 deletions scripts/build-doc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ export COMMIT=$(git rev-parse HEAD)

mkdir -p ./docs/src

chains=$1
chains=${chains:-"substrate polkadot cumulus"}
repo=$1
repo=${repo:-"polkadot-sdk"}

for chain in $chains; do
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

0 comments on commit 31ab369

Please sign in to comment.