Giter Site home page Giter Site logo

wiz-manual's Introduction

为知笔记帮助手册

打包和nginx设置

由于改动了配置文件结构,无法使用官方的gitbook进行打包,请使用我们修改过的支持中文搜索的gitbook版本

npm install -g codepiano/gitbook

打包后的文件在 repo路径/manual/ 下,每次生成网站都会先清空manual目录,有一个简陋的index.html,方便测试时预览

sh pkg.sh

nginx设置,添加

location / {
    root   repo路径/manual;
    index  index.html;
}


location ^~ /manual {
    root   repo路径/;
    index  index.html;
}

favicon.ico

运行时会尝试分析出gitbook的路径,然后使用目录中的替换gitbook默认的favicon.ico

markdown文件规范

  1. 按照markdown语法规范
  2. 尽量不要使用html标签,目前只有锚点无法使用纯markdown实现
  3. 使用-分割文件名中的单词
  4. 不要出现多余的空行、空白字符
  5. 图片命名规范化,旧的命名没必要浪费精力修改了,以后更新的时候尽量使用有意义的名称

所用插件

在gitbook所在目录下安装

  1. 第三方评论插件,集成多说评论

    npm install gitbook-plugin-duoshuo
  2. 谷歌分析插件

    npm install gitbook-plugin-ga
  3. 百度分析插件

    npm install gitbook-plugin-baiduana

wiz-manual's People

Contributors

codepiano avatar xyakamoz avatar yxlbetty avatar dhran avatar

Watchers

bopo.wang avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.