UNPKG

3.05 kBMarkdownView Raw
1# Picidae
2
3![](./logo/picidae-2x.png)
4
5<!--[![build status](https://img.shields.io/travis/picidaejs/picidae/master.svg?style=flat-square)](https://travis-ci.org/picidaejs/picidae)-->
6<!--[![Test coverage](https://img.shields.io/codecov/c/github/picidaejs/picidae.svg?style=flat-square)](https://codecov.io/github/picidaejs/picidae?branch=master)-->
7[![NPM version](https://img.shields.io/npm/v/picidae.svg?style=flat-square)](https://www.npmjs.com/package/picidae)
8[![NPM Downloads](https://img.shields.io/npm/dm/picidae.svg?style=flat-square&maxAge=43200)](https://www.npmjs.com/package/picidae)
9
10Picidae is a document generator which has gentle experience. :dash:
11As shown below
12
13![](https://i.loli.net/2017/11/07/5a01c6630dc5f.jpg)
14
15[Picidae Video](https://picidaejs.github.io/picidaejs/public)
16
17## Why?
18There are a lot of document generator now, why I choose Picidae?
19
20| | Picidae | Hexo | GitBook |
21| ----------- | ------- | ---- | -------- |
22| SPA | ✅ | ❌ | ❌(pjpx) |
23| Transformer | ✅ | ❌ | ❌ |
24
25Why I consider VuePress had supportted transformer partially?
26VuePress has markdown transformer by [markdown-it](https://github.com/markdown-it/markdown-it).
27However, Picidae has more than it which includes **browser transformer**. the browser transformer could do lots of magic, eg. [react-render](https://github.com/picidaejs/picidae-transformer-react-render)
28
29## Where use it
30- [Myself own Blog](https://imcuttle.github.io/)
31- [Baidu EUX](https://be-fe.github.io/picidae-theme-eux-blog/)
32- [Picidae Document](https://picidaejs.github.io/picidaejs/)
33
34## Starter
35
36````bash
37npm install picidae -g
38
39picidae init [blog]
40cd [blog]
41# install Globally
42picidae use picidae-theme-grass
43# or install Locally
44npm install picidae picidae-theme-grass --save
45
46picidae start
47open http://localhost:8989
48# build the site for deploy
49picidae build
50
51# install Globally
52picidae use picidae-commander-gh-pages
53# or install Locally
54npm install picidae-commander-gh-pages --save
55
56# ```
57# // append the configuration.
58# commanders: [
59# 'gh-pages?repo=git@github.com:[username]/[username].github.io.git&branch=master&remote=origin'
60# ]
61# ```
62picidae gh-pages # deploy the static assets to the github
63````
64
65## Theme
66
67We can write customized Theme using React.
68[Default Theme](./theme)
69
70## Commander
71
72We can write customized Commander using `commander`.
73[Commander: New](commanders/gh-pages)
74
75## Transformer
76
77We can write customized Transformer which is divided into NodeTransformer & BrowserTransformer
78As shown below
79
80** mdast -> remark transformer -> markdown -> markdown transfromer -> markdown -> html -> html transformer -> html -> browser transformer (converter) -> html-to-react **
81
82- [picidae-transformer-style-loader](https://github.com/picidaejs/picidae-transformer-style-loader)
83- [picidae-transformer-react-render](https://github.com/picidaejs/picidae-transformer-react-render)
84- [picidae-transformer-file-syntax](https://github.com/picidaejs/picidae-transformer-file-syntax)
85- ...
86
87
\No newline at end of file