element-hq / ems-docs

Element and EMS documentation provided by the EMS team
https://ems-docs.element.io/
MIT License
6 stars 11 forks source link

mdbook to Bookstack conversion scripts #90

Closed karlabbott closed 2 years ago

karlabbott commented 2 years ago

I know we don't have a ready to go bookstack instance just yet, but using my testing instance, I've been able to put together a script that takes an existing mdbook and converts it to a bookstack book.

There are two files here -- one is bookstack.py and that is a python library wrapper around the bookstack api.

The other file is mdbook-to-bookstack.py and it does the work of reading the book.toml and the SUMMARY.md and then recreating the book in bookstack using the API.