Anchit Bajaj b5ae77a06b Add license | 1 سال پیش | |
---|---|---|
.github | 1 سال پیش | |
bookstackclient | 2 سال پیش | |
cli | 1 سال پیش | |
config | 1 سال پیش | |
downloader | 1 سال پیش | |
.gitignore | 1 سال پیش | |
.goreleaser.yaml | 1 سال پیش | |
LICENSE | 1 سال پیش | |
Makefile | 2 سال پیش | |
README.md | 1 سال پیش | |
example.env | 2 سال پیش | |
go.mod | 2 سال پیش | |
go.sum | 2 سال پیش |
CLI tool which generates static sites from Bookstack Wikis.
Usecases:
TODO
Increase the number of API requests allowed per minute in Bookstack by setting API_REQUESTS_PER_MIN=5000
in your Bookstack config.
One day I'll get time to add the automatically trigger SSG feature. Until then, this generates MdBook format markdown and you have to run the mdbook build
command yourself.
If you just want markdown without an HTML site then don't run the mdbook
command.
While setting up the first time:
mdboook init ./book-test
and edit the book.toml
config to your liking.
Then every time you wanna download/update your wiki:
bookstack2site
--bookstack-url=${BookStackEndpoint} \
--token-id=${BookStackAPITokenID} \
--token-secret=${BookStackAPITokenSecret} \
--download-location="./book-test/src"
# to preview
cd ./book-test && mdbook serve -n 0.0.0.0
# to build
cd ./book-test && mdbook build