cheatset 1.2.3 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/cheatset/creator.rb +1 -0
- data/lib/cheatset/templates/cheatset_resources/Open_Sans.woff +0 -0
- data/lib/cheatset/templates/cheatset_resources/Open_Sans_Bold.woff +0 -0
- data/lib/cheatset/templates/cheatset_resources/Open_Sans_Bold_Italic.woff +0 -0
- data/lib/cheatset/templates/cheatset_resources/Open_Sans_Extrabold.woff +0 -0
- data/lib/cheatset/templates/cheatset_resources/Open_Sans_Extrabold_Italic.woff +0 -0
- data/lib/cheatset/templates/cheatset_resources/Open_Sans_Italic.woff +0 -0
- data/lib/cheatset/templates/cheatset_resources/Open_Sans_Semibold.woff +0 -0
- data/lib/cheatset/templates/cheatset_resources/Open_Sans_Semibold_Italic.woff +0 -0
- data/lib/cheatset/templates/style.css +60 -19
- data/lib/cheatset/templates/style.scss +64 -15
- data/lib/cheatset/version.rb +1 -1
- metadata +9 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a197ce59c53046c638d6eb071d5539b44c4c426
|
4
|
+
data.tar.gz: ae45398619b86838e2af383907b21029c3038f15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef461bff97e88cb2bf4f6455d7f622b722723a81b8b3f2f5a0607adaa1ea4f1a1c860018ce4912ca46dc1e64cbbbe6d6691ba1ba538f379b5ea1eed391e320ec
|
7
|
+
data.tar.gz: f1a073669ee151d3855b08b9188e5ae13fab2ad3f2fe2c7a00e197d8c7764b1aafa6f7264b8e0da6b82fcfaae70f2ead51b1286fd291d456d1c661638b21722b
|
data/README.md
CHANGED
@@ -29,6 +29,7 @@ cheatsheet do
|
|
29
29
|
title 'Sample' # Will be displayed by Dash in the docset list
|
30
30
|
docset_file_name 'Sample' # Used for the filename of the docset
|
31
31
|
keyword 'sample' # Used as the initial search keyword (listed in Preferences > Docsets)
|
32
|
+
resources 'resources_dir' # An optional resources folder which can contain images or anything else
|
32
33
|
|
33
34
|
introduction 'My *awesome* cheat sheet' # Optional, can contain Markdown or HTML
|
34
35
|
|
data/lib/cheatset/creator.rb
CHANGED
@@ -68,6 +68,7 @@ class Cheatset::Creator
|
|
68
68
|
def generate_database
|
69
69
|
sqlite_file = "#{@path}Resources/docSet.dsidx"
|
70
70
|
db = SQLite3::Database.new(sqlite_file)
|
71
|
+
db.busy_timeout = 100;
|
71
72
|
db.execute <<-SQL
|
72
73
|
CREATE TABLE searchIndex(id INTEGER PRIMARY KEY, name TEXT,
|
73
74
|
type TEXT, path TEXT);
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -7,6 +7,41 @@ h1, h2, h3, p, blockquote {
|
|
7
7
|
font-style: normal;
|
8
8
|
font-weight: 400;
|
9
9
|
src: local("Open Sans"), local("OpenSans"), url(cheatset_resources/Open_Sans.woff) format("woff"); }
|
10
|
+
@font-face {
|
11
|
+
font-family: 'Open Sans';
|
12
|
+
font-style: normal;
|
13
|
+
font-weight: 600;
|
14
|
+
src: local("Open Sans Semibold"), local("OpenSans-Semibold"), url(cheatset_resources/Open_Sans_Semibold.woff) format("woff"); }
|
15
|
+
@font-face {
|
16
|
+
font-family: 'Open Sans';
|
17
|
+
font-style: normal;
|
18
|
+
font-weight: 700;
|
19
|
+
src: local("Open Sans Bold"), local("OpenSans-Bold"), url(cheatset_resources/Open_Sans_Bold.woff) format("woff"); }
|
20
|
+
@font-face {
|
21
|
+
font-family: 'Open Sans';
|
22
|
+
font-style: normal;
|
23
|
+
font-weight: 800;
|
24
|
+
src: local("Open Sans Extrabold"), local("OpenSans-Extrabold"), url(cheatset_resources/Open_Sans_Extrabold.woff) format("woff"); }
|
25
|
+
@font-face {
|
26
|
+
font-family: 'Open Sans';
|
27
|
+
font-style: italic;
|
28
|
+
font-weight: 400;
|
29
|
+
src: local("Open Sans Italic"), local("OpenSans-Italic"), url(cheatset_resources/Open_Sans_Italic.woff) format("woff"); }
|
30
|
+
@font-face {
|
31
|
+
font-family: 'Open Sans';
|
32
|
+
font-style: italic;
|
33
|
+
font-weight: 600;
|
34
|
+
src: local("Open Sans Semibold Italic"), local("OpenSans-SemiboldItalic"), url(cheatset_resources/Open_Sans_Semibold_Italic.woff) format("woff"); }
|
35
|
+
@font-face {
|
36
|
+
font-family: 'Open Sans';
|
37
|
+
font-style: italic;
|
38
|
+
font-weight: 700;
|
39
|
+
src: local("Open Sans Bold Italic"), local("OpenSans-BoldItalic"), url(cheatset_resources/Open_Sans_Bold_Italic.woff) format("woff"); }
|
40
|
+
@font-face {
|
41
|
+
font-family: 'Open Sans';
|
42
|
+
font-style: italic;
|
43
|
+
font-weight: 800;
|
44
|
+
src: local("Open Sans Extrabold Italic"), local("OpenSans-ExtraboldItalic"), url(cheatset_resources/Open_Sans_Extrabold_Italic.woff) format("woff"); }
|
10
45
|
body {
|
11
46
|
font-family: 'Open Sans', sans-serif;
|
12
47
|
font-size: 14px;
|
@@ -36,14 +71,14 @@ header {
|
|
36
71
|
padding: 0px 10px 3px 10px; }
|
37
72
|
|
38
73
|
h1 {
|
39
|
-
font-size: 35px;
|
74
|
+
font-size: 35px;
|
75
|
+
font-weight: 600; }
|
40
76
|
|
41
77
|
footer {
|
42
|
-
margin: 1em;
|
43
78
|
background-color: #666666;
|
44
79
|
color: #efefef;
|
45
|
-
|
46
|
-
|
80
|
+
text-align: center;
|
81
|
+
padding: 3px 0px; }
|
47
82
|
footer a {
|
48
83
|
color: #efefef; }
|
49
84
|
|
@@ -58,7 +93,7 @@ article {
|
|
58
93
|
|
59
94
|
section.category {
|
60
95
|
border: 2px solid #666666;
|
61
|
-
border-radius:
|
96
|
+
border-radius: 6px 6px;
|
62
97
|
background-color: #666666;
|
63
98
|
margin: 2em 0;
|
64
99
|
overflow: hidden;
|
@@ -67,7 +102,8 @@ section.category {
|
|
67
102
|
color: white;
|
68
103
|
font-size: 1.5em;
|
69
104
|
text-align: center;
|
70
|
-
margin-top: -2px;
|
105
|
+
margin-top: -2px;
|
106
|
+
font-weight: 600; }
|
71
107
|
|
72
108
|
table {
|
73
109
|
background-color: white;
|
@@ -75,7 +111,17 @@ table {
|
|
75
111
|
width: 100%; }
|
76
112
|
|
77
113
|
td {
|
78
|
-
padding: 13px 2px 0px 8px;
|
114
|
+
padding: 13px 2px 0px 8px;
|
115
|
+
border-left: 1px solid #d7d7d7; }
|
116
|
+
|
117
|
+
th {
|
118
|
+
border-left: 1px solid #d7d7d7; }
|
119
|
+
|
120
|
+
tr {
|
121
|
+
border-bottom: 1px dotted #d7d7d7; }
|
122
|
+
|
123
|
+
tr:last-child {
|
124
|
+
border-bottom: none; }
|
79
125
|
|
80
126
|
td.command, td.td_command {
|
81
127
|
width: 1%;
|
@@ -92,25 +138,20 @@ td.command, td.td_command {
|
|
92
138
|
color: #333; }
|
93
139
|
|
94
140
|
td.td_command {
|
95
|
-
text-align: center;
|
96
|
-
border-right: 1px solid #666666; }
|
97
|
-
|
98
|
-
td.td_notes {
|
99
|
-
border-left: 1px solid #666666; }
|
141
|
+
text-align: center; }
|
100
142
|
|
101
143
|
td.description .name {
|
102
144
|
font-size: 1.2em; }
|
103
145
|
|
104
|
-
tr:nth-child(even) {
|
105
|
-
background: #efefef; }
|
106
|
-
|
107
146
|
th {
|
108
|
-
|
147
|
+
background: #efefef;
|
148
|
+
padding: 5px 12px 5px 8px;
|
109
149
|
text-align: left;
|
110
|
-
border-
|
150
|
+
border-bottom: 1px solid #d7d7d7;
|
151
|
+
font-weight: 600; }
|
111
152
|
|
112
|
-
th:nth-child(1) {
|
113
|
-
border: none; }
|
153
|
+
th:nth-child(1), td:nth-child(1) {
|
154
|
+
border-left: none; }
|
114
155
|
|
115
156
|
a {
|
116
157
|
color: #666666; }
|
@@ -1,6 +1,7 @@
|
|
1
1
|
$white: #fff;
|
2
2
|
$light_gray: #efefef;
|
3
3
|
$dark_gray: #666;
|
4
|
+
$lighter_gray: #d7d7d7;
|
4
5
|
$black: #000;
|
5
6
|
////////////////////////////////////////////////////////////////////////////////
|
6
7
|
h1, h2, h3, p, blockquote {
|
@@ -13,6 +14,48 @@ h1, h2, h3, p, blockquote {
|
|
13
14
|
font-weight: 400;
|
14
15
|
src: local('Open Sans'), local('OpenSans'), url(cheatset_resources/Open_Sans.woff) format('woff');
|
15
16
|
}
|
17
|
+
@font-face {
|
18
|
+
font-family: 'Open Sans';
|
19
|
+
font-style: normal;
|
20
|
+
font-weight: 600;
|
21
|
+
src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(cheatset_resources/Open_Sans_Semibold.woff) format('woff');
|
22
|
+
}
|
23
|
+
@font-face {
|
24
|
+
font-family: 'Open Sans';
|
25
|
+
font-style: normal;
|
26
|
+
font-weight: 700;
|
27
|
+
src: local('Open Sans Bold'), local('OpenSans-Bold'), url(cheatset_resources/Open_Sans_Bold.woff) format('woff');
|
28
|
+
}
|
29
|
+
@font-face {
|
30
|
+
font-family: 'Open Sans';
|
31
|
+
font-style: normal;
|
32
|
+
font-weight: 800;
|
33
|
+
src: local('Open Sans Extrabold'), local('OpenSans-Extrabold'), url(cheatset_resources/Open_Sans_Extrabold.woff) format('woff');
|
34
|
+
}
|
35
|
+
@font-face {
|
36
|
+
font-family: 'Open Sans';
|
37
|
+
font-style: italic;
|
38
|
+
font-weight: 400;
|
39
|
+
src: local('Open Sans Italic'), local('OpenSans-Italic'), url(cheatset_resources/Open_Sans_Italic.woff) format('woff');
|
40
|
+
}
|
41
|
+
@font-face {
|
42
|
+
font-family: 'Open Sans';
|
43
|
+
font-style: italic;
|
44
|
+
font-weight: 600;
|
45
|
+
src: local('Open Sans Semibold Italic'), local('OpenSans-SemiboldItalic'), url(cheatset_resources/Open_Sans_Semibold_Italic.woff) format('woff');
|
46
|
+
}
|
47
|
+
@font-face {
|
48
|
+
font-family: 'Open Sans';
|
49
|
+
font-style: italic;
|
50
|
+
font-weight: 700;
|
51
|
+
src: local('Open Sans Bold Italic'), local('OpenSans-BoldItalic'), url(cheatset_resources/Open_Sans_Bold_Italic.woff) format('woff');
|
52
|
+
}
|
53
|
+
@font-face {
|
54
|
+
font-family: 'Open Sans';
|
55
|
+
font-style: italic;
|
56
|
+
font-weight: 800;
|
57
|
+
src: local('Open Sans Extrabold Italic'), local('OpenSans-ExtraboldItalic'), url(cheatset_resources/Open_Sans_Extrabold_Italic.woff) format('woff');
|
58
|
+
}
|
16
59
|
|
17
60
|
body {
|
18
61
|
font-family: 'Open Sans', sans-serif;
|
@@ -49,15 +92,15 @@ header {
|
|
49
92
|
}
|
50
93
|
h1 {
|
51
94
|
font-size: 35px;
|
95
|
+
font-weight:600;
|
52
96
|
}
|
53
97
|
|
54
98
|
////////////////////////////////////////////////////////////////////////////////
|
55
99
|
footer {
|
56
|
-
margin: 1em;
|
57
100
|
background-color: $dark_gray;
|
58
101
|
color: $light_gray;
|
59
|
-
border-radius: 10px;
|
60
102
|
text-align: center;
|
103
|
+
padding:3px 0px;
|
61
104
|
a {
|
62
105
|
color: $light_gray;
|
63
106
|
}
|
@@ -77,7 +120,7 @@ article {
|
|
77
120
|
}
|
78
121
|
section.category {
|
79
122
|
border: 2px solid $dark_gray;
|
80
|
-
border-radius:
|
123
|
+
border-radius: 6px 6px;
|
81
124
|
background-color: $dark_gray;
|
82
125
|
margin: 2em 0;
|
83
126
|
overflow: hidden;
|
@@ -86,6 +129,7 @@ section.category {
|
|
86
129
|
font-size: 1.5em;
|
87
130
|
text-align: center;
|
88
131
|
margin-top: -2px;
|
132
|
+
font-weight:600;
|
89
133
|
}
|
90
134
|
padding-bottom: 5px;
|
91
135
|
}
|
@@ -96,6 +140,16 @@ table {
|
|
96
140
|
}
|
97
141
|
td {
|
98
142
|
padding: 13px 2px 0px 8px;
|
143
|
+
border-left:1px solid $lighter_gray;
|
144
|
+
}
|
145
|
+
th {
|
146
|
+
border-left:1px solid $lighter_gray;
|
147
|
+
}
|
148
|
+
tr {
|
149
|
+
border-bottom:1px dotted $lighter_gray;
|
150
|
+
}
|
151
|
+
tr:last-child {
|
152
|
+
border-bottom:none;
|
99
153
|
}
|
100
154
|
td.command {
|
101
155
|
width: 1%;
|
@@ -103,6 +157,7 @@ td.command {
|
|
103
157
|
vertical-align: top;
|
104
158
|
padding: 9px 8px 4px 7px;
|
105
159
|
text-align:right;
|
160
|
+
// border-right:1px solid $lighter_gray;
|
106
161
|
code {
|
107
162
|
// Nice key styling:
|
108
163
|
// https://developers.google.com/chrome-developer-tools/docs/shortcuts
|
@@ -118,11 +173,6 @@ td.command {
|
|
118
173
|
td.td_command {
|
119
174
|
@extend td.command;
|
120
175
|
text-align:center;
|
121
|
-
border-right: 1px solid $dark_gray;
|
122
|
-
}
|
123
|
-
|
124
|
-
td.td_notes {
|
125
|
-
border-left: 1px solid $dark_gray;
|
126
176
|
}
|
127
177
|
|
128
178
|
td.description {
|
@@ -130,18 +180,17 @@ td.description {
|
|
130
180
|
font-size: 1.2em;
|
131
181
|
}
|
132
182
|
}
|
133
|
-
tr:nth-child(even) {
|
134
|
-
background: $light_gray;
|
135
|
-
}
|
136
183
|
|
137
184
|
th {
|
138
|
-
|
185
|
+
background: $light_gray;
|
186
|
+
padding:5px 12px 5px 8px;
|
139
187
|
text-align: left;
|
140
|
-
border-
|
188
|
+
border-bottom: 1px solid $lighter_gray;
|
189
|
+
font-weight:600;
|
141
190
|
}
|
142
191
|
|
143
|
-
th:nth-child(1) {
|
144
|
-
border:none;
|
192
|
+
th:nth-child(1), td:nth-child(1) {
|
193
|
+
border-left:none;
|
145
194
|
}
|
146
195
|
|
147
196
|
a {
|
data/lib/cheatset/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cheatset
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bogdan Popescu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -174,6 +174,13 @@ files:
|
|
174
174
|
- lib/cheatset/dsl/entry.rb
|
175
175
|
- lib/cheatset/templates/.sass-cache/c0630dfea9543a0a71b68aca4887e98819b89684/style.scssc
|
176
176
|
- lib/cheatset/templates/cheatset_resources/Open_Sans.woff
|
177
|
+
- lib/cheatset/templates/cheatset_resources/Open_Sans_Bold.woff
|
178
|
+
- lib/cheatset/templates/cheatset_resources/Open_Sans_Bold_Italic.woff
|
179
|
+
- lib/cheatset/templates/cheatset_resources/Open_Sans_Extrabold.woff
|
180
|
+
- lib/cheatset/templates/cheatset_resources/Open_Sans_Extrabold_Italic.woff
|
181
|
+
- lib/cheatset/templates/cheatset_resources/Open_Sans_Italic.woff
|
182
|
+
- lib/cheatset/templates/cheatset_resources/Open_Sans_Semibold.woff
|
183
|
+
- lib/cheatset/templates/cheatset_resources/Open_Sans_Semibold_Italic.woff
|
177
184
|
- lib/cheatset/templates/style.css
|
178
185
|
- lib/cheatset/templates/style.scss
|
179
186
|
- lib/cheatset/templates/template.haml
|