madness 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/styles/_anchor.scss +15 -15
- data/app/styles/_breadcrumbs.scss +8 -8
- data/app/styles/_code.scss +54 -54
- data/app/styles/_coderay.scss +9 -9
- data/app/styles/_general.scss +33 -33
- data/app/styles/_image.scss +7 -7
- data/app/styles/_keyboard.scss +14 -14
- data/app/styles/_line.scss +28 -28
- data/app/styles/_list.scss +44 -44
- data/app/styles/_manifest.scss +14 -14
- data/app/styles/_nav.scss +35 -35
- data/app/styles/_search.scss +24 -24
- data/app/styles/_table.scss +28 -28
- data/app/styles/_typography.scss +62 -62
- data/app/styles/main.scss +28 -28
- data/app/views/_breadcrumbs.slim +8 -8
- data/app/views/_content.slim +6 -6
- data/app/views/_index_nav.slim +5 -5
- data/app/views/_nav.slim +11 -11
- data/app/views/document.slim +11 -11
- data/app/views/layout.slim +7 -7
- data/app/views/search.slim +25 -25
- data/lib/madness.rb +1 -1
- data/lib/madness/breadcrumbs.rb +36 -36
- data/lib/madness/command_line.rb +77 -77
- data/lib/madness/docopt.txt +40 -40
- data/lib/madness/document.rb +98 -98
- data/lib/madness/navigation.rb +60 -60
- data/lib/madness/search.rb +63 -63
- data/lib/madness/server.rb +39 -39
- data/lib/madness/server_base.rb +36 -36
- data/lib/madness/server_helper.rb +21 -21
- data/lib/madness/settings.rb +65 -65
- data/lib/madness/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 735d6b8d05c5c4ca640fc394f94b6d13dcc728e8
|
4
|
+
data.tar.gz: ee91a02a64aafb375ff2e410624c281c92096b5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc0dc6ca64a6da54e50fb5c60790f4cc71122d8607df9cf8e44cc651a6c4b8042d914cbd00ff038163718d796b5ae9ac4ece3b40e4ff2f836982e803fa556ded
|
7
|
+
data.tar.gz: 7f054e3b4c1832e91b5bdc5804f90e09745ee08db0e877321973c64002ba05152e8df5f080d40b44e6af77f1f5317072913a5dd88e9d44142af9d49bbcb38d97
|
data/app/styles/_anchor.scss
CHANGED
@@ -1,16 +1,16 @@
|
|
1
|
-
a {
|
2
|
-
-webkit-text-decoration-skip: objects;
|
3
|
-
|
4
|
-
color: #4078c0;
|
5
|
-
text-decoration: none;
|
6
|
-
|
7
|
-
&:active, &:hover {
|
8
|
-
outline-width: 0;
|
9
|
-
text-decoration: underline;
|
10
|
-
}
|
11
|
-
|
12
|
-
&:not([href]) {
|
13
|
-
color: inherit;
|
14
|
-
text-decoration: none;
|
15
|
-
}
|
1
|
+
a {
|
2
|
+
-webkit-text-decoration-skip: objects;
|
3
|
+
|
4
|
+
color: #4078c0;
|
5
|
+
text-decoration: none;
|
6
|
+
|
7
|
+
&:active, &:hover {
|
8
|
+
outline-width: 0;
|
9
|
+
text-decoration: underline;
|
10
|
+
}
|
11
|
+
|
12
|
+
&:not([href]) {
|
13
|
+
color: inherit;
|
14
|
+
text-decoration: none;
|
15
|
+
}
|
16
16
|
}
|
@@ -1,8 +1,8 @@
|
|
1
|
-
.breadcrumbs {
|
2
|
-
margin-top: 6px;
|
3
|
-
border-bottom: 1px solid #ccc;
|
4
|
-
a {
|
5
|
-
display: inline-block;
|
6
|
-
padding: 7px 0;
|
7
|
-
}
|
8
|
-
}
|
1
|
+
.breadcrumbs {
|
2
|
+
margin-top: 6px;
|
3
|
+
border-bottom: 1px solid #ccc;
|
4
|
+
a {
|
5
|
+
display: inline-block;
|
6
|
+
padding: 7px 0;
|
7
|
+
}
|
8
|
+
}
|
data/app/styles/_code.scss
CHANGED
@@ -1,54 +1,54 @@
|
|
1
|
-
code {
|
2
|
-
padding: 0;
|
3
|
-
padding-top: 0.2em;
|
4
|
-
padding-bottom: 0.2em;
|
5
|
-
margin: 0;
|
6
|
-
// font-size: 85%;
|
7
|
-
background-color: #eee;
|
8
|
-
border-radius: 3px;
|
9
|
-
|
10
|
-
&:before, &:after {
|
11
|
-
letter-spacing: -0.2em;
|
12
|
-
content: "\00a0";
|
13
|
-
}
|
14
|
-
}
|
15
|
-
|
16
|
-
pre {
|
17
|
-
// margin-top: 0;
|
18
|
-
// margin-bottom: 0;
|
19
|
-
|
20
|
-
// padding: 16px;
|
21
|
-
overflow: auto;
|
22
|
-
// font-size: 85%;
|
23
|
-
line-height: 1.45;
|
24
|
-
// background-color: #f7f7f7;
|
25
|
-
// border-radius: 3px;
|
26
|
-
word-wrap: normal;
|
27
|
-
|
28
|
-
&>code {
|
29
|
-
padding: 0;
|
30
|
-
margin: 0;
|
31
|
-
font-size: 100%;
|
32
|
-
word-break: normal;
|
33
|
-
white-space: pre;
|
34
|
-
background: transparent;
|
35
|
-
border: 0;
|
36
|
-
}
|
37
|
-
|
38
|
-
code {
|
39
|
-
margin: 0;
|
40
|
-
display: inline;
|
41
|
-
max-width: initial;
|
42
|
-
padding: 0;
|
43
|
-
overflow: initial;
|
44
|
-
line-height: inherit;
|
45
|
-
word-wrap: normal;
|
46
|
-
background-color: transparent;
|
47
|
-
border: 0;
|
48
|
-
}
|
49
|
-
|
50
|
-
code:before,
|
51
|
-
code:after {
|
52
|
-
content: normal;
|
53
|
-
}
|
54
|
-
}
|
1
|
+
code {
|
2
|
+
padding: 0;
|
3
|
+
padding-top: 0.2em;
|
4
|
+
padding-bottom: 0.2em;
|
5
|
+
margin: 0;
|
6
|
+
// font-size: 85%;
|
7
|
+
background-color: #eee;
|
8
|
+
border-radius: 3px;
|
9
|
+
|
10
|
+
&:before, &:after {
|
11
|
+
letter-spacing: -0.2em;
|
12
|
+
content: "\00a0";
|
13
|
+
}
|
14
|
+
}
|
15
|
+
|
16
|
+
pre {
|
17
|
+
// margin-top: 0;
|
18
|
+
// margin-bottom: 0;
|
19
|
+
|
20
|
+
// padding: 16px;
|
21
|
+
overflow: auto;
|
22
|
+
// font-size: 85%;
|
23
|
+
line-height: 1.45;
|
24
|
+
// background-color: #f7f7f7;
|
25
|
+
// border-radius: 3px;
|
26
|
+
word-wrap: normal;
|
27
|
+
|
28
|
+
&>code {
|
29
|
+
padding: 0;
|
30
|
+
margin: 0;
|
31
|
+
font-size: 100%;
|
32
|
+
word-break: normal;
|
33
|
+
white-space: pre;
|
34
|
+
background: transparent;
|
35
|
+
border: 0;
|
36
|
+
}
|
37
|
+
|
38
|
+
code {
|
39
|
+
margin: 0;
|
40
|
+
display: inline;
|
41
|
+
max-width: initial;
|
42
|
+
padding: 0;
|
43
|
+
overflow: initial;
|
44
|
+
line-height: inherit;
|
45
|
+
word-wrap: normal;
|
46
|
+
background-color: transparent;
|
47
|
+
border: 0;
|
48
|
+
}
|
49
|
+
|
50
|
+
code:before,
|
51
|
+
code:after {
|
52
|
+
content: normal;
|
53
|
+
}
|
54
|
+
}
|
data/app/styles/_coderay.scss
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
td.line-numbers {
|
2
|
-
background: #eee;
|
3
|
-
}
|
4
|
-
|
5
|
-
table.CodeRay {
|
6
|
-
margin-bottom: 0;
|
7
|
-
pre {
|
8
|
-
margin-bottom: 0;
|
9
|
-
}
|
1
|
+
td.line-numbers {
|
2
|
+
background: #eee;
|
3
|
+
}
|
4
|
+
|
5
|
+
table.CodeRay {
|
6
|
+
margin-bottom: 0;
|
7
|
+
pre {
|
8
|
+
margin-bottom: 0;
|
9
|
+
}
|
10
10
|
}
|
data/app/styles/_general.scss
CHANGED
@@ -1,33 +1,33 @@
|
|
1
|
-
* {
|
2
|
-
box-sizing: border-box;
|
3
|
-
}
|
4
|
-
|
5
|
-
p {
|
6
|
-
margin-top: 0;
|
7
|
-
margin-bottom: 10px;
|
8
|
-
}
|
9
|
-
|
10
|
-
blockquote {
|
11
|
-
margin: 0;
|
12
|
-
padding: 0 15px;
|
13
|
-
color: #777;
|
14
|
-
border-left: 4px solid #ddd;
|
15
|
-
|
16
|
-
&>:first-child {
|
17
|
-
margin-top: 0;
|
18
|
-
}
|
19
|
-
|
20
|
-
&>:last-child {
|
21
|
-
margin-bottom: 0;
|
22
|
-
}
|
23
|
-
}
|
24
|
-
|
25
|
-
p, blockquote, ul, ol, dl, table, pre {
|
26
|
-
margin-top: 0;
|
27
|
-
margin-bottom: 16px;
|
28
|
-
}
|
29
|
-
|
30
|
-
.quiet {
|
31
|
-
color: #777;
|
32
|
-
}
|
33
|
-
|
1
|
+
* {
|
2
|
+
box-sizing: border-box;
|
3
|
+
}
|
4
|
+
|
5
|
+
p {
|
6
|
+
margin-top: 0;
|
7
|
+
margin-bottom: 10px;
|
8
|
+
}
|
9
|
+
|
10
|
+
blockquote {
|
11
|
+
margin: 0;
|
12
|
+
padding: 0 15px;
|
13
|
+
color: #777;
|
14
|
+
border-left: 4px solid #ddd;
|
15
|
+
|
16
|
+
&>:first-child {
|
17
|
+
margin-top: 0;
|
18
|
+
}
|
19
|
+
|
20
|
+
&>:last-child {
|
21
|
+
margin-bottom: 0;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
p, blockquote, ul, ol, dl, table, pre {
|
26
|
+
margin-top: 0;
|
27
|
+
margin-bottom: 16px;
|
28
|
+
}
|
29
|
+
|
30
|
+
.quiet {
|
31
|
+
color: #777;
|
32
|
+
}
|
33
|
+
|
data/app/styles/_image.scss
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
img {
|
2
|
-
border-style: none;
|
3
|
-
|
4
|
-
max-width: 100%;
|
5
|
-
box-sizing: content-box;
|
6
|
-
background-color: #fff;
|
7
|
-
}
|
1
|
+
img {
|
2
|
+
border-style: none;
|
3
|
+
|
4
|
+
max-width: 100%;
|
5
|
+
box-sizing: content-box;
|
6
|
+
background-color: #fff;
|
7
|
+
}
|
data/app/styles/_keyboard.scss
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
kbd {
|
2
|
-
display: inline-block;
|
3
|
-
padding: 3px 5px;
|
4
|
-
font-size: 11px;
|
5
|
-
line-height: 10px;
|
6
|
-
color: #555;
|
7
|
-
vertical-align: middle;
|
8
|
-
background-color: #fcfcfc;
|
9
|
-
border: solid 1px #ccc;
|
10
|
-
border-bottom-color: #bbb;
|
11
|
-
border-radius: 3px;
|
12
|
-
box-shadow: inset 0 -1px 0 #bbb;
|
13
|
-
}
|
14
|
-
|
1
|
+
kbd {
|
2
|
+
display: inline-block;
|
3
|
+
padding: 3px 5px;
|
4
|
+
font-size: 11px;
|
5
|
+
line-height: 10px;
|
6
|
+
color: #555;
|
7
|
+
vertical-align: middle;
|
8
|
+
background-color: #fcfcfc;
|
9
|
+
border: solid 1px #ccc;
|
10
|
+
border-bottom-color: #bbb;
|
11
|
+
border-radius: 3px;
|
12
|
+
box-shadow: inset 0 -1px 0 #bbb;
|
13
|
+
}
|
14
|
+
|
data/app/styles/_line.scss
CHANGED
@@ -1,29 +1,29 @@
|
|
1
|
-
hr {
|
2
|
-
box-sizing: content-box;
|
3
|
-
// height: 0;
|
4
|
-
overflow: visible;
|
5
|
-
height: 0;
|
6
|
-
// margin: 15px 0;
|
7
|
-
overflow: hidden;
|
8
|
-
// background: transparent;
|
9
|
-
border: 0;
|
10
|
-
border-bottom: 1px solid #ddd;
|
11
|
-
|
12
|
-
height: 4px;
|
13
|
-
padding: 0;
|
14
|
-
margin: 16px 0;
|
15
|
-
background-color: #e7e7e7;
|
16
|
-
// border: 0 none;
|
17
|
-
|
18
|
-
border-bottom-color: #eee;
|
19
|
-
|
20
|
-
&::before {
|
21
|
-
display: table;
|
22
|
-
content: "";
|
23
|
-
}
|
24
|
-
&::after {
|
25
|
-
display: table;
|
26
|
-
clear: both;
|
27
|
-
content: "";
|
28
|
-
}
|
1
|
+
hr {
|
2
|
+
box-sizing: content-box;
|
3
|
+
// height: 0;
|
4
|
+
overflow: visible;
|
5
|
+
height: 0;
|
6
|
+
// margin: 15px 0;
|
7
|
+
overflow: hidden;
|
8
|
+
// background: transparent;
|
9
|
+
border: 0;
|
10
|
+
border-bottom: 1px solid #ddd;
|
11
|
+
|
12
|
+
height: 4px;
|
13
|
+
padding: 0;
|
14
|
+
margin: 16px 0;
|
15
|
+
background-color: #e7e7e7;
|
16
|
+
// border: 0 none;
|
17
|
+
|
18
|
+
border-bottom-color: #eee;
|
19
|
+
|
20
|
+
&::before {
|
21
|
+
display: table;
|
22
|
+
content: "";
|
23
|
+
}
|
24
|
+
&::after {
|
25
|
+
display: table;
|
26
|
+
clear: both;
|
27
|
+
content: "";
|
28
|
+
}
|
29
29
|
}
|
data/app/styles/_list.scss
CHANGED
@@ -1,44 +1,44 @@
|
|
1
|
-
ul, ol {
|
2
|
-
margin-top: 0;
|
3
|
-
margin-bottom: 0;
|
4
|
-
|
5
|
-
padding-left: 2em;
|
6
|
-
}
|
7
|
-
|
8
|
-
ol ol, ul ol {
|
9
|
-
list-style-type: lower-roman;
|
10
|
-
}
|
11
|
-
|
12
|
-
ul ul ol, ul ol ol, ol ul ol, ol ol ol {
|
13
|
-
list-style-type: lower-alpha;
|
14
|
-
}
|
15
|
-
|
16
|
-
ul ul, ul ol, ol ol, ol ul {
|
17
|
-
margin-top: 0;
|
18
|
-
margin-bottom: 0;
|
19
|
-
}
|
20
|
-
|
21
|
-
dd {
|
22
|
-
margin-left: 0;
|
23
|
-
}
|
24
|
-
|
25
|
-
dl {
|
26
|
-
padding: 0;
|
27
|
-
|
28
|
-
dt {
|
29
|
-
padding: 0;
|
30
|
-
margin-top: 16px;
|
31
|
-
font-size: 1em;
|
32
|
-
font-style: italic;
|
33
|
-
font-weight: bold;
|
34
|
-
}
|
35
|
-
|
36
|
-
dd {
|
37
|
-
padding: 0 16px;
|
38
|
-
margin-bottom: 16px;
|
39
|
-
}
|
40
|
-
}
|
41
|
-
|
42
|
-
li>p {
|
43
|
-
margin-top: 16px;
|
44
|
-
}
|
1
|
+
ul, ol {
|
2
|
+
margin-top: 0;
|
3
|
+
margin-bottom: 0;
|
4
|
+
|
5
|
+
padding-left: 2em;
|
6
|
+
}
|
7
|
+
|
8
|
+
ol ol, ul ol {
|
9
|
+
list-style-type: lower-roman;
|
10
|
+
}
|
11
|
+
|
12
|
+
ul ul ol, ul ol ol, ol ul ol, ol ol ol {
|
13
|
+
list-style-type: lower-alpha;
|
14
|
+
}
|
15
|
+
|
16
|
+
ul ul, ul ol, ol ol, ol ul {
|
17
|
+
margin-top: 0;
|
18
|
+
margin-bottom: 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
dd {
|
22
|
+
margin-left: 0;
|
23
|
+
}
|
24
|
+
|
25
|
+
dl {
|
26
|
+
padding: 0;
|
27
|
+
|
28
|
+
dt {
|
29
|
+
padding: 0;
|
30
|
+
margin-top: 16px;
|
31
|
+
font-size: 1em;
|
32
|
+
font-style: italic;
|
33
|
+
font-weight: bold;
|
34
|
+
}
|
35
|
+
|
36
|
+
dd {
|
37
|
+
padding: 0 16px;
|
38
|
+
margin-bottom: 16px;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
li>p {
|
43
|
+
margin-top: 16px;
|
44
|
+
}
|