Disclaimer: Under development and not ready for automatic usage.
This repo intent to serve a template to create an awesome looking documentation page of markdown files using docsify.js with few simple steps.
- Dark Mode Theme switch
- Local development with docker-compose
- Automatic sidebar creation
- Copy button for code boxes
- Pagination Plugin
- Search bar Plugin
- Move all markdown documentation files into a folder
./docs
- Copy the
index.html
into./docs
- Add an empty
.nojekyll
-File into./docs
- Create a manual
_sidebar.md
into./docs
with your wished structure
To use docker-compose for local development also add
Dockerfile
anddocker-compose.yml
to your./docs
directory.
- Install docsify-cli:
npm i docsify-cli -g
- Run local dev server with:
docsify serve ./docs
- Start docker-compose in detached mode:
docker-compose up -d
- View your page at
http://localhost:3000
- Stop docker-compose:
docker-compose stop
Page reload is necessary to view the updates.
- It's a good practice to organize your docs into folder for the specific topic.
Change the name in index.html
at window.$docsify = {
Take a look at the documentation of awesome docsify resources: https://docsify.js.org/#/awesome
- Install hfour/docsify-tools to automatically create a sidebar with CLI
- Add numbers in front of your filenames and folder e.g.
10-readme.md
to letdocsify-tools
create the sidebar in your wished order
Take a look at the documentation of docsify: https://docsify.js.org/#/deploy.