Giter VIP home page Giter VIP logo

wow's Introduction

wow

A static site generator. Write markdown, build HTML.

Install

  • git clone 代码。
  • npm install 安装依赖。
  • npm link 本地调试。

Usage

  • wow build -s markdown -o output(-s: 源文件目录,-o: 输出文件目录)。
  • wow serve -d output -p 3000(-d: 服务根目录路径,-p: 端口)。

Test

  • 完成 Install 步骤。
  • 进入 test 目录。
  • wow build -s markdown
  • wow serve -d output
  • visit http://127.0.0.1:3000
  • wow publish -d output,发布 output 目录到当前仓库的 gh-pages 分支。

Preview

wow

Todo

  • markdown 声明 meta 信息并在 compile 模板时提取。
  • 404 页面。
  • 访问统计(如 GA),通过配置文件方式。
  • 代码中 TODO 解决。
  • CSS 抽出。

Done

  • 读取 markdown 目录,生成目录结构 json。
  • 处理 markdown 文件生成 html。
  • 生成 html 并注入基本页面模板和样式。
  • 静态服务器。
  • 首页兜底。
  • gh-pages 推送,利用 GitHub 预览(仅本项目测试使用,详见 npm run push-gh-pages 指令)。
  • build 前 clean 操作。
  • 增加 publish 指令,发送指令目录到当前仓库 gh-pages 分支。

wow's People

Contributors

byr-gdp avatar

Stargazers

 avatar

Watchers

 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.