From 91550d41e3f9ebcce1e329c2b5073c724ed2b02c Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Sun, 14 Sep 2014 22:38:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/zh_CN/setup.html | 20 ++++++++++++++++++-- main.go | 3 +++ 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/doc/zh_CN/setup.html b/doc/zh_CN/setup.html index 16aa5ae..6541a16 100644 --- a/doc/zh_CN/setup.html +++ b/doc/zh_CN/setup.html @@ -12,8 +12,8 @@
  1. 下载 Wide 安装包
  2. 解压到安装路径 {wide},例如 /root/wide
  3. -
  4. 配置 {wide}/conf/wide.json(配置项说明
  5. -
+
  • 配置 {wide}/conf/wide.json(可选,默认配置应该可以工作)
  • +

    多用户配置

    前提:需要安装 git。 @@ -22,5 +22,21 @@
  • 添加用户:修改 {wide}/conf/wide.json 中的 Users
  • 添加用户库:在 {wide}/data/user_workspaces/{user}/ 中 git clone 主库
  • + +

    从源码安装

    + 前提: +
      +
    1. 搭建好 Go 开发环境
    2. +
    3. 安装好 git
    4. +
    + + 步骤: +
      +
    1. 通过 git clone 或下载 zip 包方式获取 Wide 源码(项目地址:https://github.com/b3log/wide
    2. +
    3. 获取 Wide 依赖:go get -u
    4. +
    5. 编译 Wide:go build
    6. +
    7. 配置 {wide}/conf/wide.json(可选,默认配置应该可以工作)
    8. +
    9. 运行可执行文件 wide 或 wide.exe
    10. +
    diff --git a/main.go b/main.go index 85b1032..16857e9 100644 --- a/main.go +++ b/main.go @@ -16,6 +16,9 @@ import ( "github.com/b3log/wide/shell" "github.com/b3log/wide/user" "github.com/golang/glog" + + _ "github.com/88250/ide_stub" // 运行时依赖,用于跳转到声明、查找使用等功能 + _ "github.com/nsf/gocode" // 运行时依赖,用于代码自动完成 ) // Wide 中唯一一个 init 函数.