github-docs 0.0.3 → 0.0.7

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 (65) hide show
  1. checksums.yaml +4 -4
  2. data/_layouts/default.html +17 -3
  3. data/assets/css/cherry/_base-normalize.scss +274 -0
  4. data/assets/css/cherry/_buttons.scss +305 -0
  5. data/assets/css/cherry/_columns.scss +220 -0
  6. data/assets/css/cherry/_elements.scss +339 -0
  7. data/assets/css/cherry/_forms-vue-select.scss +250 -0
  8. data/assets/css/cherry/_forms.scss +567 -0
  9. data/assets/css/cherry/_functions.scss +201 -0
  10. data/assets/css/cherry/_index.scss +14 -0
  11. data/assets/css/cherry/_layout.scss +207 -0
  12. data/assets/css/cherry/_modal.scss +82 -0
  13. data/assets/css/cherry/_spacing.scss +56 -0
  14. data/assets/css/cherry/_tooltips.scss +113 -0
  15. data/assets/css/cherry/_typography.scss +90 -0
  16. data/assets/css/cherry/_utilities.scss +552 -0
  17. data/assets/css/cherry/_variables-computed.scss +79 -0
  18. data/assets/css/cherry/_variables.scss +48 -0
  19. data/assets/css/index.scss +9 -7
  20. data/{_sass/github-docs.scss → assets/css/main.scss} +41 -12
  21. data/assets/css/primer-markdown/blob-csv.scss +25 -0
  22. data/assets/css/primer-markdown/code.scss +49 -0
  23. data/{_sass → assets/css}/primer-markdown/headings.scss +5 -19
  24. data/{_sass → assets/css}/primer-markdown/images.scss +1 -19
  25. data/{_sass/primer-markdown/markdown-body.scss → assets/css/primer-markdown/index.scss} +66 -55
  26. data/assets/css/primer-markdown/lists.scss +42 -0
  27. data/{_sass → assets/css}/primer-markdown/tables.scss +4 -9
  28. data/{_sass → assets/css}/rouge.scss +16 -8
  29. data/readme.md +24 -25
  30. metadata +43 -65
  31. data/_sass/primer-base/base.scss +0 -84
  32. data/_sass/primer-base/index.scss +0 -3
  33. data/_sass/primer-base/normalize.scss +0 -421
  34. data/_sass/primer-base/typography-base.scss +0 -86
  35. data/_sass/primer-layout/columns.scss +0 -54
  36. data/_sass/primer-layout/container.scss +0 -30
  37. data/_sass/primer-layout/grid-offset.scss +0 -19
  38. data/_sass/primer-layout/grid.scss +0 -64
  39. data/_sass/primer-layout/index.scss +0 -4
  40. data/_sass/primer-markdown/blob-csv.scss +0 -27
  41. data/_sass/primer-markdown/code.scss +0 -63
  42. data/_sass/primer-markdown/index.scss +0 -7
  43. data/_sass/primer-markdown/lists.scss +0 -76
  44. data/_sass/primer-support/index.scss +0 -11
  45. data/_sass/primer-support/mixins/buttons.scss +0 -160
  46. data/_sass/primer-support/mixins/layout.scss +0 -58
  47. data/_sass/primer-support/mixins/misc.scss +0 -29
  48. data/_sass/primer-support/mixins/typography.scss +0 -84
  49. data/_sass/primer-support/variables/color-system.scss +0 -114
  50. data/_sass/primer-support/variables/colors.scss +0 -67
  51. data/_sass/primer-support/variables/layout.scss +0 -78
  52. data/_sass/primer-support/variables/misc.scss +0 -40
  53. data/_sass/primer-support/variables/typography.scss +0 -43
  54. data/_sass/primer-utilities/animations.scss +0 -184
  55. data/_sass/primer-utilities/borders.scss +0 -100
  56. data/_sass/primer-utilities/box-shadow.scss +0 -26
  57. data/_sass/primer-utilities/colors.scss +0 -106
  58. data/_sass/primer-utilities/details.scss +0 -18
  59. data/_sass/primer-utilities/flexbox.scss +0 -52
  60. data/_sass/primer-utilities/index.scss +0 -13
  61. data/_sass/primer-utilities/layout.scss +0 -85
  62. data/_sass/primer-utilities/margin.scss +0 -53
  63. data/_sass/primer-utilities/padding.scss +0 -54
  64. data/_sass/primer-utilities/typography.scss +0 -215
  65. data/_sass/primer-utilities/visibility-display.scss +0 -87
@@ -1,95 +1,67 @@
1
- // All of our block level items should have the same margin
2
- // stylelint-disable selector-max-type
1
+ $markdown-line-height: 1.5em;
2
+ $markdown-spacer-1: 4px;
3
+ $markdown-spacer-2: 8px;
4
+ $markdown-spacer-3: 16px;
5
+ $markdown-spacer-4: 24px;
6
+ $markdown-font-size-small: 12px;
7
+ $markdown-font-weight-bold: 600;
8
+
9
+ $gray-000: #fafbfc;
10
+ $gray-100: #f6f8fa;
11
+ $gray-200: #e1e4e8;
12
+ $gray-300: #d1d5da;
13
+ $gray-400: #959da5;
14
+ $gray-500: #6a737d;
15
+ $gray-700: #444d56;
3
16
 
4
- // This is styling for generic markdownized text. Anything you put in a
5
- // container with .markdown-body on it should render generally well. It also
6
- // includes some GitHub Flavored Markdown specific styling (like @mentions)
7
17
  .markdown-body {
8
- font-family: $body-font;
9
- font-size: $h4-size;
10
- line-height: $body-line-height;
18
+ font-size: 16px;
19
+ line-height: $markdown-line-height;
11
20
  word-wrap: break-word;
12
-
13
- // Clearfix on the markdown body
14
- &::before {
15
- display: table;
16
- content: "";
17
- }
18
-
21
+ color: #24292e;
19
22
  &::after {
20
- display: table;
23
+ display: block;
21
24
  clear: both;
22
25
  content: "";
23
26
  }
24
-
25
27
  > *:first-child {
26
28
  margin-top: 0 !important;
27
29
  }
28
-
29
30
  > *:last-child {
30
31
  margin-bottom: 0 !important;
31
32
  }
32
-
33
- // Anchors like <a name="examples">. These sometimes end up wrapped around
34
- // text when users mistakenly forget to close the tag or use self-closing tag
35
- // syntax. We don't want them to appear like links.
36
- // FIXME: a:not(:link):not(:visited) would be a little clearer here (and
37
- // possibly faster to match), but it breaks styling of <a href> elements due
38
- // to https://bugs.webkit.org/show_bug.cgi?id=142737.
39
- a:not([href]) {
40
- color: inherit;
41
- text-decoration: none;
42
- }
43
-
44
- // Link Colors
45
- .absent {
46
- color: $red-600;
47
- }
48
-
49
- .anchor {
50
- float: left;
51
- padding-right: $spacer-1;
52
- margin-left: -20px;
53
- line-height: $lh-condensed-ultra;
54
-
55
- &:focus {
56
- outline: none;
57
- }
58
- }
59
-
33
+ // Blocks
60
34
  p,
61
35
  blockquote,
62
36
  ul,
63
37
  ol,
64
38
  dl,
65
39
  table,
66
- pre {
40
+ pre,
41
+ .highlight {
67
42
  margin-top: 0;
68
- margin-bottom: $spacer-3;
43
+ margin-bottom: $markdown-spacer-3;
69
44
  }
70
-
71
45
  hr {
72
- height: $em-spacer-3;
46
+ height: 0.25em;
73
47
  padding: 0;
74
- margin: $spacer-4 0;
48
+ margin: $markdown-spacer-4 0;
75
49
  background-color: $gray-200;
76
50
  border: 0;
77
51
  }
78
-
79
52
  blockquote {
53
+ margin-left: 0;
54
+ margin-right: 0;
80
55
  padding: 0 1em;
81
56
  color: $gray-500;
82
57
  border-left: 0.25em solid lighten($gray-300, 5%);
83
-
84
58
  > :first-child {
85
59
  margin-top: 0;
86
60
  }
87
-
88
61
  > :last-child {
89
62
  margin-bottom: 0;
90
63
  }
91
64
  }
92
-
93
65
  kbd {
94
66
  display: inline-block;
95
67
  padding: 3px 5px;
@@ -103,4 +75,43 @@
103
75
  border-radius: 3px;
104
76
  box-shadow: inset 0 -1px 0 $gray-400;
105
77
  }
78
+ // Anchors like <a name="examples">. These sometimes end up wrapped around
79
+ // text when users mistakenly forget to close the tag or use self-closing tag
80
+ // syntax. We don't want them to appear like links.
81
+ a {
82
+ color: #0366d6;
83
+ text-decoration: none;
84
+ &:hover,
85
+ &:focus {
86
+ text-decoration: underline;
87
+ }
88
+ }
89
+ a:not([href]) {
90
+ color: inherit;
91
+ text-decoration: none;
92
+ }
93
+ // Links
94
+ .absent {
95
+ color: #cb2431;
96
+ }
97
+ .anchor,
98
+ .anchorjs-link {
99
+ float: left;
100
+ line-height: 1em;
101
+ font-size: 1.1em !important;
102
+ padding-right: 10px !important;
103
+ //margin-left: calc(-1em - 10px) !important;
104
+ &:hover,
105
+ &:focus {
106
+ outline: none;
107
+ text-decoration: none;
108
+ }
109
+ }
106
110
  }
111
+
112
+ @import "./headings.scss";
113
+ @import "./lists.scss";
114
+ @import "./tables.scss";
115
+ @import "./images.scss";
116
+ @import "./code.scss";
117
+ @import "./blob-csv.scss";
@@ -0,0 +1,42 @@
1
+ .markdown-body {
2
+ ul,
3
+ ol {
4
+ padding-left: 2em;
5
+ &.no-list {
6
+ padding: 0;
7
+ list-style-type: none;
8
+ }
9
+ }
10
+ ul ul,
11
+ ul ol,
12
+ ol ol,
13
+ ol ul {
14
+ margin-top: 0;
15
+ margin-bottom: 0;
16
+ }
17
+ li {
18
+ word-wrap: break-all;
19
+ }
20
+ li > p {
21
+ margin-top: $markdown-spacer-3;
22
+ }
23
+ li + li {
24
+ margin-top: 0.25em;
25
+ }
26
+ dl {
27
+ padding: 0;
28
+ dt {
29
+ margin: 0;
30
+ padding: 0;
31
+ margin-top: $markdown-spacer-3;
32
+ font-size: 1em;
33
+ font-style: italic;
34
+ font-weight: $markdown-font-weight-bold;
35
+ }
36
+ dd {
37
+ margin: 0;
38
+ padding: 0 $markdown-spacer-3;
39
+ margin-bottom: $markdown-spacer-3;
40
+ }
41
+ }
42
+ }
@@ -6,26 +6,21 @@
6
6
  display: block;
7
7
  width: 100%;
8
8
  overflow: auto;
9
-
10
- th {
11
- font-weight: $font-weight-bold;
12
- }
13
-
14
9
  th,
15
10
  td {
16
11
  padding: 6px 13px;
17
12
  border: 1px solid lighten($gray-300, 5%);
18
13
  }
19
-
14
+ th {
15
+ font-weight: $markdown-font-weight-bold;
16
+ }
20
17
  tr {
21
- background-color: $bg-white;
18
+ background-color: #fff;
22
19
  border-top: 1px solid darken($gray-300, 4%);
23
-
24
20
  &:nth-child(2n) {
25
21
  background-color: $gray-100;
26
22
  }
27
23
  }
28
-
29
24
  img {
30
25
  background-color: transparent;
31
26
  }
@@ -1,5 +1,12 @@
1
- .highlight table td { padding: 5px; }
2
- .highlight table pre { margin: 0; }
1
+ .highlight {
2
+ background-color: #f8f8f8;
3
+ table td {
4
+ padding: 5px;
5
+ }
6
+ table pre {
7
+ margin: 0;
8
+ }
9
+ }
3
10
  .highlight .cm {
4
11
  color: #999988;
5
12
  font-style: italic;
@@ -17,7 +24,8 @@
17
24
  font-weight: bold;
18
25
  font-style: italic;
19
26
  }
20
- .highlight .c, .highlight .cd {
27
+ .highlight .c,
28
+ .highlight .cd {
21
29
  color: #999988;
22
30
  font-style: italic;
23
31
  }
@@ -82,7 +90,8 @@
82
90
  color: #445588;
83
91
  font-weight: bold;
84
92
  }
85
- .highlight .k, .highlight .kv {
93
+ .highlight .k,
94
+ .highlight .kv {
86
95
  color: #000000;
87
96
  font-weight: bold;
88
97
  }
@@ -101,7 +110,9 @@
101
110
  .highlight .mo {
102
111
  color: #009999;
103
112
  }
104
- .highlight .m, .highlight .mb, .highlight .mx {
113
+ .highlight .m,
114
+ .highlight .mb,
115
+ .highlight .mx {
105
116
  color: #009999;
106
117
  }
107
118
  .highlight .sb {
@@ -204,6 +215,3 @@
204
215
  .highlight .w {
205
216
  color: #bbbbbb;
206
217
  }
207
- .highlight {
208
- background-color: #f8f8f8;
209
- }
data/readme.md CHANGED
@@ -4,34 +4,33 @@ A Jekyll theme for Github styled documentation
4
4
 
5
5
  ### Theme usage
6
6
 
7
- Add a _config.yml file with this line:
8
- ```yaml
9
- theme: github-docs
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
- ```
7
+ 1. To use this theme in your project via `github-pages`, add a _config.yml file with this line
8
+ ```yaml
9
+ remote_theme: boycce/github-docs
10
+ ```
11
+
12
+ ### Theme preview
13
+
14
+ 1. To preview this theme in your project via `github-pages`, add a Gemfile in your root folder
15
+ ```ruby
16
+ source 'https://rubygems.org'
17
+ gem 'github-pages', group: :jekyll_plugins
18
+ ```
19
+ 2. Then update `github-pages` and the `theme`
20
+ ```
21
+ $ bundle update
22
+ ```
23
+ 3. And run
24
+ ```
25
+ $ bundle exec jekyll serve
26
+ ```
28
27
 
29
28
  ### Development
30
29
 
31
- 1. `$ gem install bundler`
32
- 2. `$ bundle install` (install theme deps)
33
- 3. `$ bundle exec` (build files)
34
- 3. `$ jekyll serve`
30
+ 1. Install rvm/ruby `^2.7.3` if not having done so already
31
+ 2.a. `$ gem install jekyll bundler jekyll-github-metadata jekyll-seo-tag ` (not sudo, or....)
32
+ 2.b. `$ bundle install` (install theme deps automatically)
33
+ 4. `$ jekyll serve`
35
34
 
36
35
  ### Publishing Gem
37
36
 
metadata CHANGED
@@ -1,91 +1,85 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-docs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricky Boyce
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-18 00:00:00.000000000 Z
11
+ date: 2021-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 2.1.4
19
+ version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 2.1.4
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: jekyll
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '3.5'
34
- - - "<"
31
+ - - "~>"
35
32
  - !ruby/object:Gem::Version
36
- version: '5.0'
33
+ version: 3.9.0
37
34
  type: :runtime
38
35
  prerelease: false
39
36
  version_requirements: !ruby/object:Gem::Requirement
40
37
  requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- version: '3.5'
44
- - - "<"
38
+ - - "~>"
45
39
  - !ruby/object:Gem::Version
46
- version: '5.0'
40
+ version: 3.9.0
47
41
  - !ruby/object:Gem::Dependency
48
42
  name: jekyll-github-metadata
49
43
  requirement: !ruby/object:Gem::Requirement
50
44
  requirements:
51
45
  - - "~>"
52
46
  - !ruby/object:Gem::Version
53
- version: '2.9'
47
+ version: 2.13.0
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
51
  requirements:
58
52
  - - "~>"
59
53
  - !ruby/object:Gem::Version
60
- version: '2.9'
54
+ version: 2.13.0
61
55
  - !ruby/object:Gem::Dependency
62
56
  name: jekyll-seo-tag
63
57
  requirement: !ruby/object:Gem::Requirement
64
58
  requirements:
65
59
  - - "~>"
66
60
  - !ruby/object:Gem::Version
67
- version: '2.0'
61
+ version: 2.7.1
68
62
  type: :runtime
69
63
  prerelease: false
70
64
  version_requirements: !ruby/object:Gem::Requirement
71
65
  requirements:
72
66
  - - "~>"
73
67
  - !ruby/object:Gem::Version
74
- version: '2.0'
68
+ version: 2.7.1
75
69
  - !ruby/object:Gem::Dependency
76
- name: jekyll-target-blank
70
+ name: kramdown-parser-gfm
77
71
  requirement: !ruby/object:Gem::Requirement
78
72
  requirements:
79
73
  - - "~>"
80
74
  - !ruby/object:Gem::Version
81
- version: '2.0'
75
+ version: 1.1.0
82
76
  type: :runtime
83
77
  prerelease: false
84
78
  version_requirements: !ruby/object:Gem::Requirement
85
79
  requirements:
86
80
  - - "~>"
87
81
  - !ruby/object:Gem::Version
88
- version: '2.0'
82
+ version: 1.1.0
89
83
  description:
90
84
  email:
91
85
  - example@email.com
@@ -98,48 +92,32 @@ files:
98
92
  - _layouts/home.html
99
93
  - _layouts/page.html
100
94
  - _layouts/post.html
101
- - _sass/github-docs.scss
102
- - _sass/primer-base/base.scss
103
- - _sass/primer-base/index.scss
104
- - _sass/primer-base/normalize.scss
105
- - _sass/primer-base/typography-base.scss
106
- - _sass/primer-layout/columns.scss
107
- - _sass/primer-layout/container.scss
108
- - _sass/primer-layout/grid-offset.scss
109
- - _sass/primer-layout/grid.scss
110
- - _sass/primer-layout/index.scss
111
- - _sass/primer-markdown/blob-csv.scss
112
- - _sass/primer-markdown/code.scss
113
- - _sass/primer-markdown/headings.scss
114
- - _sass/primer-markdown/images.scss
115
- - _sass/primer-markdown/index.scss
116
- - _sass/primer-markdown/lists.scss
117
- - _sass/primer-markdown/markdown-body.scss
118
- - _sass/primer-markdown/tables.scss
119
- - _sass/primer-support/index.scss
120
- - _sass/primer-support/mixins/buttons.scss
121
- - _sass/primer-support/mixins/layout.scss
122
- - _sass/primer-support/mixins/misc.scss
123
- - _sass/primer-support/mixins/typography.scss
124
- - _sass/primer-support/variables/color-system.scss
125
- - _sass/primer-support/variables/colors.scss
126
- - _sass/primer-support/variables/layout.scss
127
- - _sass/primer-support/variables/misc.scss
128
- - _sass/primer-support/variables/typography.scss
129
- - _sass/primer-utilities/animations.scss
130
- - _sass/primer-utilities/borders.scss
131
- - _sass/primer-utilities/box-shadow.scss
132
- - _sass/primer-utilities/colors.scss
133
- - _sass/primer-utilities/details.scss
134
- - _sass/primer-utilities/flexbox.scss
135
- - _sass/primer-utilities/index.scss
136
- - _sass/primer-utilities/layout.scss
137
- - _sass/primer-utilities/margin.scss
138
- - _sass/primer-utilities/padding.scss
139
- - _sass/primer-utilities/typography.scss
140
- - _sass/primer-utilities/visibility-display.scss
141
- - _sass/rouge.scss
95
+ - assets/css/cherry/_base-normalize.scss
96
+ - assets/css/cherry/_buttons.scss
97
+ - assets/css/cherry/_columns.scss
98
+ - assets/css/cherry/_elements.scss
99
+ - assets/css/cherry/_forms-vue-select.scss
100
+ - assets/css/cherry/_forms.scss
101
+ - assets/css/cherry/_functions.scss
102
+ - assets/css/cherry/_index.scss
103
+ - assets/css/cherry/_layout.scss
104
+ - assets/css/cherry/_modal.scss
105
+ - assets/css/cherry/_spacing.scss
106
+ - assets/css/cherry/_tooltips.scss
107
+ - assets/css/cherry/_typography.scss
108
+ - assets/css/cherry/_utilities.scss
109
+ - assets/css/cherry/_variables-computed.scss
110
+ - assets/css/cherry/_variables.scss
142
111
  - assets/css/index.scss
112
+ - assets/css/main.scss
113
+ - assets/css/primer-markdown/blob-csv.scss
114
+ - assets/css/primer-markdown/code.scss
115
+ - assets/css/primer-markdown/headings.scss
116
+ - assets/css/primer-markdown/images.scss
117
+ - assets/css/primer-markdown/index.scss
118
+ - assets/css/primer-markdown/lists.scss
119
+ - assets/css/primer-markdown/tables.scss
120
+ - assets/css/rouge.scss
143
121
  - assets/imgs/back.svg
144
122
  - assets/js/anchor.min.js
145
123
  - assets/js/index.js
@@ -163,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
163
141
  - !ruby/object:Gem::Version
164
142
  version: '0'
165
143
  requirements: []
166
- rubygems_version: 3.0.6
144
+ rubygems_version: 3.1.6
167
145
  signing_key:
168
146
  specification_version: 4
169
147
  summary: A Jekyll theme for Github styled documentation