github-docs 0.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.
Files changed (53) hide show
  1. checksums.yaml +7 -0
  2. data/_includes/sidebar.html +66 -0
  3. data/_layouts/default.html +50 -0
  4. data/_layouts/home.html +4 -0
  5. data/_layouts/page.html +4 -0
  6. data/_layouts/post.html +4 -0
  7. data/_sass/github-docs.scss +215 -0
  8. data/_sass/primer-base/base.scss +84 -0
  9. data/_sass/primer-base/index.scss +3 -0
  10. data/_sass/primer-base/normalize.scss +421 -0
  11. data/_sass/primer-base/typography-base.scss +86 -0
  12. data/_sass/primer-layout/columns.scss +54 -0
  13. data/_sass/primer-layout/container.scss +30 -0
  14. data/_sass/primer-layout/grid-offset.scss +19 -0
  15. data/_sass/primer-layout/grid.scss +64 -0
  16. data/_sass/primer-layout/index.scss +4 -0
  17. data/_sass/primer-markdown/blob-csv.scss +27 -0
  18. data/_sass/primer-markdown/code.scss +63 -0
  19. data/_sass/primer-markdown/headings.scss +65 -0
  20. data/_sass/primer-markdown/images.scss +119 -0
  21. data/_sass/primer-markdown/index.scss +7 -0
  22. data/_sass/primer-markdown/lists.scss +76 -0
  23. data/_sass/primer-markdown/markdown-body.scss +106 -0
  24. data/_sass/primer-markdown/tables.scss +33 -0
  25. data/_sass/primer-support/index.scss +11 -0
  26. data/_sass/primer-support/mixins/buttons.scss +160 -0
  27. data/_sass/primer-support/mixins/layout.scss +58 -0
  28. data/_sass/primer-support/mixins/misc.scss +29 -0
  29. data/_sass/primer-support/mixins/typography.scss +84 -0
  30. data/_sass/primer-support/variables/color-system.scss +114 -0
  31. data/_sass/primer-support/variables/colors.scss +67 -0
  32. data/_sass/primer-support/variables/layout.scss +78 -0
  33. data/_sass/primer-support/variables/misc.scss +40 -0
  34. data/_sass/primer-support/variables/typography.scss +43 -0
  35. data/_sass/primer-utilities/animations.scss +184 -0
  36. data/_sass/primer-utilities/borders.scss +100 -0
  37. data/_sass/primer-utilities/box-shadow.scss +26 -0
  38. data/_sass/primer-utilities/colors.scss +106 -0
  39. data/_sass/primer-utilities/details.scss +18 -0
  40. data/_sass/primer-utilities/flexbox.scss +52 -0
  41. data/_sass/primer-utilities/index.scss +13 -0
  42. data/_sass/primer-utilities/layout.scss +85 -0
  43. data/_sass/primer-utilities/margin.scss +53 -0
  44. data/_sass/primer-utilities/padding.scss +54 -0
  45. data/_sass/primer-utilities/typography.scss +215 -0
  46. data/_sass/primer-utilities/visibility-display.scss +87 -0
  47. data/_sass/rouge.scss +209 -0
  48. data/assets/css/index.scss +16 -0
  49. data/assets/imgs/back.svg +1 -0
  50. data/assets/js/anchor.min.js +6 -0
  51. data/assets/js/index.js +52 -0
  52. data/readme.md +34 -0
  53. metadata +156 -0
@@ -0,0 +1,215 @@
1
+ // stylelint-disable block-closing-brace-space-before, primer/selector-no-utility, selector-list-comma-newline-after
2
+ // stylelint-disable comment-empty-line-before
3
+ // Type scale variables found in primer-support/lib/variables.scss
4
+ // $h00-size-mobile: 40px;
5
+ // $h0-size-mobile: 32px;
6
+ // $h1-size-mobile: 26px;
7
+ // $h2-size-mobile: 22px;
8
+ // $h3-size-mobile: 18px;
9
+ // $h00-size: 48px;
10
+ // $h0-size: 40px;
11
+ // $h1-size: 32px;
12
+ // $h2-size: 24px;
13
+ // $h3-size: 20px;
14
+ // $h4-size: 16px;
15
+ // $h5-size: 14px;
16
+ // $h6-size: 12px;
17
+
18
+ /* Set the font size to 26px */
19
+ .h1 {
20
+ font-size: $h1-size-mobile !important;
21
+
22
+ @include breakpoint(md) { font-size: $h1-size !important; }
23
+ }
24
+
25
+ /* Set the font size to 22px */
26
+ .h2 {
27
+ font-size: $h2-size-mobile !important;
28
+
29
+ @include breakpoint(md) { font-size: $h2-size !important; }
30
+ }
31
+
32
+ /* Set the font size to 18px */
33
+ .h3 {
34
+ font-size: $h3-size-mobile !important;
35
+
36
+ @include breakpoint(md) { font-size: $h3-size !important; }
37
+ }
38
+
39
+ /* Set the font size to #{$h4-size} */
40
+ .h4 {
41
+ font-size: $h4-size !important;
42
+ }
43
+
44
+ /* Set the font size to #{$h5-size} */
45
+ .h5 { font-size: $h5-size !important; }
46
+
47
+ // Does not include color property like typography base
48
+ // styles, color should be applied with color utilities.
49
+ /* Set the font size to #{$h6-size} */
50
+ .h6 { font-size: $h6-size !important; }
51
+
52
+ // Heading utilities
53
+ .h1, .h2, .h3, .h4, .h5, .h6 { font-weight: $font-weight-bold !important; }
54
+
55
+ // Type utilities that match type sale
56
+ /* Set the font size to 26px */
57
+ .f1 {
58
+ font-size: $h1-size-mobile !important;
59
+
60
+ @include breakpoint(md) { font-size: $h1-size !important; }
61
+ }
62
+
63
+ /* Set the font size to 22px */
64
+ .f2 {
65
+ font-size: $h2-size-mobile !important;
66
+
67
+ @include breakpoint(md) { font-size: $h2-size !important; }
68
+ }
69
+
70
+ /* Set the font size to 18px */
71
+ .f3 {
72
+ font-size: $h3-size-mobile !important;
73
+
74
+ @include breakpoint(md) { font-size: $h3-size !important; }
75
+ }
76
+
77
+ /* Set the font size to #{$h4-size} */
78
+ .f4 {
79
+ font-size: $h4-size !important;
80
+
81
+ @include breakpoint(md) { font-size: $h4-size !important; }
82
+ }
83
+
84
+ /* Set the font size to #{$h5-size} */
85
+ .f5 { font-size: $h5-size !important; }
86
+ /* Set the font size to #{$h6-size} */
87
+ .f6 { font-size: $h6-size !important; }
88
+
89
+ // Type utils with light weight that match type scale
90
+ /* Set the font size to 40px and weight to light */
91
+ .f00-light {
92
+ font-size: $h00-size-mobile !important;
93
+ font-weight: $font-weight-light !important;
94
+
95
+ @include breakpoint(md) { font-size: $h00-size !important; }
96
+ }
97
+
98
+ /* Set the font size to 32px and weight to light */
99
+ .f0-light {
100
+ font-size: $h0-size-mobile !important;
101
+ font-weight: $font-weight-light !important;
102
+
103
+ @include breakpoint(md) { font-size: $h0-size !important; }
104
+ }
105
+
106
+ /* Set the font size to 26px and weight to light */
107
+ .f1-light {
108
+ font-size: $h1-size-mobile !important;
109
+ font-weight: $font-weight-light !important;
110
+
111
+ @include breakpoint(md) { font-size: $h1-size !important; }
112
+ }
113
+
114
+ /* Set the font size to 22px and weight to light */
115
+ .f2-light {
116
+ font-size: $h2-size-mobile !important;
117
+ font-weight: $font-weight-light !important;
118
+
119
+ @include breakpoint(md) { font-size: $h2-size !important; }
120
+ }
121
+
122
+ // Same size and weight as .lead but without color property
123
+ /* Set the font size to 18px and weight to light */
124
+ .f3-light {
125
+ font-size: $h3-size-mobile !important;
126
+ font-weight: $font-weight-light !important;
127
+
128
+ @include breakpoint(md) { font-size: $h3-size !important; }
129
+ }
130
+
131
+ // Smallest text size
132
+ /* Set the font size to ${#h6-size} */
133
+ .text-small { font-size: $h6-size !important; } // 12px
134
+
135
+ /* Large leading paragraphs */
136
+ .lead {
137
+ margin-bottom: 30px;
138
+ font-size: $h3-size;
139
+ font-weight: $font-weight-light;
140
+ color: $gray-600;
141
+ }
142
+
143
+ // Line-height variations
144
+ // Close to commonly used line-heights. Most line-heights
145
+ // combined with type size equate to whole pixels.
146
+ // Will be improved with future typography scale updates.
147
+ /* Set the line height to ultra condensed */
148
+ .lh-condensed-ultra { line-height: $lh-condensed-ultra !important; }
149
+ /* Set the line height to condensed */
150
+ .lh-condensed { line-height: $lh-condensed !important; }
151
+ /* Set the line height to default */
152
+ .lh-default { line-height: $lh-default !important; }
153
+ /* Set the line height to zero */
154
+ .lh-0 { line-height: 0 !important; }
155
+
156
+ // Text alignments
157
+ // Responsive text alignment
158
+ @each $breakpoint, $variant in $responsive-variants {
159
+ @include breakpoint($breakpoint) {
160
+ /* Text align to the right */
161
+ .text#{$variant}-right { text-align: right !important; }
162
+ /* Text align to the left */
163
+ .text#{$variant}-left { text-align: left !important; }
164
+ /* Text align to the center */
165
+ .text#{$variant}-center { text-align: center !important; }
166
+ }
167
+ }
168
+
169
+ // Text styles
170
+ /* Set the font weight to normal */
171
+ .text-normal { font-weight: $font-weight-normal !important; }
172
+ /* Set the font weight to bold */
173
+ .text-bold { font-weight: $font-weight-bold !important;}
174
+ /* Set the font to italic */
175
+ .text-italic { font-style: italic !important; }
176
+ /* Make text uppercase */
177
+ .text-uppercase { text-transform: uppercase !important; }
178
+ /* Underline text */
179
+ .text-underline { text-decoration: underline !important; }
180
+ /* Don't underline text */
181
+ .no-underline { text-decoration: none !important; }
182
+ /* Don't wrap white space */
183
+ .no-wrap { white-space: nowrap !important; }
184
+ /* Normal white space */
185
+ .ws-normal { white-space: normal !important; }
186
+ /* Allow long lines with no spaces to line break */
187
+ .wb-break-all { word-break: break-all !important; }
188
+
189
+ .text-emphasized {
190
+ font-weight: $font-weight-bold;
191
+ color: $text-gray-dark;
192
+ }
193
+
194
+ // List styles
195
+ .list-style-none { list-style: none !important; }
196
+
197
+ // Text Shadows
198
+ /* Add a dark text shadow */
199
+ .text-shadow-dark {
200
+ text-shadow: 0 1px 1px rgba($black, 0.25), 0 1px 25px rgba($black, 0.75);
201
+ }
202
+ /* Add a light text shadow */
203
+ .text-shadow-light {
204
+ text-shadow: 0 1px 0 rgba($white, 0.5);
205
+ }
206
+
207
+ /* Set to monospace font */
208
+ .text-mono {
209
+ font-family: $mono-font;
210
+ }
211
+
212
+ /* Disallow user from selecting text */
213
+ .user-select-none {
214
+ user-select: none !important;
215
+ }
@@ -0,0 +1,87 @@
1
+ // Visibility and display utilities
2
+ // stylelint-disable block-opening-brace-space-after, block-opening-brace-space-before, primer/selector-no-utility
3
+ // stylelint-disable comment-empty-line-before
4
+
5
+ $display-values: (
6
+ block,
7
+ flex,
8
+ inline,
9
+ inline-block,
10
+ inline-flex,
11
+ none,
12
+ table,
13
+ table-cell
14
+ );
15
+
16
+ // Responsive display utilities
17
+ @each $breakpoint, $variant in $responsive-variants {
18
+ @include breakpoint($breakpoint) {
19
+ @each $display in $display-values {
20
+ .d#{$variant}-#{$display} { display: $display !important; }
21
+ }
22
+ }
23
+ }
24
+
25
+ .v-hidden { visibility: hidden !important; }
26
+ .v-visible { visibility: visible !important; }
27
+
28
+ // Hide utilities for each breakpoint
29
+ // Each hide utility only applies to one breakpoint range.
30
+ @media (max-width: $width-sm) {
31
+ .hide-sm {
32
+ display: none !important;
33
+ }
34
+ }
35
+
36
+ @media (min-width: $width-sm) and (max-width: $width-md) {
37
+ .hide-md {
38
+ display: none !important;
39
+ }
40
+ }
41
+
42
+ @media (min-width: $width-md) and (max-width: $width-lg) {
43
+ .hide-lg {
44
+ display: none !important;
45
+ }
46
+ }
47
+
48
+ @media (min-width: $width-lg) {
49
+ .hide-xl {
50
+ display: none !important;
51
+ }
52
+ }
53
+
54
+ /* Set the table-layout to fixed */
55
+ .table-fixed { table-layout: fixed !important; }
56
+
57
+ // Only display content to screen readers
58
+ //
59
+ // See: http://a11yproject.com/posts/how-to-hide-content/
60
+ .sr-only {
61
+ position: absolute;
62
+ width: 1px;
63
+ height: 1px;
64
+ padding: 0;
65
+ overflow: hidden;
66
+ clip: rect(0, 0, 0, 0);
67
+ // Workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=1241631
68
+ word-wrap: normal;
69
+ border: 0;
70
+ }
71
+
72
+ // Only display content on focus
73
+ .show-on-focus {
74
+ position: absolute;
75
+ width: 1px;
76
+ height: 1px;
77
+ margin: 0;
78
+ overflow: hidden;
79
+ clip: rect(1px, 1px, 1px, 1px);
80
+
81
+ &:focus {
82
+ z-index: 20;
83
+ width: auto;
84
+ height: auto;
85
+ clip: auto;
86
+ }
87
+ }
data/_sass/rouge.scss ADDED
@@ -0,0 +1,209 @@
1
+ .highlight table td { padding: 5px; }
2
+ .highlight table pre { margin: 0; }
3
+ .highlight .cm {
4
+ color: #999988;
5
+ font-style: italic;
6
+ }
7
+ .highlight .cp {
8
+ color: #999999;
9
+ font-weight: bold;
10
+ }
11
+ .highlight .c1 {
12
+ color: #999988;
13
+ font-style: italic;
14
+ }
15
+ .highlight .cs {
16
+ color: #999999;
17
+ font-weight: bold;
18
+ font-style: italic;
19
+ }
20
+ .highlight .c, .highlight .cd {
21
+ color: #999988;
22
+ font-style: italic;
23
+ }
24
+ .highlight .err {
25
+ color: #a61717;
26
+ background-color: #e3d2d2;
27
+ }
28
+ .highlight .gd {
29
+ color: #000000;
30
+ background-color: #ffdddd;
31
+ }
32
+ .highlight .ge {
33
+ color: #000000;
34
+ font-style: italic;
35
+ }
36
+ .highlight .gr {
37
+ color: #aa0000;
38
+ }
39
+ .highlight .gh {
40
+ color: #999999;
41
+ }
42
+ .highlight .gi {
43
+ color: #000000;
44
+ background-color: #ddffdd;
45
+ }
46
+ .highlight .go {
47
+ color: #888888;
48
+ }
49
+ .highlight .gp {
50
+ color: #555555;
51
+ }
52
+ .highlight .gs {
53
+ font-weight: bold;
54
+ }
55
+ .highlight .gu {
56
+ color: #aaaaaa;
57
+ }
58
+ .highlight .gt {
59
+ color: #aa0000;
60
+ }
61
+ .highlight .kc {
62
+ color: #000000;
63
+ font-weight: bold;
64
+ }
65
+ .highlight .kd {
66
+ color: #000000;
67
+ font-weight: bold;
68
+ }
69
+ .highlight .kn {
70
+ color: #000000;
71
+ font-weight: bold;
72
+ }
73
+ .highlight .kp {
74
+ color: #000000;
75
+ font-weight: bold;
76
+ }
77
+ .highlight .kr {
78
+ color: #000000;
79
+ font-weight: bold;
80
+ }
81
+ .highlight .kt {
82
+ color: #445588;
83
+ font-weight: bold;
84
+ }
85
+ .highlight .k, .highlight .kv {
86
+ color: #000000;
87
+ font-weight: bold;
88
+ }
89
+ .highlight .mf {
90
+ color: #009999;
91
+ }
92
+ .highlight .mh {
93
+ color: #009999;
94
+ }
95
+ .highlight .il {
96
+ color: #009999;
97
+ }
98
+ .highlight .mi {
99
+ color: #009999;
100
+ }
101
+ .highlight .mo {
102
+ color: #009999;
103
+ }
104
+ .highlight .m, .highlight .mb, .highlight .mx {
105
+ color: #009999;
106
+ }
107
+ .highlight .sb {
108
+ color: #d14;
109
+ }
110
+ .highlight .sc {
111
+ color: #d14;
112
+ }
113
+ .highlight .sd {
114
+ color: #d14;
115
+ }
116
+ .highlight .s2 {
117
+ color: #d14;
118
+ }
119
+ .highlight .se {
120
+ color: #d14;
121
+ }
122
+ .highlight .sh {
123
+ color: #d14;
124
+ }
125
+ .highlight .si {
126
+ color: #d14;
127
+ }
128
+ .highlight .sx {
129
+ color: #d14;
130
+ }
131
+ .highlight .sr {
132
+ color: #009926;
133
+ }
134
+ .highlight .s1 {
135
+ color: #d14;
136
+ }
137
+ .highlight .ss {
138
+ color: #990073;
139
+ }
140
+ .highlight .s {
141
+ color: #d14;
142
+ }
143
+ .highlight .na {
144
+ color: #008080;
145
+ }
146
+ .highlight .bp {
147
+ color: #999999;
148
+ }
149
+ .highlight .nb {
150
+ color: #0086B3;
151
+ }
152
+ .highlight .nc {
153
+ color: #445588;
154
+ font-weight: bold;
155
+ }
156
+ .highlight .no {
157
+ color: #008080;
158
+ }
159
+ .highlight .nd {
160
+ color: #3c5d5d;
161
+ font-weight: bold;
162
+ }
163
+ .highlight .ni {
164
+ color: #800080;
165
+ }
166
+ .highlight .ne {
167
+ color: #990000;
168
+ font-weight: bold;
169
+ }
170
+ .highlight .nf {
171
+ color: #990000;
172
+ font-weight: bold;
173
+ }
174
+ .highlight .nl {
175
+ color: #990000;
176
+ font-weight: bold;
177
+ }
178
+ .highlight .nn {
179
+ color: #555555;
180
+ }
181
+ .highlight .nt {
182
+ color: #000080;
183
+ }
184
+ .highlight .vc {
185
+ color: #008080;
186
+ }
187
+ .highlight .vg {
188
+ color: #008080;
189
+ }
190
+ .highlight .vi {
191
+ color: #008080;
192
+ }
193
+ .highlight .nv {
194
+ color: #008080;
195
+ }
196
+ .highlight .ow {
197
+ color: #000000;
198
+ font-weight: bold;
199
+ }
200
+ .highlight .o {
201
+ color: #000000;
202
+ font-weight: bold;
203
+ }
204
+ .highlight .w {
205
+ color: #bbbbbb;
206
+ }
207
+ .highlight {
208
+ background-color: #f8f8f8;
209
+ }
@@ -0,0 +1,16 @@
1
+ ---
2
+ # this ensures Jekyll reads the file to be transformed into CSS later
3
+ # only Main files contain this front matter, not partials.
4
+ ---
5
+
6
+ {% if site.logo %}
7
+ $logo: "{{ site.logo | absolute_url }}";
8
+ {% endif %}
9
+
10
+ @import "primer-support/index.scss";
11
+ @import "primer-base/index.scss";
12
+ @import "primer-utilities/index.scss";
13
+ @import "primer-layout/index.scss";
14
+ @import "primer-markdown/index.scss";
15
+ @import "github-docs";
16
+ @import "rouge";
@@ -0,0 +1 @@
1
+ <svg preserveAspectRatio="xMidYMid meet" height="1em" width="1em" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke="currentColor" class="icon-7f6730be--text-3f89f380"><g><line x1="19" y1="12" x2="5" y2="12"></line><polyline points="12 19 5 12 12 5"></polyline></g></svg>
@@ -0,0 +1,6 @@
1
+ /**
2
+ * AnchorJS - v4.1.0 - 2017-09-20
3
+ * https://github.com/bryanbraun/anchorjs
4
+ * Copyright (c) 2017 Bryan Braun; Licensed MIT
5
+ */
6
+ !function(A,e){"use strict";"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&module.exports?module.exports=e():(A.AnchorJS=e(),A.anchors=new A.AnchorJS)}(this,function(){"use strict";return function(A){function e(A){A.icon=A.hasOwnProperty("icon")?A.icon:"",A.visible=A.hasOwnProperty("visible")?A.visible:"hover",A.placement=A.hasOwnProperty("placement")?A.placement:"right",A.ariaLabel=A.hasOwnProperty("ariaLabel")?A.ariaLabel:"Anchor",A.class=A.hasOwnProperty("class")?A.class:"",A.truncate=A.hasOwnProperty("truncate")?Math.floor(A.truncate):64}function t(A){var e;if("string"==typeof A||A instanceof String)e=[].slice.call(document.querySelectorAll(A));else{if(!(Array.isArray(A)||A instanceof NodeList))throw new Error("The selector provided to AnchorJS was invalid.");e=[].slice.call(A)}return e}function i(){if(null===document.head.querySelector("style.anchorjs")){var A,e=document.createElement("style");e.className="anchorjs",e.appendChild(document.createTextNode("")),void 0===(A=document.head.querySelector('[rel="stylesheet"], style'))?document.head.appendChild(e):document.head.insertBefore(e,A),e.sheet.insertRule(" .anchorjs-link { opacity: 0; text-decoration: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }",e.sheet.cssRules.length),e.sheet.insertRule(" *:hover > .anchorjs-link, .anchorjs-link:focus { opacity: 1; }",e.sheet.cssRules.length),e.sheet.insertRule(" [data-anchorjs-icon]::after { content: attr(data-anchorjs-icon); }",e.sheet.cssRules.length),e.sheet.insertRule(' @font-face { font-family: "anchorjs-icons"; src: url(data:n/a;base64,AAEAAAALAIAAAwAwT1MvMg8yG2cAAAE4AAAAYGNtYXDp3gC3AAABpAAAAExnYXNwAAAAEAAAA9wAAAAIZ2x5ZlQCcfwAAAH4AAABCGhlYWQHFvHyAAAAvAAAADZoaGVhBnACFwAAAPQAAAAkaG10eASAADEAAAGYAAAADGxvY2EACACEAAAB8AAAAAhtYXhwAAYAVwAAARgAAAAgbmFtZQGOH9cAAAMAAAAAunBvc3QAAwAAAAADvAAAACAAAQAAAAEAAHzE2p9fDzz1AAkEAAAAAADRecUWAAAAANQA6R8AAAAAAoACwAAAAAgAAgAAAAAAAAABAAADwP/AAAACgAAA/9MCrQABAAAAAAAAAAAAAAAAAAAAAwABAAAAAwBVAAIAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAMCQAGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAg//0DwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAAIAAAACgAAxAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEADAAAAAIAAgAAgAAACDpy//9//8AAAAg6cv//f///+EWNwADAAEAAAAAAAAAAAAAAAAACACEAAEAAAAAAAAAAAAAAAAxAAACAAQARAKAAsAAKwBUAAABIiYnJjQ3NzY2MzIWFxYUBwcGIicmNDc3NjQnJiYjIgYHBwYUFxYUBwYGIwciJicmNDc3NjIXFhQHBwYUFxYWMzI2Nzc2NCcmNDc2MhcWFAcHBgYjARQGDAUtLXoWOR8fORYtLTgKGwoKCjgaGg0gEhIgDXoaGgkJBQwHdR85Fi0tOAobCgoKOBoaDSASEiANehoaCQkKGwotLXoWOR8BMwUFLYEuehYXFxYugC44CQkKGwo4GkoaDQ0NDXoaShoKGwoFBe8XFi6ALjgJCQobCjgaShoNDQ0NehpKGgobCgoKLYEuehYXAAAADACWAAEAAAAAAAEACAAAAAEAAAAAAAIAAwAIAAEAAAAAAAMACAAAAAEAAAAAAAQACAAAAAEAAAAAAAUAAQALAAEAAAAAAAYACAAAAAMAAQQJAAEAEAAMAAMAAQQJAAIABgAcAAMAAQQJAAMAEAAMAAMAAQQJAAQAEAAMAAMAAQQJAAUAAgAiAAMAAQQJAAYAEAAMYW5jaG9yanM0MDBAAGEAbgBjAGgAbwByAGoAcwA0ADAAMABAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAH//wAP) format("truetype"); }',e.sheet.cssRules.length)}}this.options=A||{},this.elements=[],e(this.options),this.isTouchDevice=function(){return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)},this.add=function(A){var n,o,s,a,r,c,h,l,u,d,f,p=[];if(e(this.options),"touch"===(f=this.options.visible)&&(f=this.isTouchDevice()?"always":"hover"),A||(A="h2, h3, h4, h5, h6"),0===(n=t(A)).length)return this;for(i(),o=document.querySelectorAll("[id]"),s=[].map.call(o,function(A){return A.id}),r=0;r<n.length;r++)if(this.hasAnchorJSLink(n[r]))p.push(r);else{if(n[r].hasAttribute("id"))a=n[r].getAttribute("id");else if(n[r].hasAttribute("data-anchor-id"))a=n[r].getAttribute("data-anchor-id");else{u=l=this.urlify(n[r].textContent),h=0;do{void 0!==c&&(u=l+"-"+h),c=s.indexOf(u),h+=1}while(-1!==c);c=void 0,s.push(u),n[r].setAttribute("id",u),a=u}a.replace(/-/g," "),(d=document.createElement("a")).className="anchorjs-link "+this.options.class,d.href="#"+a,d.setAttribute("aria-label",this.options.ariaLabel),d.setAttribute("data-anchorjs-icon",this.options.icon),"always"===f&&(d.style.opacity="1"),""===this.options.icon&&(d.style.font="1em/1 anchorjs-icons","left"===this.options.placement&&(d.style.lineHeight="inherit")),"left"===this.options.placement?(d.style.position="absolute",d.style.marginLeft="-1em",d.style.paddingRight="0.5em",n[r].insertBefore(d,n[r].firstChild)):(d.style.paddingLeft="0.375em",n[r].appendChild(d))}for(r=0;r<p.length;r++)n.splice(p[r]-r,1);return this.elements=this.elements.concat(n),this},this.remove=function(A){for(var e,i,n=t(A),o=0;o<n.length;o++)(i=n[o].querySelector(".anchorjs-link"))&&(-1!==(e=this.elements.indexOf(n[o]))&&this.elements.splice(e,1),n[o].removeChild(i));return this},this.removeAll=function(){this.remove(this.elements)},this.urlify=function(A){var t=/[& +$,:;=?@"#{}|^~[`%!'<>\]\.\/\(\)\*\\]/g;return this.options.truncate||e(this.options),A.trim().replace(/\'/gi,"").replace(t,"-").replace(/-{2,}/g,"-").substring(0,this.options.truncate).replace(/^-+|-+$/gm,"").toLowerCase()},this.hasAnchorJSLink=function(A){var e=A.firstChild&&(" "+A.firstChild.className+" ").indexOf(" anchorjs-link ")>-1,t=A.lastChild&&(" "+A.lastChild.className+" ").indexOf(" anchorjs-link ")>-1;return e||t||!1}}});
@@ -0,0 +1,52 @@
1
+ window.gdocs = {
2
+
3
+ eventAdd: function(el, type, handler) {
4
+ if (el.attachEvent) el.attachEvent('on' + type, handler)
5
+ else el.addEventListener(type, handler)
6
+ },
7
+
8
+ eventRemove: function(el, type, handler) {
9
+ if (el.detachEvent) el.detachEvent('on' + type, handler)
10
+ else el.removeEventListener(type, handler)
11
+ },
12
+
13
+ init: function() {
14
+ gdocs.nav()
15
+ document.querySelector('.content').focus()
16
+ },
17
+
18
+ onReady: function() {
19
+ // in case the document is already rendered
20
+ if (document.readyState!='loading') {
21
+ gdocs.init()
22
+
23
+ // modern browsers
24
+ } else if (document.addEventListener) {
25
+ document.addEventListener('DOMContentLoaded', gdocs.init)
26
+ }
27
+ },
28
+
29
+ nav: function() {
30
+ // Show/hide mobile menu
31
+ var body = document.querySelector('body')
32
+ var navElems = document.getElementsByClassName('toggle-nav')
33
+
34
+ for (var i=navElems.length; i--;) {
35
+ gdocs.eventAdd(navElems[i], 'click', function(e) {
36
+ e.preventDefault()
37
+ var text = this.innerText
38
+ var textToggle = this.getAttribute('data-text-toggle')
39
+
40
+ body.classList.toggle('nav-open')
41
+ this.classList.toggle('nav-open')
42
+ if (textToggle) {
43
+ this.innerText = textToggle
44
+ this.setAttribute('data-text-toggle', text)
45
+ textToggle = text
46
+ }
47
+ })
48
+ }
49
+ }
50
+ }
51
+
52
+ gdocs.onReady()
data/readme.md ADDED
@@ -0,0 +1,34 @@
1
+ # Github docs
2
+
3
+ A Jekyll theme for Github styled documentation
4
+
5
+ ### Github pages usage
6
+
7
+ Just add this line to your _config.yml file:
8
+ ```yaml
9
+ theme: jekyll-theme-primer
10
+ ```
11
+
12
+ ### Preview jekyll theme locally
13
+
14
+ Add the following to your site's Gemfile:
15
+ ```ruby
16
+ gem "github-docs"
17
+ ```
18
+
19
+ And then execute:
20
+ ```
21
+ $ bundle
22
+ ```
23
+
24
+ Or install it yourself as:
25
+ ```
26
+ $ gem install github-docs
27
+ ```
28
+
29
+ ### Development
30
+
31
+ 1. `$ gem install bundler`
32
+ 2. `$ bundle install` (install theme deps)
33
+ 3. `$ bundle exec` (build files)
34
+ 3. `$ jekyll serve`