├── .gitignore
├── _includes
├── footer.html
├── head.html
└── header.html
├── _layouts
├── default.html
└── post.html
├── _config.yml
├── README.md
├── index.html
├── _data
└── members.yml
├── about
└── index.md
└── css
├── main.css
└── yue.css
/.gitignore:
--------------------------------------------------------------------------------
1 | _site
2 |
--------------------------------------------------------------------------------
/_includes/footer.html:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/_includes/head.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/_layouts/default.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | {{ page.title }}
5 | {% include head.html %}
6 |
7 |
8 | {{ content }}
9 | {% include footer.html %}
10 |
11 |
12 |
--------------------------------------------------------------------------------
/_config.yml:
--------------------------------------------------------------------------------
1 | name: CN 开放数据计划
2 | timezone: Asia/Shanghai
3 | markdown: kramdown
4 | highlight: null
5 | permalink: /:year-:month-:day.html
6 |
7 | exclude:
8 | - README.md
9 |
10 | nav:
11 | - title: 关于
12 | link: "/about/"
13 | - title: 项目
14 | link: "#"
15 | - title: 博客
16 | link: "#"
17 |
--------------------------------------------------------------------------------
/_includes/header.html:
--------------------------------------------------------------------------------
1 |
11 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # CN 开放数据计划
2 |
3 | CN 开放数据计划旨在创建一个更透明更友好的政府数据库,收录整理中华人民共和国的法律、国家规范与标准、公共服务信息等数据。
4 |
5 | ## 如何加入
6 |
7 | 使用 GitHub 的 Fork & Pull Request 机制,你不必成为该计划的一员就可以参与该计划。加入我们意味着承担更多的责任,你需要参与讨论,review 他人的代码,回答社区的疑问等等。
8 |
9 | 你可以 [Fork Me](https://github.com/cn/cn.github.io),在 `_data/members.yml` 里添加自己的信息,提交 Pull Request 加入我们。如果你不是程序员,你可以选择[创建一个 Issue](https://github.com/cn/cn.github.io/issues/new) 来加入我们。
10 |
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 | ---
2 | layout: default
3 | title: CN 开放数据计划
4 | ---
5 |
6 |
14 |
15 |
16 | {{ content }}
17 |
18 |
19 |
--------------------------------------------------------------------------------
/_layouts/post.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | {{ page.title }} — {{ site.name }}
5 | {% include head.html %}
6 |
7 |
8 |
16 |
17 |
18 | {{ content }}
19 |
20 |
21 | {% include footer.html %}
22 |
23 |
24 |
--------------------------------------------------------------------------------
/_data/members.yml:
--------------------------------------------------------------------------------
1 | lepture:
2 | name: Hsiaoming Yang
3 | avatar: "https://avatars.githubusercontent.com/u/290496"
4 | website: "http://lepture.com/"
5 | github: lepture
6 | twitter: lepture
7 | weibo: lepture
8 |
9 | tonyseek:
10 | name: Jiangge Zhang
11 | website: "https://tonyseek.com/"
12 | github: tonyseek
13 |
14 | hotoo:
15 | name: 闲耘
16 | website: "http://hotoo.me/"
17 | github: hotoo
18 |
19 | shen2:
20 | name: 沈振宇
21 | website: "http://shen2.cn/"
22 | github: shen2
23 |
24 | turingou:
25 | name: Guo Yu
26 | avatar: "https://avatars1.githubusercontent.com/u/1269537"
27 | website: "http://guoyu.me/"
28 | github: turingou
29 |
30 | Mr-Wiredancer:
31 | name: 利嘉豪
32 | github: Mr-Wiredancer
33 | weibo: mrwiredancer
34 |
--------------------------------------------------------------------------------
/about/index.md:
--------------------------------------------------------------------------------
1 | ---
2 | layout: post
3 | title: 关于
4 | ---
5 |
6 | CN 开放数据计划旨在创建一个更透明更友好的政府数据库,收录整理中华人民共和国的法律、国家规范与标准、公共服务信息等数据。
7 |
8 | ## 程序化数据
9 |
10 | 数据以方便程序处理的文本形式存储,文本内容使用 Markdown 格式,其它数据使用相应的最适合的形式,如 JSON、YAML 等。
11 |
12 | 可编程是该计划的重点。基于这些收集到的数据,可以提供一些语言的模块库方便开发者使用,也可以提供完整的程序供大众使用。
13 |
14 | ## 透明与开放
15 |
16 | 该计划的数据托管于 GitHub,任何人都可以访问该组织的 [GitHub](https://github.com/cn) 查看。该计划使用 Git 做为版本控制软件,任何人都可以查看到项目的历史进程。
17 |
18 | 任何人都可以参与该计划,使用 GitHub 的 Fork & Pull Request 机制,你可以帮助修正错误、增加特性等等。你也可以使用 GitHub 的 Issues 功能发表你的想法,提出你的意见。
19 |
20 | ## 如何加入
21 |
22 | 使用 GitHub 的 Fork & Pull Request 机制,你不必成为该计划的一员就可以参与该计划。加入我们意味着承担更多的责任,你需要参与讨论,review 他人的代码,回答社区的疑问等等。
23 |
24 | 你可以 [Fork Me](https://github.com/cn/cn.github.io),在 `_data/members.yml` 里添加自己的信息,提交 Pull Request 加入我们。如果你不是程序员,你可以选择[创建一个 Issue](https://github.com/cn/cn.github.io/issues/new) 来加入我们。
25 |
--------------------------------------------------------------------------------
/css/main.css:
--------------------------------------------------------------------------------
1 | html, body {
2 | padding: 0;
3 | margin: 0;
4 | }
5 | .container {
6 | margin-left: auto;
7 | margin-right: auto;
8 | max-width: 860px;
9 | width: 90%;
10 | zoom: 1;
11 | -webkit-font-smoothing: antialiased;
12 | }
13 | .container:after {
14 | display: table;
15 | content: "";
16 | clear: both;
17 | }
18 |
19 | a {
20 | -webkit-transition: 0.2s ease-out all;
21 | }
22 |
23 | .button {
24 | color: #fff;
25 | line-height: 1;
26 | text-decoration: none;
27 | display: inline-block;
28 | padding: 14px 7%;
29 | border: 1px solid rgba(176, 182, 194, 0.94);
30 | border-radius: 2px;
31 | font-size: 18px;
32 | }
33 |
34 | /* layout */
35 | .header {
36 | position: relative;
37 | height: 360px;
38 | background: #444e61;
39 | background-repeat: no-repeat;
40 | background-position: center;
41 | background-size: cover;
42 | }
43 | .header-title {
44 | background: rgba(4, 23, 55, 0.45);
45 | }
46 | .header-title a {
47 | display: inline-block;
48 | color: #fff;
49 | text-decoration: none;
50 | font: 400 18px/2.8 "Verdana", "Hiragino Sans GB", "Droid Sans Fallback", "Microsoft YaHei", sans-serif;
51 | padding: 0 10px;
52 | border-bottom: 2px solid transparent;
53 | }
54 | .header-title a:hover {
55 | opacity: 0.8;
56 | border-bottom-color: rgba(250, 250, 250, 0.8);
57 | }
58 | .header-title .brand {
59 | float: left;
60 | font-weight: 600;
61 | }
62 | .header-title .navigation {
63 | float: right;
64 | }
65 | .header-title .navigation a {
66 | margin-left: 1em;
67 | }
68 | .header-content {
69 | position: absolute;
70 | bottom: 1em;
71 | width: 100%;
72 | text-align: center;
73 | }
74 | .header-content h1, .header-content a {
75 | color: white;
76 | }
77 |
78 | .header-home {
79 | height: 500px;
80 | }
81 | .content {
82 | padding: 48px 0;
83 | }
84 |
--------------------------------------------------------------------------------
/css/yue.css:
--------------------------------------------------------------------------------
1 | /**
2 | * yue.css
3 | *
4 | * yue.css is designed for readable content.
5 | *
6 | * Copyright (c) 2013 - 2014 by Hsiaoming Yang.
7 | */
8 |
9 | .yue {
10 | font: 400 20px/1.62 "Georgia", "Xin Gothic", "Hiragino Sans GB", "Droid Sans Fallback", "Microsoft YaHei", sans-serif;
11 | color: #444e61;
12 | }
13 |
14 | .windows .yue {
15 | font-size: 16px;
16 | font-family: "Georgia", "SimSun", sans-serif;
17 | }
18 |
19 | .yue ::-moz-selection {
20 | background-color: rgba(0,0,0,0.2);
21 | }
22 |
23 | .yue ::selection {
24 | background-color: rgba(0,0,0,0.2);
25 | }
26 |
27 | .yue h1,
28 | .yue h2,
29 | .yue h3,
30 | .yue h4,
31 | .yue h5,
32 | .yue h6 {
33 | font-family: "Georgia", "Xin Gothic", "Hiragino Sans GB", "Droid Sans Fallback", "Microsoft YaHei", "SimSun", sans-serif;
34 | color: rgb(61, 70, 87);
35 | }
36 |
37 | .yue h1 {
38 | font-size: 1.8em;
39 | margin: 0.67em 0;
40 | }
41 |
42 | .yue > h1 {
43 | margin-top: 0;
44 | font-size: 2em;
45 | }
46 |
47 | .yue h2 {
48 | font-size: 1.5em;
49 | margin: 0.83em 0;
50 | }
51 |
52 | .yue h3 {
53 | font-size: 1.17em;
54 | margin: 1em 0;
55 | }
56 |
57 | .yue h4,
58 | .yue h5,
59 | .yue h6 {
60 | font-size: 1em;
61 | margin: 1.6em 0 1em 0;
62 | }
63 |
64 | .yue h6 {
65 | font-weight: 500;
66 | }
67 |
68 | .yue p {
69 | margin-top: 0;
70 | margin-bottom: 1.46em;
71 | }
72 |
73 | .yue a {
74 | color: rgb(96, 105, 121);
75 | word-wrap: break-word;
76 | -moz-text-decoration-color: rgba(0, 0, 0, 0.4);
77 | text-decoration-color: rgba(0, 0, 0, 0.4);
78 | }
79 |
80 | .yue a:hover {
81 | color: rgb(58, 66, 82);
82 | -moz-text-decoration-color: rgba(0, 0, 0, 0.6);
83 | text-decoration-color: rgba(0, 0, 0, 0.6);
84 | }
85 |
86 | .yue strong,
87 | .yue b {
88 | font-weight: 700;
89 | color: rgb(61, 70, 87);
90 | }
91 |
92 | .yue em,
93 | .yue i {
94 | font-style: italic;
95 | color: rgb(61, 70, 87);
96 | }
97 |
98 | .yue img {
99 | max-width: 100%;
100 | height: auto;
101 | margin: 0.2em 0;
102 | }
103 |
104 | .yue a img {
105 | /* Remove border on IE */
106 | border: none;
107 | }
108 |
109 | .yue figure {
110 | position: relative;
111 | clear: both;
112 | outline: 0;
113 | margin: 10px 0 30px;
114 | padding: 0;
115 | min-height: 100px;
116 | }
117 |
118 | .yue figure img {
119 | display: block;
120 | max-width: 100%;
121 | margin: auto auto 4px;
122 | -webkit-box-sizing: border-box;
123 | -moz-box-sizing: border-box;
124 | box-sizing: border-box;
125 | }
126 |
127 | .yue figure figcaption {
128 | position: relative;
129 | width: 100%;
130 | text-align: center;
131 | left: 0;
132 | margin-top: 10px;
133 | font-weight: 400;
134 | font-size: 14px;
135 | color: rgb(77, 87, 105);
136 | }
137 |
138 | .yue figure figcaption a {
139 | text-decoration: none;
140 | color: rgb(77, 87, 105);
141 | }
142 |
143 | .yue hr {
144 | display: block;
145 | width: 14%;
146 | margin: 40px auto 34px;
147 | border: 0 none;
148 | border-top: 3px solid #dededc;
149 | }
150 |
151 | .yue blockquote {
152 | margin: 0 0 1.64em 0;
153 | border-left: 3px solid #dadada;
154 | padding-left: 12px;
155 | color: rgb(87, 96, 113);
156 | }
157 |
158 | .yue blockquote a {
159 | color: rgb(87, 96, 113);
160 | }
161 |
162 | .yue ul,
163 | .yue ol {
164 | margin: 0 0 24px 6px;
165 | }
166 |
167 | .yue ul {
168 | padding-left: 16px;
169 | list-style-type: square;
170 | }
171 |
172 | .yue ol {
173 | padding-left: 30px;
174 | list-style-type: decimal;
175 | }
176 |
177 | .yue li {
178 | margin-bottom: 0.2em;
179 | }
180 |
181 | .yue li ul,
182 | .yue li ol {
183 | margin-top: 0;
184 | margin-bottom: 0;
185 | margin-left: 14px;
186 | }
187 |
188 | .yue li ul {
189 | list-style-type: disc;
190 | }
191 |
192 | .yue li ul ul {
193 | list-style-type: circle;
194 | }
195 |
196 | .yue li p {
197 | margin: 0.4em 0 0.6em;
198 | }
199 |
200 | .yue .unstyled {
201 | list-style-type: none;
202 | margin: 0;
203 | padding: 0;
204 | }
205 |
206 | .yue code,
207 | .yue tt {
208 | color: #808080;
209 | font-size: 0.96em;
210 | background-color: #f9f9f7;
211 | padding: 1px 2px;
212 | border: 1px solid #dadada;
213 | border-radius: 3px;
214 | font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
215 | }
216 |
217 | .yue pre {
218 | margin: 1.64em 0;
219 | padding: 7px;
220 | border: none;
221 | border-left: 3px solid #dadada;
222 | padding-left: 10px;
223 | overflow: auto;
224 | line-height: 1.5;
225 | font-size: 0.96em;
226 | font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
227 | color: #4c4c4c;
228 | background-color: #f9f9f7;
229 | }
230 |
231 | .yue pre code,
232 | .yue pre tt {
233 | color: #4c4c4c;
234 | border: none;
235 | background: none;
236 | padding: 0;
237 | }
238 |
239 | .yue table {
240 | width: 100%;
241 | border-collapse: collapse;
242 | border-spacing: 0;
243 | margin-bottom: 1.5em;
244 | font-size: 0.96em;
245 | }
246 |
247 | .yue th,
248 | .yue td {
249 | text-align: left;
250 | padding: 4px 8px 4px 10px;
251 | border: 1px solid #dadada;
252 | }
253 |
254 | .yue td {
255 | vertical-align: top;
256 | }
257 |
258 | .yue tr:nth-child(even) {
259 | background-color: #efefee;
260 | }
261 |
262 | .yue iframe {
263 | display: block;
264 | max-width: 100%;
265 | margin-bottom: 30px;
266 | }
267 |
268 | .yue figure iframe {
269 | margin: auto;
270 | }
271 |
272 | .yue table pre {
273 | margin: 0;
274 | padding: 0;
275 | border: none;
276 | background: none;
277 | }
278 |
279 | @media (min-width: 1100px) {
280 | .yue blockquote {
281 | margin-left: -24px;
282 | padding-left: 20px;
283 | border-width: 4px;
284 | }
285 |
286 | .yue blockquote blockquote {
287 | margin-left: 0;
288 | }
289 |
290 | .yue figure img {
291 | margin: 0 0 4px;
292 | }
293 |
294 | .yue figure figcaption:before {
295 | width: 25%;
296 | margin-left: 75%;
297 | border-top: 1px solid #dededc;
298 | display: block;
299 | content: "";
300 | margin-bottom: 10px;
301 | }
302 |
303 | .yue figure figcaption {
304 | position: absolute;
305 | left: -172px;
306 | width: 150px;
307 | top: 0;
308 | text-align: right;
309 | margin-top: 0;
310 | }
311 | }
312 |
--------------------------------------------------------------------------------