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 usedocsfolder for documentation) - Rename
summary.mdto_sidebar.md(yes, it’s that simple!) - Copy all the folders/files into
docsfolder - Add
loadSidebar: truetowindow.$docsifyinindex.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.mdto docs - copy
.nojekyllto docs (if not generated) - copy
index.htmlto docs (if not generated) - copy
favicon.icoto docs - update
index.htmlthe js:window.$docsify - copy data from
book.jsontowindow.$docsify - change
_sidebar.md"example" to example - change
_sidebar.md"How to" to "More info" - convert path to code