forked from Tencent/xLua
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7309ca6
commit c923d65
Showing
2 changed files
with
20 additions
and
24 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,30 @@ | ||
# XLua 教程文档 | ||
|
||
这是XLua的教程文档网站,文档是使用[hexo](http://hexo.io/)构建的。 文档内容在“src”文件夹中,使用Markdown格式编写。 | ||
这是XLua的教程文档网站,文档是使用[hexo](http://hexo.io/)构建的。 文档内容在[src](src)文件夹中,使用Markdown格式编写。 | ||
|
||
## 搭建本地文档环境 | ||
|
||
首先您必须安装[nodejs](http://nodejs.cn/)安装完成后通过如下指令在 `localhost:4000` 启动文档网站: | ||
* 首先您必须安装[nodejs](http://nodejs.cn/)及[npm](https://www.npmjs.com/) | ||
|
||
* 安装hexo,在docs/source下执行 | ||
|
||
``` | ||
$ npm install -g hexo-cli | ||
$ npm install | ||
``` | ||
|
||
* 如下指令在 `localhost:4000` 启动文档网站: | ||
|
||
``` | ||
$ hexo server | ||
``` | ||
``` | ||
|
||
|
||
## 修改Markdown后生成静态网页 | ||
|
||
* 已经安装了hexo的话,执行如下指令: | ||
|
||
``` | ||
$ hexo g | ||
``` | ||
|