I used Gitbook for generation of this documentation. However, recently I started looking for alternatives in case GitBook stops being free.
The tools I had didn't work anymore, didn't want to make an login on the new platform.
I have worked with docsify before and the migration is really easy.
First Install docsify:
npm i docsify-cli -g
- Initialize docsify on your repo folder:
docsify init docs
(default gitlab will usedocs
folder for documentation) - Rename
summary.md
to_sidebar.md
(yes, it’s that simple!) - Copy all the folders/files into
docs
folder - Add
loadSidebar: true
towindow.$docsify
inindex.html
- That’s all there is to it! Now run:
docsify serve
- And push it to Github.
- update absolute links to new docs (
tree/master/
totree/master/docs/
)
Specific for my documentation:
- copy
readme.md
to docs - copy
.nojekyll
to docs (if not generated) - copy
index.html
to docs (if not generated) - copy
favicon.ico
to docs - update
index.html
the js:window.$docsify
- copy data from
book.json
towindow.$docsify
- change
_sidebar.md
"example" to example - change
_sidebar.md
"How to" to "More info"