Bt-docs
Write beautiful and concise document in a easy way.
Write beautiful and concise document in a easy way.
markdown
First we need use Jekyll to build the content.
You can fork the github repository, or download zip package.
Fork it in Github, use the souce code in your project.
git checkout -b docs
git merge https://github.com/liaohuqiu/bt-docs
git submodule upate
git commit
git push origin docs
If you dont use git, you can download the zip package.
The copy the files into your document directory.
Download zipbt-docs/
├── assets # js / css / image
├── _config.yml # configure for jekyll
├── dist # js / css of bootstrap
├── _includes # templete parts
├── _layouts
├── _plugins
├── README.md
└── _site # the site content will be build to
_config.yml
# site information
info:
site_name: Bt-docs
meta:
description: "The default description for this site"
keywords: "Default keywords for this site"
author: "Author information"
# multiple language
language_default: 'en'
languages: ["en", "cn"]
# left navigation
left_nav:
en:
title: The title
path: /
items:
- path: /page1
title: "Another page"
- path: /page2
title: "Yet another page"
cn:
title: "网站标题"
path: /cn
items:
- path: /cn/page1
title: "页面1"
- path: /cn/page2
title: "页面2"
# right navigation
right_nav:
- title: English Version
url: /
- title: 中文版文档
url: /cn
- title: Fork on Github
url: https://github.com/liaohuqiu/bt-docs
# analytics account information, remember to change this.
analytics:
google:
account: UA-43024238-5
If you are using git, please remember git submodule update
before build.
If not specified in _config.yml
, The site content will be generated into the destination directory, for example: _site
.
You can debug the site locally: jekyll server -w
.
Multiple Languages is sported by Jekyll Multiple Languages Plugin, and Github page runs in a safe mode
in which most of the plugins can not run.
If your website is hosted in Github, here is a solution: How to use Jekyll plugins on Github Pages