jekyll-theme-docgen 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +3 -0
- data/_includes/head.html +6 -0
- data/_layouts/default.html +16 -0
- data/_sass/docgen.scss +56 -0
- data/_sass/docgen/_base.scss +256 -0
- data/_sass/docgen/_layout.scss +298 -0
- data/_sass/docgen/_syntax-highlighting.scss +71 -0
- data/assets/css/style.scss +4 -0
- metadata +82 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 510d5d3e43a184f39b6b5999c795486158b34d95742e9a8b535cf06d1c1ee9c9
|
4
|
+
data.tar.gz: 9b8f13777a0eec7421074663ff2615c31e66e6849208e4d75c2ad98bba06f596
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b0aa0b205e8828ed237c487714259bbc906fb170659895583f0f808e626b877d98c2db206c456f2c4b11fff9b010a1c2c75a52fb6ac1e8516949edb3a225c2dd
|
7
|
+
data.tar.gz: c98a03a084035caa11a8d14c555eb0ed39272fe66810fb21db72d328c42a5de0c41dab736c581c993419ef2cc98d6092121900f881b83d035521b2d2d0263d06
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016-present Parker Moore, Albert Liu and the minima contributors
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
data/_includes/head.html
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
|
3
|
+
|
4
|
+
{%- include head.html -%}
|
5
|
+
|
6
|
+
<body>
|
7
|
+
|
8
|
+
<main class="page-content" aria-label="Content">
|
9
|
+
<div class="wrapper">
|
10
|
+
{{ content }}
|
11
|
+
</div>
|
12
|
+
</main>
|
13
|
+
|
14
|
+
</body>
|
15
|
+
|
16
|
+
</html>
|
data/_sass/docgen.scss
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
@charset "utf-8";
|
2
|
+
|
3
|
+
// Define defaults for each variable.
|
4
|
+
|
5
|
+
$base-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !default;
|
6
|
+
$base-font-size: 16px !default;
|
7
|
+
$base-font-weight: 400 !default;
|
8
|
+
$small-font-size: $base-font-size * 0.875 !default;
|
9
|
+
$base-line-height: 1.5 !default;
|
10
|
+
|
11
|
+
$spacing-unit: 30px !default;
|
12
|
+
|
13
|
+
$text-color: #111 !default;
|
14
|
+
$background-color: #fdfdfd !default;
|
15
|
+
$brand-color: #2a7ae2 !default;
|
16
|
+
|
17
|
+
$grey-color: #828282 !default;
|
18
|
+
$grey-color-light: lighten($grey-color, 40%) !default;
|
19
|
+
$grey-color-dark: darken($grey-color, 25%) !default;
|
20
|
+
$orange-color: #f66a0a !default;
|
21
|
+
$table-text-align: left !default;
|
22
|
+
|
23
|
+
// Width of the content area
|
24
|
+
$content-width: 800px !default;
|
25
|
+
|
26
|
+
$on-palm: 600px !default;
|
27
|
+
$on-laptop: 800px !default;
|
28
|
+
|
29
|
+
$on-medium: $on-palm !default;
|
30
|
+
$on-large: $on-laptop !default;
|
31
|
+
|
32
|
+
// Use media queries like this:
|
33
|
+
// @include media-query($on-palm) {
|
34
|
+
// .wrapper {
|
35
|
+
// padding-right: $spacing-unit / 2;
|
36
|
+
// padding-left: $spacing-unit / 2;
|
37
|
+
// }
|
38
|
+
// }
|
39
|
+
// Notice the following mixin uses max-width, in a deprecated, desktop-first
|
40
|
+
// approach, whereas media queries used elsewhere now use min-width.
|
41
|
+
@mixin media-query($device) {
|
42
|
+
@media screen and (max-width: $device) {
|
43
|
+
@content;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
@mixin relative-font-size($ratio) {
|
48
|
+
font-size: $base-font-size * $ratio;
|
49
|
+
}
|
50
|
+
|
51
|
+
// Import partials.
|
52
|
+
@import
|
53
|
+
"docgen/base",
|
54
|
+
"docgen/layout",
|
55
|
+
"docgen/syntax-highlighting"
|
56
|
+
;
|
@@ -0,0 +1,256 @@
|
|
1
|
+
/**
|
2
|
+
* Reset some basic elements
|
3
|
+
*/
|
4
|
+
body, h1, h2, h3, h4, h5, h6,
|
5
|
+
p, blockquote, pre, hr,
|
6
|
+
dl, dd, ol, ul, figure {
|
7
|
+
margin: 0;
|
8
|
+
padding: 0;
|
9
|
+
|
10
|
+
}
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
/**
|
15
|
+
* Basic styling
|
16
|
+
*/
|
17
|
+
body {
|
18
|
+
font: $base-font-weight #{$base-font-size}/#{$base-line-height} $base-font-family;
|
19
|
+
color: $text-color;
|
20
|
+
background-color: $background-color;
|
21
|
+
-webkit-text-size-adjust: 100%;
|
22
|
+
-webkit-font-feature-settings: "kern" 1;
|
23
|
+
-moz-font-feature-settings: "kern" 1;
|
24
|
+
-o-font-feature-settings: "kern" 1;
|
25
|
+
font-feature-settings: "kern" 1;
|
26
|
+
font-kerning: normal;
|
27
|
+
display: flex;
|
28
|
+
min-height: 100vh;
|
29
|
+
flex-direction: column;
|
30
|
+
}
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
/**
|
35
|
+
* Set `margin-bottom` to maintain vertical rhythm
|
36
|
+
*/
|
37
|
+
h1, h2, h3, h4, h5, h6,
|
38
|
+
p, blockquote, pre,
|
39
|
+
ul, ol, dl, figure,
|
40
|
+
%vertical-rhythm {
|
41
|
+
margin-bottom: $spacing-unit / 2;
|
42
|
+
}
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
/**
|
47
|
+
* `main` element
|
48
|
+
*/
|
49
|
+
main {
|
50
|
+
display: block; /* Default value of `display` of `main` element is 'inline' in IE 11. */
|
51
|
+
}
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
/**
|
56
|
+
* Images
|
57
|
+
*/
|
58
|
+
img {
|
59
|
+
max-width: 100%;
|
60
|
+
vertical-align: middle;
|
61
|
+
}
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
/**
|
66
|
+
* Figures
|
67
|
+
*/
|
68
|
+
figure > img {
|
69
|
+
display: block;
|
70
|
+
}
|
71
|
+
|
72
|
+
figcaption {
|
73
|
+
font-size: $small-font-size;
|
74
|
+
}
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
/**
|
79
|
+
* Lists
|
80
|
+
*/
|
81
|
+
ul, ol {
|
82
|
+
margin-left: $spacing-unit;
|
83
|
+
}
|
84
|
+
|
85
|
+
li {
|
86
|
+
> ul,
|
87
|
+
> ol {
|
88
|
+
margin-bottom: 0;
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
/**
|
95
|
+
* Headings
|
96
|
+
*/
|
97
|
+
h1, h2, h3, h4, h5, h6 {
|
98
|
+
font-weight: $base-font-weight;
|
99
|
+
}
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
/**
|
104
|
+
* Links
|
105
|
+
*/
|
106
|
+
a {
|
107
|
+
color: $brand-color;
|
108
|
+
text-decoration: none;
|
109
|
+
|
110
|
+
&:visited {
|
111
|
+
color: darken($brand-color, 15%);
|
112
|
+
}
|
113
|
+
|
114
|
+
&:hover {
|
115
|
+
color: $text-color;
|
116
|
+
text-decoration: underline;
|
117
|
+
}
|
118
|
+
|
119
|
+
.social-media-list &:hover {
|
120
|
+
text-decoration: none;
|
121
|
+
|
122
|
+
.username {
|
123
|
+
text-decoration: underline;
|
124
|
+
}
|
125
|
+
}
|
126
|
+
}
|
127
|
+
|
128
|
+
|
129
|
+
/**
|
130
|
+
* Blockquotes
|
131
|
+
*/
|
132
|
+
blockquote {
|
133
|
+
color: $grey-color;
|
134
|
+
border-left: 4px solid $grey-color-light;
|
135
|
+
padding-left: $spacing-unit / 2;
|
136
|
+
@include relative-font-size(1.125);
|
137
|
+
letter-spacing: -1px;
|
138
|
+
font-style: italic;
|
139
|
+
|
140
|
+
> :last-child {
|
141
|
+
margin-bottom: 0;
|
142
|
+
}
|
143
|
+
}
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
/**
|
148
|
+
* Code formatting
|
149
|
+
*/
|
150
|
+
pre,
|
151
|
+
code {
|
152
|
+
@include relative-font-size(0.9375);
|
153
|
+
border: 1px solid $grey-color-light;
|
154
|
+
border-radius: 3px;
|
155
|
+
background-color: #eef;
|
156
|
+
}
|
157
|
+
|
158
|
+
code {
|
159
|
+
padding: 1px 5px;
|
160
|
+
}
|
161
|
+
|
162
|
+
pre {
|
163
|
+
padding: 8px 12px;
|
164
|
+
overflow-x: auto;
|
165
|
+
|
166
|
+
> code {
|
167
|
+
border: 0;
|
168
|
+
padding-right: 0;
|
169
|
+
padding-left: 0;
|
170
|
+
}
|
171
|
+
}
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
/**
|
176
|
+
* Wrapper
|
177
|
+
*/
|
178
|
+
.wrapper {
|
179
|
+
max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit}));
|
180
|
+
max-width: calc(#{$content-width} - (#{$spacing-unit}));
|
181
|
+
margin-right: auto;
|
182
|
+
margin-left: auto;
|
183
|
+
padding-right: $spacing-unit / 2;
|
184
|
+
padding-left: $spacing-unit / 2;
|
185
|
+
@extend %clearfix;
|
186
|
+
|
187
|
+
@media screen and (min-width: $on-large) {
|
188
|
+
max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit} * 2));
|
189
|
+
max-width: calc(#{$content-width} - (#{$spacing-unit} * 2));
|
190
|
+
padding-right: $spacing-unit;
|
191
|
+
padding-left: $spacing-unit;
|
192
|
+
}
|
193
|
+
}
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
/**
|
198
|
+
* Clearfix
|
199
|
+
*/
|
200
|
+
%clearfix:after {
|
201
|
+
content: "";
|
202
|
+
display: table;
|
203
|
+
clear: both;
|
204
|
+
}
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
/**
|
209
|
+
* Icons
|
210
|
+
*/
|
211
|
+
|
212
|
+
.orange {
|
213
|
+
color: $orange-color;
|
214
|
+
}
|
215
|
+
|
216
|
+
.grey {
|
217
|
+
color: $grey-color;
|
218
|
+
}
|
219
|
+
|
220
|
+
.svg-icon {
|
221
|
+
width: 16px;
|
222
|
+
height: 16px;
|
223
|
+
display: inline-block;
|
224
|
+
fill: currentColor;
|
225
|
+
padding: 5px 3px 2px 5px;
|
226
|
+
vertical-align: text-bottom;
|
227
|
+
}
|
228
|
+
|
229
|
+
|
230
|
+
/**
|
231
|
+
* Tables
|
232
|
+
*/
|
233
|
+
table {
|
234
|
+
margin-bottom: $spacing-unit;
|
235
|
+
width: 100%;
|
236
|
+
text-align: $table-text-align;
|
237
|
+
color: lighten($text-color, 18%);
|
238
|
+
border-collapse: collapse;
|
239
|
+
border: 1px solid $grey-color-light;
|
240
|
+
tr {
|
241
|
+
&:nth-child(even) {
|
242
|
+
background-color: lighten($grey-color-light, 6%);
|
243
|
+
}
|
244
|
+
}
|
245
|
+
th, td {
|
246
|
+
padding: ($spacing-unit / 3) ($spacing-unit / 2);
|
247
|
+
}
|
248
|
+
th {
|
249
|
+
background-color: lighten($grey-color-light, 3%);
|
250
|
+
border: 1px solid darken($grey-color-light, 4%);
|
251
|
+
border-bottom-color: darken($grey-color-light, 12%);
|
252
|
+
}
|
253
|
+
td {
|
254
|
+
border: 1px solid $grey-color-light;
|
255
|
+
}
|
256
|
+
}
|
@@ -0,0 +1,298 @@
|
|
1
|
+
/**
|
2
|
+
* Site header
|
3
|
+
*/
|
4
|
+
.site-header {
|
5
|
+
border-top: 5px solid $grey-color-dark;
|
6
|
+
border-bottom: 1px solid $grey-color-light;
|
7
|
+
min-height: $spacing-unit * 1.865;
|
8
|
+
line-height: $base-line-height * $base-font-size * 2.25;
|
9
|
+
|
10
|
+
// Positioning context for the mobile navigation icon
|
11
|
+
position: relative;
|
12
|
+
}
|
13
|
+
|
14
|
+
.site-title {
|
15
|
+
@include relative-font-size(1.625);
|
16
|
+
font-weight: 300;
|
17
|
+
letter-spacing: -1px;
|
18
|
+
margin-bottom: 0;
|
19
|
+
float: left;
|
20
|
+
|
21
|
+
@include media-query($on-palm) {
|
22
|
+
padding-right: 45px;
|
23
|
+
}
|
24
|
+
|
25
|
+
&,
|
26
|
+
&:visited {
|
27
|
+
color: $grey-color-dark;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
.site-nav {
|
32
|
+
position: absolute;
|
33
|
+
top: 9px;
|
34
|
+
right: $spacing-unit / 2;
|
35
|
+
background-color: $background-color;
|
36
|
+
border: 1px solid $grey-color-light;
|
37
|
+
border-radius: 5px;
|
38
|
+
text-align: right;
|
39
|
+
|
40
|
+
.nav-trigger {
|
41
|
+
display: none;
|
42
|
+
}
|
43
|
+
|
44
|
+
.menu-icon {
|
45
|
+
float: right;
|
46
|
+
width: 36px;
|
47
|
+
height: 26px;
|
48
|
+
line-height: 0;
|
49
|
+
padding-top: 10px;
|
50
|
+
text-align: center;
|
51
|
+
|
52
|
+
> svg path {
|
53
|
+
fill: $grey-color-dark;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
57
|
+
label[for="nav-trigger"] {
|
58
|
+
display: block;
|
59
|
+
float: right;
|
60
|
+
width: 36px;
|
61
|
+
height: 36px;
|
62
|
+
z-index: 2;
|
63
|
+
cursor: pointer;
|
64
|
+
}
|
65
|
+
|
66
|
+
input ~ .trigger {
|
67
|
+
clear: both;
|
68
|
+
display: none;
|
69
|
+
}
|
70
|
+
|
71
|
+
input:checked ~ .trigger {
|
72
|
+
display: block;
|
73
|
+
padding-bottom: 5px;
|
74
|
+
}
|
75
|
+
|
76
|
+
.page-link {
|
77
|
+
color: $text-color;
|
78
|
+
line-height: $base-line-height;
|
79
|
+
display: block;
|
80
|
+
padding: 5px 10px;
|
81
|
+
|
82
|
+
// Gaps between nav items, but not on the last one
|
83
|
+
&:not(:last-child) {
|
84
|
+
margin-right: 0;
|
85
|
+
}
|
86
|
+
margin-left: 20px;
|
87
|
+
}
|
88
|
+
|
89
|
+
@media screen and (min-width: $on-medium) {
|
90
|
+
position: static;
|
91
|
+
float: right;
|
92
|
+
border: none;
|
93
|
+
background-color: inherit;
|
94
|
+
|
95
|
+
label[for="nav-trigger"] {
|
96
|
+
display: none;
|
97
|
+
}
|
98
|
+
|
99
|
+
.menu-icon {
|
100
|
+
display: none;
|
101
|
+
}
|
102
|
+
|
103
|
+
input ~ .trigger {
|
104
|
+
display: block;
|
105
|
+
}
|
106
|
+
|
107
|
+
.page-link {
|
108
|
+
display: inline;
|
109
|
+
padding: 0;
|
110
|
+
|
111
|
+
&:not(:last-child) {
|
112
|
+
margin-right: 20px;
|
113
|
+
}
|
114
|
+
margin-left: auto;
|
115
|
+
}
|
116
|
+
}
|
117
|
+
}
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
/**
|
122
|
+
* Site footer
|
123
|
+
*/
|
124
|
+
.site-footer {
|
125
|
+
border-top: 1px solid $grey-color-light;
|
126
|
+
padding: $spacing-unit 0;
|
127
|
+
}
|
128
|
+
|
129
|
+
.footer-heading {
|
130
|
+
@include relative-font-size(1.125);
|
131
|
+
margin-bottom: $spacing-unit / 2;
|
132
|
+
}
|
133
|
+
|
134
|
+
.contact-list,
|
135
|
+
.social-media-list {
|
136
|
+
list-style: none;
|
137
|
+
margin-left: 0;
|
138
|
+
}
|
139
|
+
|
140
|
+
.footer-col-wrapper {
|
141
|
+
@include relative-font-size(0.9375);
|
142
|
+
color: $grey-color;
|
143
|
+
margin-left: -$spacing-unit / 2;
|
144
|
+
@extend %clearfix;
|
145
|
+
}
|
146
|
+
|
147
|
+
.footer-col {
|
148
|
+
width: -webkit-calc(100% - (#{$spacing-unit} / 2));
|
149
|
+
width: calc(100% - (#{$spacing-unit} / 2));
|
150
|
+
margin-bottom: $spacing-unit / 2;
|
151
|
+
padding-left: $spacing-unit / 2;
|
152
|
+
}
|
153
|
+
|
154
|
+
.footer-col-1,
|
155
|
+
.footer-col-2 {
|
156
|
+
width: -webkit-calc(50% - (#{$spacing-unit} / 2));
|
157
|
+
width: calc(50% - (#{$spacing-unit} / 2));
|
158
|
+
}
|
159
|
+
|
160
|
+
.footer-col-3 {
|
161
|
+
width: -webkit-calc(100% - (#{$spacing-unit} / 2));
|
162
|
+
width: calc(100% - (#{$spacing-unit} / 2));
|
163
|
+
}
|
164
|
+
|
165
|
+
@media screen and (min-width: $on-large) {
|
166
|
+
.footer-col-1 {
|
167
|
+
width: -webkit-calc(35% - (#{$spacing-unit} / 2));
|
168
|
+
width: calc(35% - (#{$spacing-unit} / 2));
|
169
|
+
}
|
170
|
+
|
171
|
+
.footer-col-2 {
|
172
|
+
width: -webkit-calc(20% - (#{$spacing-unit} / 2));
|
173
|
+
width: calc(20% - (#{$spacing-unit} / 2));
|
174
|
+
}
|
175
|
+
|
176
|
+
.footer-col-3 {
|
177
|
+
width: -webkit-calc(45% - (#{$spacing-unit} / 2));
|
178
|
+
width: calc(45% - (#{$spacing-unit} / 2));
|
179
|
+
}
|
180
|
+
}
|
181
|
+
|
182
|
+
@media screen and (min-width: $on-medium) {
|
183
|
+
.footer-col {
|
184
|
+
float: left;
|
185
|
+
}
|
186
|
+
}
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
/**
|
191
|
+
* Page content
|
192
|
+
*/
|
193
|
+
.page-content {
|
194
|
+
padding: $spacing-unit 0;
|
195
|
+
flex: 1 0 auto;
|
196
|
+
}
|
197
|
+
|
198
|
+
.page-heading {
|
199
|
+
@include relative-font-size(2);
|
200
|
+
}
|
201
|
+
|
202
|
+
.post-list-heading {
|
203
|
+
@include relative-font-size(1.75);
|
204
|
+
}
|
205
|
+
|
206
|
+
.post-list {
|
207
|
+
margin-left: 0;
|
208
|
+
list-style: none;
|
209
|
+
|
210
|
+
> li {
|
211
|
+
margin-bottom: $spacing-unit;
|
212
|
+
}
|
213
|
+
}
|
214
|
+
|
215
|
+
.post-meta {
|
216
|
+
font-size: $small-font-size;
|
217
|
+
color: $grey-color;
|
218
|
+
}
|
219
|
+
|
220
|
+
.post-link {
|
221
|
+
display: block;
|
222
|
+
@include relative-font-size(1.5);
|
223
|
+
}
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
/**
|
228
|
+
* Posts
|
229
|
+
*/
|
230
|
+
.post-header {
|
231
|
+
margin-bottom: $spacing-unit;
|
232
|
+
}
|
233
|
+
|
234
|
+
.post-title,
|
235
|
+
.post-content h1 {
|
236
|
+
@include relative-font-size(2.625);
|
237
|
+
letter-spacing: -1px;
|
238
|
+
line-height: 1;
|
239
|
+
|
240
|
+
@media screen and (min-width: $on-large) {
|
241
|
+
@include relative-font-size(2.625);
|
242
|
+
}
|
243
|
+
}
|
244
|
+
|
245
|
+
.post-content {
|
246
|
+
margin-bottom: $spacing-unit;
|
247
|
+
|
248
|
+
h2 {
|
249
|
+
@include relative-font-size(1.75);
|
250
|
+
|
251
|
+
@media screen and (min-width: $on-large) {
|
252
|
+
@include relative-font-size(2);
|
253
|
+
}
|
254
|
+
}
|
255
|
+
|
256
|
+
h3 {
|
257
|
+
@include relative-font-size(1.375);
|
258
|
+
|
259
|
+
@media screen and (min-width: $on-large) {
|
260
|
+
@include relative-font-size(1.625);
|
261
|
+
}
|
262
|
+
}
|
263
|
+
|
264
|
+
h4 {
|
265
|
+
@include relative-font-size(1.125);
|
266
|
+
|
267
|
+
@media screen and (min-width: $on-large) {
|
268
|
+
@include relative-font-size(1.25);
|
269
|
+
}
|
270
|
+
}
|
271
|
+
}
|
272
|
+
|
273
|
+
|
274
|
+
.social-media-list {
|
275
|
+
display: table;
|
276
|
+
margin: 0 auto;
|
277
|
+
li {
|
278
|
+
float: left;
|
279
|
+
margin: 0 5px;
|
280
|
+
&:first-of-type { margin-left: 0 }
|
281
|
+
&:last-of-type { margin-right: 0 }
|
282
|
+
a {
|
283
|
+
display: block;
|
284
|
+
padding: $spacing-unit / 4;
|
285
|
+
border: 1px solid $grey-color-light
|
286
|
+
}
|
287
|
+
&:hover .svg-icon { fill: currentColor; }
|
288
|
+
}
|
289
|
+
}
|
290
|
+
|
291
|
+
|
292
|
+
/**
|
293
|
+
* Grid helpers
|
294
|
+
*/
|
295
|
+
.one-half {
|
296
|
+
width: -webkit-calc(50% - (#{$spacing-unit} / 2));
|
297
|
+
width: calc(50% - (#{$spacing-unit} / 2));
|
298
|
+
}
|
@@ -0,0 +1,71 @@
|
|
1
|
+
/**
|
2
|
+
* Syntax highlighting styles
|
3
|
+
*/
|
4
|
+
.highlight {
|
5
|
+
background: #fff;
|
6
|
+
@extend %vertical-rhythm;
|
7
|
+
|
8
|
+
.highlighter-rouge & {
|
9
|
+
background: #eef;
|
10
|
+
}
|
11
|
+
|
12
|
+
.c { color: #998; font-style: italic } // Comment
|
13
|
+
.err { color: #a61717; background-color: #e3d2d2 } // Error
|
14
|
+
.k { font-weight: bold } // Keyword
|
15
|
+
.o { font-weight: bold } // Operator
|
16
|
+
.cm { color: #998; font-style: italic } // Comment.Multiline
|
17
|
+
.cp { color: #999; font-weight: bold } // Comment.Preproc
|
18
|
+
.c1 { color: #998; font-style: italic } // Comment.Single
|
19
|
+
.cs { color: #999; font-weight: bold; font-style: italic } // Comment.Special
|
20
|
+
.gd { color: #000; background-color: #fdd } // Generic.Deleted
|
21
|
+
.gd .x { color: #000; background-color: #faa } // Generic.Deleted.Specific
|
22
|
+
.ge { font-style: italic } // Generic.Emph
|
23
|
+
.gr { color: #a00 } // Generic.Error
|
24
|
+
.gh { color: #999 } // Generic.Heading
|
25
|
+
.gi { color: #000; background-color: #dfd } // Generic.Inserted
|
26
|
+
.gi .x { color: #000; background-color: #afa } // Generic.Inserted.Specific
|
27
|
+
.go { color: #888 } // Generic.Output
|
28
|
+
.gp { color: #555 } // Generic.Prompt
|
29
|
+
.gs { font-weight: bold } // Generic.Strong
|
30
|
+
.gu { color: #aaa } // Generic.Subheading
|
31
|
+
.gt { color: #a00 } // Generic.Traceback
|
32
|
+
.kc { font-weight: bold } // Keyword.Constant
|
33
|
+
.kd { font-weight: bold } // Keyword.Declaration
|
34
|
+
.kp { font-weight: bold } // Keyword.Pseudo
|
35
|
+
.kr { font-weight: bold } // Keyword.Reserved
|
36
|
+
.kt { color: #458; font-weight: bold } // Keyword.Type
|
37
|
+
.m { color: #099 } // Literal.Number
|
38
|
+
.s { color: #d14 } // Literal.String
|
39
|
+
.na { color: #008080 } // Name.Attribute
|
40
|
+
.nb { color: #0086B3 } // Name.Builtin
|
41
|
+
.nc { color: #458; font-weight: bold } // Name.Class
|
42
|
+
.no { color: #008080 } // Name.Constant
|
43
|
+
.ni { color: #800080 } // Name.Entity
|
44
|
+
.ne { color: #900; font-weight: bold } // Name.Exception
|
45
|
+
.nf { color: #900; font-weight: bold } // Name.Function
|
46
|
+
.nn { color: #555 } // Name.Namespace
|
47
|
+
.nt { color: #000080 } // Name.Tag
|
48
|
+
.nv { color: #008080 } // Name.Variable
|
49
|
+
.ow { font-weight: bold } // Operator.Word
|
50
|
+
.w { color: #bbb } // Text.Whitespace
|
51
|
+
.mf { color: #099 } // Literal.Number.Float
|
52
|
+
.mh { color: #099 } // Literal.Number.Hex
|
53
|
+
.mi { color: #099 } // Literal.Number.Integer
|
54
|
+
.mo { color: #099 } // Literal.Number.Oct
|
55
|
+
.sb { color: #d14 } // Literal.String.Backtick
|
56
|
+
.sc { color: #d14 } // Literal.String.Char
|
57
|
+
.sd { color: #d14 } // Literal.String.Doc
|
58
|
+
.s2 { color: #d14 } // Literal.String.Double
|
59
|
+
.se { color: #d14 } // Literal.String.Escape
|
60
|
+
.sh { color: #d14 } // Literal.String.Heredoc
|
61
|
+
.si { color: #d14 } // Literal.String.Interpol
|
62
|
+
.sx { color: #d14 } // Literal.String.Other
|
63
|
+
.sr { color: #009926 } // Literal.String.Regex
|
64
|
+
.s1 { color: #d14 } // Literal.String.Single
|
65
|
+
.ss { color: #990073 } // Literal.String.Symbol
|
66
|
+
.bp { color: #999 } // Name.Builtin.Pseudo
|
67
|
+
.vc { color: #008080 } // Name.Variable.Class
|
68
|
+
.vg { color: #008080 } // Name.Variable.Global
|
69
|
+
.vi { color: #008080 } // Name.Variable.Instance
|
70
|
+
.il { color: #099 } // Literal.Number.Integer.Long
|
71
|
+
}
|
metadata
ADDED
@@ -0,0 +1,82 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jekyll-theme-docgen
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Albert Liu
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-02-27 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: jekyll
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.5'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.5'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description:
|
42
|
+
email:
|
43
|
+
- albertymliu@gmail.com
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- LICENSE.txt
|
49
|
+
- README.md
|
50
|
+
- _includes/head.html
|
51
|
+
- _layouts/default.html
|
52
|
+
- _sass/docgen.scss
|
53
|
+
- _sass/docgen/_base.scss
|
54
|
+
- _sass/docgen/_layout.scss
|
55
|
+
- _sass/docgen/_syntax-highlighting.scss
|
56
|
+
- assets/css/style.scss
|
57
|
+
homepage: https://github.com/a1liu/docgen
|
58
|
+
licenses:
|
59
|
+
- MIT
|
60
|
+
metadata:
|
61
|
+
plugin_type: theme
|
62
|
+
post_install_message:
|
63
|
+
rdoc_options: []
|
64
|
+
require_paths:
|
65
|
+
- lib
|
66
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0'
|
71
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
requirements: []
|
77
|
+
rubyforge_project:
|
78
|
+
rubygems_version: 2.7.6
|
79
|
+
signing_key:
|
80
|
+
specification_version: 4
|
81
|
+
summary: A document generation helper theme for Jekyll.
|
82
|
+
test_files: []
|