github-docs 0.0.5 → 0.0.18

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 (62) hide show
  1. checksums.yaml +4 -4
  2. data/_layouts/default.html +12 -4
  3. data/_sass/cherry/_base-normalize.scss +274 -0
  4. data/_sass/cherry/_buttons.scss +305 -0
  5. data/_sass/cherry/_columns.scss +220 -0
  6. data/_sass/cherry/_elements.scss +339 -0
  7. data/_sass/cherry/_forms-vue-select.scss +250 -0
  8. data/_sass/cherry/_forms.scss +567 -0
  9. data/_sass/cherry/_functions.scss +201 -0
  10. data/_sass/cherry/_index.scss +14 -0
  11. data/_sass/cherry/_layout.scss +207 -0
  12. data/_sass/cherry/_modal.scss +82 -0
  13. data/_sass/cherry/_spacing.scss +56 -0
  14. data/_sass/cherry/_tooltips.scss +113 -0
  15. data/_sass/cherry/_typography.scss +90 -0
  16. data/_sass/cherry/_utilities.scss +552 -0
  17. data/_sass/cherry/_variables-computed.scss +79 -0
  18. data/_sass/cherry/_variables.scss +48 -0
  19. data/_sass/{github-docs.scss → main.scss} +18 -15
  20. data/_sass/primer-markdown/blob-csv.scss +23 -25
  21. data/_sass/primer-markdown/code.scss +26 -40
  22. data/_sass/primer-markdown/headings.scss +5 -19
  23. data/_sass/primer-markdown/images.scss +1 -19
  24. data/_sass/primer-markdown/index.scss +112 -1
  25. data/_sass/primer-markdown/lists.scss +8 -42
  26. data/_sass/primer-markdown/tables.scss +4 -9
  27. data/_sass/rouge.scss +16 -8
  28. data/assets/css/index.scss +9 -7
  29. data/readme.md +13 -4
  30. metadata +19 -35
  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/markdown-body.scss +0 -106
  41. data/_sass/primer-support/index.scss +0 -11
  42. data/_sass/primer-support/mixins/buttons.scss +0 -160
  43. data/_sass/primer-support/mixins/layout.scss +0 -58
  44. data/_sass/primer-support/mixins/misc.scss +0 -29
  45. data/_sass/primer-support/mixins/typography.scss +0 -84
  46. data/_sass/primer-support/variables/color-system.scss +0 -114
  47. data/_sass/primer-support/variables/colors.scss +0 -67
  48. data/_sass/primer-support/variables/layout.scss +0 -78
  49. data/_sass/primer-support/variables/misc.scss +0 -40
  50. data/_sass/primer-support/variables/typography.scss +0 -43
  51. data/_sass/primer-utilities/animations.scss +0 -184
  52. data/_sass/primer-utilities/borders.scss +0 -100
  53. data/_sass/primer-utilities/box-shadow.scss +0 -26
  54. data/_sass/primer-utilities/colors.scss +0 -106
  55. data/_sass/primer-utilities/details.scss +0 -18
  56. data/_sass/primer-utilities/flexbox.scss +0 -52
  57. data/_sass/primer-utilities/index.scss +0 -13
  58. data/_sass/primer-utilities/layout.scss +0 -85
  59. data/_sass/primer-utilities/margin.scss +0 -53
  60. data/_sass/primer-utilities/padding.scss +0 -54
  61. data/_sass/primer-utilities/typography.scss +0 -215
  62. data/_sass/primer-utilities/visibility-display.scss +0 -87
@@ -1,4 +1,115 @@
1
- @import "./markdown-body.scss";
1
+
2
+ $markdown-line-height: 1.5em;
3
+ $markdown-spacer-1: 4px;
4
+ $markdown-spacer-2: 8px;
5
+ $markdown-spacer-3: 16px;
6
+ $markdown-spacer-4: 24px;
7
+ $markdown-font-size-small: 12px;
8
+ $markdown-font-weight-bold: 600;
9
+
10
+ $gray-000: #fafbfc;
11
+ $gray-100: #f6f8fa;
12
+ $gray-200: #e1e4e8;
13
+ $gray-300: #d1d5da;
14
+ $gray-400: #959da5;
15
+ $gray-500: #6a737d;
16
+ $gray-700: #444d56;
17
+
18
+ .markdown-body {
19
+ font-size: 16px;
20
+ line-height: $markdown-line-height;
21
+ word-wrap: break-word;
22
+ color: #24292e;
23
+ &::after {
24
+ display: block;
25
+ clear: both;
26
+ content: "";
27
+ }
28
+ > *:first-child {
29
+ margin-top: 0 !important;
30
+ }
31
+ > *:last-child {
32
+ margin-bottom: 0 !important;
33
+ }
34
+ // Blocks
35
+ p,
36
+ blockquote,
37
+ ul,
38
+ ol,
39
+ dl,
40
+ table,
41
+ pre,
42
+ .highlight {
43
+ margin-top: 0;
44
+ margin-bottom: $markdown-spacer-3;
45
+ }
46
+ hr {
47
+ height: 0.25em;
48
+ padding: 0;
49
+ margin: $markdown-spacer-4 0;
50
+ background-color: $gray-200;
51
+ border: 0;
52
+ }
53
+ blockquote {
54
+ margin-left: 0;
55
+ margin-right: 0;
56
+ padding: 0 1em;
57
+ color: $gray-500;
58
+ border-left: 0.25em solid lighten($gray-300, 5%);
59
+ > :first-child {
60
+ margin-top: 0;
61
+ }
62
+ > :last-child {
63
+ margin-bottom: 0;
64
+ }
65
+ }
66
+ kbd {
67
+ display: inline-block;
68
+ padding: 3px 5px;
69
+ font-size: 11px;
70
+ line-height: 10px;
71
+ color: $gray-700;
72
+ vertical-align: middle;
73
+ background-color: $gray-000;
74
+ border: solid 1px darken($gray-300, 4%);
75
+ border-bottom-color: $gray-400;
76
+ border-radius: 3px;
77
+ box-shadow: inset 0 -1px 0 $gray-400;
78
+ }
79
+ // Anchors like <a name="examples">. These sometimes end up wrapped around
80
+ // text when users mistakenly forget to close the tag or use self-closing tag
81
+ // syntax. We don't want them to appear like links.
82
+ a {
83
+ color: #0366d6;
84
+ text-decoration: none;
85
+ &:hover,
86
+ &:focus {
87
+ text-decoration: underline;
88
+ }
89
+ }
90
+ a:not([href]) {
91
+ color: inherit;
92
+ text-decoration: none;
93
+ }
94
+ // Links
95
+ .absent {
96
+ color: #cb2431;
97
+ }
98
+ .anchor,
99
+ .anchorjs-link {
100
+ float: left;
101
+ line-height: 1em;
102
+ font-size: 1.1em !important;
103
+ padding-right: 10px !important;
104
+ margin-left: calc(-1em - 10px) !important;
105
+ &:hover,
106
+ &:focus {
107
+ outline: none;
108
+ text-decoration: none;
109
+ }
110
+ }
111
+ }
112
+
2
113
  @import "./headings.scss";
3
114
  @import "./lists.scss";
4
115
  @import "./tables.scss";
@@ -1,42 +1,12 @@
1
- // Base styles
2
- // stylelint-disable selector-no-qualifying-type
3
- // stylelint-disable selector-max-type
4
1
  .markdown-body {
5
-
6
- // Lists, Blockquotes & Such
7
2
  ul,
8
3
  ol {
9
4
  padding-left: 2em;
10
-
11
5
  &.no-list {
12
6
  padding: 0;
13
7
  list-style-type: none;
14
8
  }
15
9
  }
16
-
17
- // Did someone complain about list spacing? Encourage them
18
- // to create the spacing with their markdown formatting.
19
- // List behavior should be controled by the markup, not the css.
20
- //
21
- // For lists with padding between items, use blank
22
- // lines between items. This will generate paragraphs with
23
- // padding to space things out.
24
- //
25
- // - item
26
- //
27
- // - item
28
- //
29
- // - item
30
- //
31
- // For list without padding, don't use blank lines.
32
- //
33
- // - item
34
- // - item
35
- // - item
36
- //
37
- // Modifying the css to emulate these behaviors merely brakes
38
- // one case in the process of solving another. Don't change
39
- // this unless it's really really a bug.
40
10
  ul ul,
41
11
  ul ol,
42
12
  ol ol,
@@ -44,33 +14,29 @@
44
14
  margin-top: 0;
45
15
  margin-bottom: 0;
46
16
  }
47
-
48
17
  li {
49
18
  word-wrap: break-all;
50
19
  }
51
-
52
20
  li > p {
53
- margin-top: $spacer-3;
21
+ margin-top: $markdown-spacer-3;
54
22
  }
55
-
56
23
  li + li {
57
- margin-top: $em-spacer-3;
24
+ margin-top: 0.25em;
58
25
  }
59
-
60
26
  dl {
61
27
  padding: 0;
62
-
63
28
  dt {
29
+ margin: 0;
64
30
  padding: 0;
65
- margin-top: $spacer-3;
31
+ margin-top: $markdown-spacer-3;
66
32
  font-size: 1em;
67
33
  font-style: italic;
68
- font-weight: $font-weight-bold;
34
+ font-weight: $markdown-font-weight-bold;
69
35
  }
70
-
71
36
  dd {
72
- padding: 0 $spacer-3;
73
- margin-bottom: $spacer-3;
37
+ margin: 0;
38
+ padding: 0 $markdown-spacer-3;
39
+ margin-bottom: $markdown-spacer-3;
74
40
  }
75
41
  }
76
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
  }
data/_sass/rouge.scss CHANGED
@@ -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
- }
@@ -2,15 +2,17 @@
2
2
  # this ensures Jekyll reads the file to be transformed into CSS later
3
3
  # only Main files contain this front matter, not partials.
4
4
  ---
5
+ @charset "utf-8";
5
6
 
6
7
  {% if site.logo %}
7
8
  $logo: "{{ site.logo | absolute_url }}";
8
9
  {% endif %}
9
10
 
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";
11
+ // Cherry variables
12
+ $body-font-size: 14px;
13
+ $body-line-height: 1.65em;
14
+ $family-primary: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,
15
+ "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
16
+
17
+ // Load modules
18
+ @import "primer-markdown", "cherry", "main", "rouge";
data/readme.md CHANGED
@@ -13,12 +13,21 @@ A Jekyll theme for Github styled documentation
13
13
 
14
14
  1. To preview this theme in your project via `github-pages`, add a Gemfile in your root folder
15
15
  ```ruby
16
+ # (old)
17
+ # source 'https://rubygems.org'
18
+ # gem 'github-pages', group: :jekyll_plugins
19
+
20
+ # Below pulls the latest remote_theme in development
21
+ # https://github.com/MichaelCurrin/jekyll-theme-quickstart/tree/gh-pages
16
22
  source 'https://rubygems.org'
17
- gem 'github-pages', group: :jekyll_plugins
23
+ gem "github-docs", git: "https://github.com/boycce/github-docs"
24
+ group :jekyll_plugins do
25
+ gem "jekyll-remote-theme", "~> 0.4.2"
26
+ end
18
27
  ```
19
28
  2. Then update `github-pages` and the `theme`
20
29
  ```
21
- $ bundle update
30
+ $ bundle install // or bundle update
22
31
  ```
23
32
  3. And run
24
33
  ```
@@ -28,8 +37,8 @@ A Jekyll theme for Github styled documentation
28
37
  ### Development
29
38
 
30
39
  1. Install rvm/ruby `^2.7.3` if not having done so already
31
- 2. `$ gem install jekyll bundler jekyll-github-metadata jekyll-seo-tag ` (not sudo, or....)
32
- 3. `$ bundle install` (install theme deps automatically)
40
+ 2. (a) `$ gem install jekyll bundler jekyll-github-metadata jekyll-seo-tag ` (not sudo, or....)
41
+ 3. (b) `$ bundle install` (install theme deps automatically)
33
42
  4. `$ jekyll serve`
34
43
 
35
44
  ### Publishing Gem
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-docs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricky Boyce
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-05 00:00:00.000000000 Z
11
+ date: 2021-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -92,46 +92,30 @@ files:
92
92
  - _layouts/home.html
93
93
  - _layouts/page.html
94
94
  - _layouts/post.html
95
- - _sass/github-docs.scss
96
- - _sass/primer-base/base.scss
97
- - _sass/primer-base/index.scss
98
- - _sass/primer-base/normalize.scss
99
- - _sass/primer-base/typography-base.scss
100
- - _sass/primer-layout/columns.scss
101
- - _sass/primer-layout/container.scss
102
- - _sass/primer-layout/grid-offset.scss
103
- - _sass/primer-layout/grid.scss
104
- - _sass/primer-layout/index.scss
95
+ - _sass/cherry/_base-normalize.scss
96
+ - _sass/cherry/_buttons.scss
97
+ - _sass/cherry/_columns.scss
98
+ - _sass/cherry/_elements.scss
99
+ - _sass/cherry/_forms-vue-select.scss
100
+ - _sass/cherry/_forms.scss
101
+ - _sass/cherry/_functions.scss
102
+ - _sass/cherry/_index.scss
103
+ - _sass/cherry/_layout.scss
104
+ - _sass/cherry/_modal.scss
105
+ - _sass/cherry/_spacing.scss
106
+ - _sass/cherry/_tooltips.scss
107
+ - _sass/cherry/_typography.scss
108
+ - _sass/cherry/_utilities.scss
109
+ - _sass/cherry/_variables-computed.scss
110
+ - _sass/cherry/_variables.scss
111
+ - _sass/main.scss
105
112
  - _sass/primer-markdown/blob-csv.scss
106
113
  - _sass/primer-markdown/code.scss
107
114
  - _sass/primer-markdown/headings.scss
108
115
  - _sass/primer-markdown/images.scss
109
116
  - _sass/primer-markdown/index.scss
110
117
  - _sass/primer-markdown/lists.scss
111
- - _sass/primer-markdown/markdown-body.scss
112
118
  - _sass/primer-markdown/tables.scss
113
- - _sass/primer-support/index.scss
114
- - _sass/primer-support/mixins/buttons.scss
115
- - _sass/primer-support/mixins/layout.scss
116
- - _sass/primer-support/mixins/misc.scss
117
- - _sass/primer-support/mixins/typography.scss
118
- - _sass/primer-support/variables/color-system.scss
119
- - _sass/primer-support/variables/colors.scss
120
- - _sass/primer-support/variables/layout.scss
121
- - _sass/primer-support/variables/misc.scss
122
- - _sass/primer-support/variables/typography.scss
123
- - _sass/primer-utilities/animations.scss
124
- - _sass/primer-utilities/borders.scss
125
- - _sass/primer-utilities/box-shadow.scss
126
- - _sass/primer-utilities/colors.scss
127
- - _sass/primer-utilities/details.scss
128
- - _sass/primer-utilities/flexbox.scss
129
- - _sass/primer-utilities/index.scss
130
- - _sass/primer-utilities/layout.scss
131
- - _sass/primer-utilities/margin.scss
132
- - _sass/primer-utilities/padding.scss
133
- - _sass/primer-utilities/typography.scss
134
- - _sass/primer-utilities/visibility-display.scss
135
119
  - _sass/rouge.scss
136
120
  - assets/css/index.scss
137
121
  - assets/imgs/back.svg
@@ -1,84 +0,0 @@
1
- // stylelint-disable selector-max-type
2
- * {
3
- box-sizing: border-box;
4
- }
5
-
6
- input,
7
- select,
8
- textarea,
9
- button {
10
- font-family: inherit;
11
- font-size: inherit;
12
- line-height: inherit;
13
- }
14
-
15
- body {
16
- font-family: $body-font;
17
- font-size: $body-font-size;
18
- line-height: $body-line-height;
19
- color: $text-gray-dark;
20
- background-color: $bg-white;
21
- }
22
-
23
- a {
24
- color: $text-blue;
25
- text-decoration: none;
26
-
27
- &:hover {
28
- text-decoration: underline;
29
- }
30
- }
31
-
32
- b,
33
- strong {
34
- font-weight: $font-weight-bold;
35
- }
36
-
37
- // Horizontal lines
38
- //
39
- // TODO-MDO: Remove `.rule` from everywhere and replace with `<hr>`s
40
- hr,
41
- .rule {
42
- height: 0;
43
- margin: 15px 0;
44
- overflow: hidden;
45
- background: transparent;
46
- border: 0;
47
- border-bottom: 1px solid lighten($gray-300, 5%);
48
- @include clearfix();
49
- }
50
-
51
- //
52
- // Remove most spacing between table cells.
53
- //
54
-
55
- table {
56
- border-spacing: 0;
57
- border-collapse: collapse;
58
- }
59
-
60
- td,
61
- th {
62
- padding: 0;
63
- }
64
-
65
- button {
66
- cursor: pointer;
67
- // Remove border radius added by Chroma macOS
68
- border-radius: 0;
69
- }
70
-
71
- // increase the selector specificity for [hidden]
72
- // so that it always overrides utility classes (.d-block, etc.)
73
- [hidden][hidden] {
74
- display: none !important;
75
- }
76
-
77
- details {
78
- summary { cursor: pointer; }
79
-
80
- &:not([open]) {
81
- // Set details content hidden by default for browsers that don't do this
82
- > *:not(summary) { display: none !important; }
83
- }
84
- }