Giter Club home page Giter Club logo

brains's Introduction

安装和运行

前置条件

  1. 本地运行站点需要安装Node.js

  2. 安装Hexo Client

    npm install -g hexo-cli

安装依赖

npm install

编译Markdown(自动watch)

hexo g -w

运行Hexo本地server

hexo server

##浏览器查看站点

http://localhost:4000/

发布到github

git add .
git commit -m "xxx"
git remote add origin https://github.com/wangkai12306/MyBrains.git
git push -u origin master

添加新文档

主要目录结构和功能

.    
├── source                   # 文档源码
|   ├── zh-cn                # 文档中文源码
|   |   ├── bigdata          # 导航菜单1
|   |   ├── hearts           # 导航菜单2
|   |   ├── program          # 导航菜单3
└── themes                   # 主题
    └── navy                 # navy主题
        ├── languages        # 主题语言
        |   ├── zh-cn.yml    # 中文语言配置
        └── _config.yml      # 主题配置

添加新文档

source > zh-cn > bigdata | hearts | program目录下按照文档路径添加新文档(Markdown),文件名要求为英文。

使用hexo generate命令将markdown解析成同名HTML文件到public下对应目录。 建议使用hexo g -w实时watch和解析markdown

添加新文档导航

编辑themes > navy > _config.yml,在sidebar下对应位置添加新文档文件名。

配置新文档语言

编辑themes > navy > languages > zh-cn.yml,在sidebar下对应位置添加新文档文件名和中文翻译名。

brains's People

Contributors

purefun avatar wangkai12306 avatar

Watchers

James Cloos avatar  avatar

Forkers

purefun

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.