diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index e6bbe4c043..38435d1cdb 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -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 < docs/SUMMARY.md + # Summary + - [Introduction]() + + EOF + cat SUMMARY.md >> docs/SUMMARY.md mv element-web/book.toml .