The website for Zima Docs. Bulit with Hexo.
Install Hexo
$ npm install -g hexo-cli
Install dependencies:
$ git clone https://github.com/jerrykuku/zima-docs.git
$ cd zima-docs
$ yarn install
Generate:
$ hexo generate
Run server:
$ hexo server
Create a new page:
$ hexo new page <title>
Youtube. You can get youtube video id from youtube video url. https://www.youtube.com/watch?v= DqqY3sDVGKA
{% youtuber video <youtube-video-id> %}
{% endyoutuber %}
Bilibili
{% mmedia "bilibili" "bvid:<video-bvid>" "danmaku:false" %}
Local or internet video
{% mmedia "video" "src:<video-path>" "autoplay:true" %}
tag name: note
tag type: default / primary / success / info / warn / danger
{% note warn <your-note-title> %}
<your-note-body>
{% endnote %}
- open
source/_data/menu.yml
,add a new menu in the original format. - open
themes/zima/languages/en.yml
, add the translation for the new link.
- open
source/_data/sidebar.yml
,add a new link in the original format. - open
themes/zima/languages/en.yml
, add the translation for the new link.
![Specify size](/image/test.jpg?200x200)
![Restricted width](/image/test.jpg?200x)
![Restricted height](/image/test.jpg?x200)
![Specify the ratio](/image/test.jpg?40)