Update docs.yml

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/26389/head
Michael Telatynski 2023-10-17 10:25:27 +01:00
parent 0325273a68
commit 9b560e8303
No known key found for this signature in database
GPG Key ID: A2B008A5F49F5D0D
1 changed files with 10 additions and 1 deletions

View File

@ -69,7 +69,16 @@ jobs:
sed -i -e 's/\.\.\/README.md/README.md/' docs/**/SUMMARY.md
mdbook-combiner -m docs
mv SUMMARY.md docs/
sed -i -E 's/^\t# (.+)$/- [\1]()/gm;t' SUMMARY.md
sed -i -E 's/^- \[(.+)]\(<>\)$/---\n# \1/gm;t' SUMMARY.md
sed -i -E 's/\t- \[Introduction]/- [Introduction]/gm;t' SUMMARY.md
cat <<EOF > docs/SUMMARY.md
# Summary
- [Introduction](<Element Web/README.md>)
EOF
cat SUMMARY.md >> docs/SUMMARY.md
mv element-web/book.toml .