1 | # Picidae
|
2 |
|
3 | ![](./logo/picidae-2x.png)
|
4 |
|
5 |
|
6 |
|
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 |
|
10 | Picidae is a document generator which has gentle experience. :dash:
|
11 | As 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?
|
18 | There are a lot of document generator now, why I choose Picidae?
|
19 |
|
20 | | | Picidae | Hexo | GitBook |
|
21 | | ----------- | ------- | ---- | -------- |
|
22 | | SPA | ✅ | ❌ | ❌(pjpx) |
|
23 | | Transformer | ✅ | ❌ | ❌ |
|
24 |
|
25 | Why I consider VuePress had supportted transformer partially?
|
26 | VuePress has markdown transformer by [markdown-it](https://github.com/markdown-it/markdown-it).
|
27 | However, 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
|
37 | npm install picidae -g
|
38 |
|
39 | picidae init [blog]
|
40 | cd [blog]
|
41 | # install Globally
|
42 | picidae use picidae-theme-grass
|
43 | # or install Locally
|
44 | npm install picidae picidae-theme-grass --save
|
45 |
|
46 | picidae start
|
47 | open http://localhost:8989
|
48 | # build the site for deploy
|
49 | picidae build
|
50 |
|
51 | # install Globally
|
52 | picidae use picidae-commander-gh-pages
|
53 | # or install Locally
|
54 | npm 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 | # ```
|
62 | picidae gh-pages # deploy the static assets to the github
|
63 | ````
|
64 |
|
65 | ## Theme
|
66 |
|
67 | We can write customized Theme using React.
|
68 | [Default Theme](./theme)
|
69 |
|
70 | ## Commander
|
71 |
|
72 | We can write customized Commander using `commander`.
|
73 | [Commander: New](commanders/gh-pages)
|
74 |
|
75 | ## Transformer
|
76 |
|
77 | We can write customized Transformer which is divided into NodeTransformer & BrowserTransformer
|
78 | As 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 |