opendevsecops-jekyll 0.1.0

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 (90) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +1755 -0
  3. data/LICENSE.txt +21 -0
  4. data/README.md +110 -0
  5. data/Rakefile +1 -0
  6. data/_includes/components/aux_nav.html +15 -0
  7. data/_includes/components/breadcrumbs.html +144 -0
  8. data/_includes/components/children_nav.html +33 -0
  9. data/_includes/components/footer.html +34 -0
  10. data/_includes/components/header.html +11 -0
  11. data/_includes/components/mermaid.html +45 -0
  12. data/_includes/components/nav.html +75 -0
  13. data/_includes/components/search_footer.html +7 -0
  14. data/_includes/components/search_header.html +9 -0
  15. data/_includes/components/sidebar.html +32 -0
  16. data/_includes/components/site_nav.html +67 -0
  17. data/_includes/css/activation.scss.liquid +332 -0
  18. data/_includes/css/callouts.scss.liquid +93 -0
  19. data/_includes/css/custom.scss.liquid +1 -0
  20. data/_includes/css/just-the-docs.scss.liquid +12 -0
  21. data/_includes/favicon.html +23 -0
  22. data/_includes/fix_linenos.html +73 -0
  23. data/_includes/footer_custom.html +3 -0
  24. data/_includes/head.html +53 -0
  25. data/_includes/head_custom.html +0 -0
  26. data/_includes/header_custom.html +0 -0
  27. data/_includes/icons/code_copy.html +15 -0
  28. data/_includes/icons/document.html +6 -0
  29. data/_includes/icons/expand.html +6 -0
  30. data/_includes/icons/external_link.html +5 -0
  31. data/_includes/icons/icons.html +13 -0
  32. data/_includes/icons/link.html +6 -0
  33. data/_includes/icons/menu.html +6 -0
  34. data/_includes/icons/search.html +6 -0
  35. data/_includes/js/custom.js +0 -0
  36. data/_includes/lunr/custom-data.json +0 -0
  37. data/_includes/lunr/custom-index.js +0 -0
  38. data/_includes/mermaid_config.js +1 -0
  39. data/_includes/nav_footer_custom.html +0 -0
  40. data/_includes/search_placeholder_custom.html +1 -0
  41. data/_includes/sorted_pages.html +109 -0
  42. data/_includes/title.html +5 -0
  43. data/_includes/toc_heading_custom.html +1 -0
  44. data/_layouts/about.html +5 -0
  45. data/_layouts/default.html +41 -0
  46. data/_layouts/home.html +5 -0
  47. data/_layouts/minimal.html +34 -0
  48. data/_layouts/page.html +5 -0
  49. data/_layouts/post.html +5 -0
  50. data/_layouts/table_wrappers.html +7 -0
  51. data/_sass/base.scss +113 -0
  52. data/_sass/buttons.scss +127 -0
  53. data/_sass/code.scss +246 -0
  54. data/_sass/color_schemes/dark.scss +18 -0
  55. data/_sass/color_schemes/legacy_light.scss +208 -0
  56. data/_sass/color_schemes/light.scss +16 -0
  57. data/_sass/content.scss +239 -0
  58. data/_sass/custom/custom.scss +1 -0
  59. data/_sass/custom/setup.scss +1 -0
  60. data/_sass/labels.scss +37 -0
  61. data/_sass/layout.scss +209 -0
  62. data/_sass/modules.scss +17 -0
  63. data/_sass/navigation.scss +235 -0
  64. data/_sass/print.scss +40 -0
  65. data/_sass/search.scss +324 -0
  66. data/_sass/skiptomain.scss +30 -0
  67. data/_sass/support/_variables.scss +117 -0
  68. data/_sass/support/mixins/_buttons.scss +29 -0
  69. data/_sass/support/mixins/_layout.scss +33 -0
  70. data/_sass/support/mixins/_typography.scss +84 -0
  71. data/_sass/support/mixins/mixins.scss +3 -0
  72. data/_sass/support/support.scss +2 -0
  73. data/_sass/tables.scss +56 -0
  74. data/_sass/typography.scss +63 -0
  75. data/_sass/utilities/_colors.scss +237 -0
  76. data/_sass/utilities/_layout.scss +101 -0
  77. data/_sass/utilities/_lists.scss +15 -0
  78. data/_sass/utilities/_spacing.scss +162 -0
  79. data/_sass/utilities/_typography.scss +85 -0
  80. data/_sass/utilities/utilities.scss +5 -0
  81. data/assets/css/just-the-docs-dark.scss +3 -0
  82. data/assets/css/just-the-docs-default.scss +8 -0
  83. data/assets/css/just-the-docs-head-nav.css +24 -0
  84. data/assets/css/just-the-docs-light.scss +3 -0
  85. data/assets/js/just-the-docs.js +616 -0
  86. data/assets/js/zzzz-search-data.json +74 -0
  87. data/bin/just-the-docs +16 -0
  88. data/favicon.ico +0 -0
  89. data/lib/tasks/search.rake +88 -0
  90. metadata +201 -0
@@ -0,0 +1 @@
1
+ // custom SCSS (or CSS) goes here
@@ -0,0 +1 @@
1
+ // custom setup code goes here
data/_sass/labels.scss ADDED
@@ -0,0 +1,37 @@
1
+ // Labels (not the form kind)
2
+
3
+ // this :not() prevents a style clash with Mermaid.js's
4
+ // diagram labels, which also use .label
5
+ // for more, see https://github.com/just-the-docs/just-the-docs/issues/1272
6
+ // and the accompanying PR
7
+ .label:not(g),
8
+ .label-blue:not(g) {
9
+ display: inline-block;
10
+ padding: 0.16em 0.56em;
11
+ margin-right: $sp-2;
12
+ margin-left: $sp-2;
13
+ color: $white;
14
+ text-transform: uppercase;
15
+ vertical-align: middle;
16
+ background-color: $blue-100;
17
+ @include fs-2;
18
+
19
+ border-radius: 12px;
20
+ }
21
+
22
+ .label-green:not(g) {
23
+ background-color: $green-200;
24
+ }
25
+
26
+ .label-purple:not(g) {
27
+ background-color: $purple-100;
28
+ }
29
+
30
+ .label-red:not(g) {
31
+ background-color: $red-200;
32
+ }
33
+
34
+ .label-yellow:not(g) {
35
+ color: $grey-dk-200;
36
+ background-color: $yellow-200;
37
+ }
data/_sass/layout.scss ADDED
@@ -0,0 +1,209 @@
1
+ // The basic two column layout
2
+
3
+ .side-bar {
4
+ z-index: 0;
5
+ display: flex;
6
+ flex-wrap: wrap;
7
+ background-color: $sidebar-color;
8
+
9
+ @include mq(md) {
10
+ flex-flow: column nowrap;
11
+ position: fixed;
12
+ width: $nav-width-md;
13
+ height: 100%;
14
+ border-right: $border $border-color;
15
+ align-items: flex-end;
16
+ }
17
+
18
+ @include mq(lg) {
19
+ width: calc((100% - #{$nav-width + $content-width}) / 2 + #{$nav-width});
20
+ min-width: $nav-width;
21
+ }
22
+ }
23
+
24
+ .main {
25
+ @include mq(md) {
26
+ position: relative;
27
+ max-width: $content-width;
28
+ margin-left: $nav-width-md;
29
+ }
30
+
31
+ @include mq(lg) {
32
+ // stylelint-disable function-name-case
33
+ // disable for Max(), we want to use the CSS max() function
34
+ margin-left: Max(
35
+ #{$nav-width},
36
+ calc((100% - #{$nav-width + $content-width}) / 2 + #{$nav-width})
37
+ );
38
+ // stylelint-enable function-name-case
39
+ }
40
+ }
41
+
42
+ .main-content-wrap {
43
+ @include container;
44
+
45
+ padding-top: $gutter-spacing-sm;
46
+ padding-bottom: $gutter-spacing-sm;
47
+
48
+ @include mq(md) {
49
+ padding-top: $gutter-spacing;
50
+ padding-bottom: $gutter-spacing;
51
+ }
52
+ }
53
+
54
+ .main-header {
55
+ z-index: 0;
56
+ display: none;
57
+ background-color: $sidebar-color;
58
+
59
+ @include mq(md) {
60
+ display: flex;
61
+ justify-content: space-between;
62
+ height: $header-height;
63
+ background-color: $body-background-color;
64
+ border-bottom: $border $border-color;
65
+ }
66
+
67
+ &.nav-open {
68
+ display: block;
69
+
70
+ @include mq(md) {
71
+ display: flex;
72
+ }
73
+ }
74
+ }
75
+
76
+ .site-nav,
77
+ .site-header,
78
+ .site-footer {
79
+ width: 100%;
80
+
81
+ @include mq(lg) {
82
+ width: $nav-width;
83
+ }
84
+ }
85
+
86
+ .site-nav {
87
+ display: none;
88
+
89
+ &.nav-open {
90
+ display: block;
91
+ }
92
+
93
+ @include mq(md) {
94
+ display: block;
95
+ padding-top: $sp-8;
96
+ padding-bottom: $gutter-spacing-sm;
97
+ overflow-y: auto;
98
+ flex: 1 1 auto;
99
+ }
100
+ }
101
+
102
+ .site-header {
103
+ display: flex;
104
+ min-height: $header-height;
105
+ align-items: center;
106
+
107
+ @include mq(md) {
108
+ height: $header-height;
109
+ max-height: $header-height;
110
+ border-bottom: $border $border-color;
111
+ }
112
+ }
113
+
114
+ .site-title {
115
+ @include container;
116
+
117
+ flex-grow: 1;
118
+ display: flex;
119
+ height: 100%;
120
+ align-items: center;
121
+ padding-top: $sp-3;
122
+ padding-bottom: $sp-3;
123
+ color: $body-heading-color;
124
+ @include fs-6;
125
+
126
+ @include mq(md) {
127
+ padding-top: $sp-2;
128
+ padding-bottom: $sp-2;
129
+ }
130
+ }
131
+
132
+ @if variable-exists(logo) {
133
+ .site-logo {
134
+ width: 100%;
135
+ height: 100%;
136
+ background-image: url($logo);
137
+ background-repeat: no-repeat;
138
+ background-position: left center;
139
+ background-size: contain;
140
+ }
141
+ }
142
+
143
+ .site-button {
144
+ display: flex;
145
+ height: 100%;
146
+ padding: $gutter-spacing-sm;
147
+ align-items: center;
148
+ }
149
+
150
+ @include mq(md) {
151
+ .site-header .site-button {
152
+ display: none;
153
+ }
154
+ }
155
+
156
+ .site-title:hover {
157
+ background-image: linear-gradient(
158
+ -90deg,
159
+ rgba($feedback-color, 1) 0%,
160
+ rgba($feedback-color, 0.8) 80%,
161
+ rgba($feedback-color, 0) 100%
162
+ );
163
+ }
164
+
165
+ .site-button:hover {
166
+ background-image: linear-gradient(
167
+ -90deg,
168
+ rgba($feedback-color, 1) 0%,
169
+ rgba($feedback-color, 0.8) 100%
170
+ );
171
+ }
172
+
173
+ // stylelint-disable selector-max-type
174
+
175
+ body {
176
+ position: relative;
177
+ padding-bottom: $sp-10;
178
+ overflow-y: scroll;
179
+
180
+ @include mq(md) {
181
+ position: static;
182
+ padding-bottom: 0;
183
+ }
184
+ }
185
+
186
+ // stylelint-enable selector-max-type
187
+
188
+ .site-footer {
189
+ @include container;
190
+
191
+ position: absolute;
192
+ bottom: 0;
193
+ left: 0;
194
+ padding-top: $sp-4;
195
+ padding-bottom: $sp-4;
196
+ color: $grey-dk-000;
197
+ @include fs-2;
198
+
199
+ @include mq(md) {
200
+ position: static;
201
+ justify-self: end;
202
+ }
203
+ }
204
+
205
+ .icon {
206
+ width: $sp-5;
207
+ height: $sp-5;
208
+ color: $link-color;
209
+ }
@@ -0,0 +1,17 @@
1
+ // Import external dependencies
2
+ @import "./vendor/normalize.scss/normalize";
3
+
4
+ // Modules
5
+ @import "./base";
6
+ @import "./layout";
7
+ @import "./content";
8
+ @import "./navigation";
9
+ @import "./typography";
10
+ @import "./labels";
11
+ @import "./buttons";
12
+ @import "./search";
13
+ @import "./tables";
14
+ @import "./code";
15
+ @import "./utilities/utilities";
16
+ @import "./print";
17
+ @import "./skiptomain";
@@ -0,0 +1,235 @@
1
+ // Main nav, breadcrumb, etc...
2
+ // stylelint-disable selector-no-type, max-nesting-depth, selector-max-compound-selectors, selector-max-type, selector-max-specificity
3
+
4
+ .nav-list {
5
+ padding: 0;
6
+ margin-top: 0;
7
+ margin-bottom: 0;
8
+ list-style: none;
9
+
10
+ .nav-list-item {
11
+ @include fs-4;
12
+
13
+ position: relative;
14
+ margin: 0;
15
+
16
+ @include mq(md) {
17
+ @include fs-3;
18
+ }
19
+
20
+ .nav-list-link {
21
+ display: block;
22
+ min-height: $nav-list-item-height-sm;
23
+ padding-top: $sp-1;
24
+ padding-bottom: $sp-1;
25
+ line-height: #{$nav-list-item-height-sm - 2 * $sp-1};
26
+ @if $nav-list-expander-right {
27
+ padding-right: $nav-list-item-height-sm;
28
+ padding-left: $gutter-spacing-sm;
29
+ } @else {
30
+ padding-right: $gutter-spacing-sm;
31
+ padding-left: $nav-list-item-height-sm;
32
+ }
33
+
34
+ @include mq(md) {
35
+ min-height: $nav-list-item-height;
36
+ line-height: #{$nav-list-item-height - 2 * $sp-1};
37
+ @if $nav-list-expander-right {
38
+ padding-right: $nav-list-item-height;
39
+ padding-left: $gutter-spacing;
40
+ } @else {
41
+ padding-right: $gutter-spacing;
42
+ padding-left: $nav-list-item-height;
43
+ }
44
+ }
45
+
46
+ &.external > svg {
47
+ width: $sp-4;
48
+ height: $sp-4;
49
+ vertical-align: text-bottom;
50
+ }
51
+
52
+ &.active {
53
+ font-weight: 600;
54
+ text-decoration: none;
55
+ }
56
+
57
+ &:hover,
58
+ &.active {
59
+ background-image: linear-gradient(
60
+ -90deg,
61
+ rgba($feedback-color, 1) 0%,
62
+ rgba($feedback-color, 0.8) 80%,
63
+ rgba($feedback-color, 0) 100%
64
+ );
65
+ }
66
+ }
67
+
68
+ .nav-list-expander {
69
+ position: absolute;
70
+ @if $nav-list-expander-right {
71
+ right: 0;
72
+ }
73
+
74
+ width: $nav-list-item-height-sm;
75
+ height: $nav-list-item-height-sm;
76
+ padding: #{$nav-list-item-height-sm * 0.25};
77
+ color: $link-color;
78
+
79
+ @include mq(md) {
80
+ width: $nav-list-item-height;
81
+ height: $nav-list-item-height;
82
+ padding: #{$nav-list-item-height * 0.25};
83
+ }
84
+
85
+ &:hover {
86
+ background-image: linear-gradient(
87
+ -90deg,
88
+ rgba($feedback-color, 1) 0%,
89
+ rgba($feedback-color, 0.8) 100%
90
+ );
91
+ }
92
+
93
+ @if $nav-list-expander-right {
94
+ svg {
95
+ transform: rotate(90deg);
96
+ }
97
+ }
98
+ }
99
+
100
+ > .nav-list {
101
+ display: none;
102
+ padding-left: $sp-3;
103
+ list-style: none;
104
+
105
+ .nav-list-item {
106
+ position: relative;
107
+
108
+ .nav-list-link {
109
+ color: $nav-child-link-color;
110
+ }
111
+
112
+ .nav-list-expander {
113
+ color: $nav-child-link-color;
114
+ }
115
+ }
116
+ }
117
+
118
+ &.active {
119
+ > .nav-list-expander svg {
120
+ @if $nav-list-expander-right {
121
+ transform: rotate(-90deg);
122
+ } @else {
123
+ transform: rotate(90deg);
124
+ }
125
+ }
126
+
127
+ > .nav-list {
128
+ display: block;
129
+ }
130
+ }
131
+ }
132
+ }
133
+
134
+ .nav-category {
135
+ padding: $sp-2 $gutter-spacing-sm;
136
+ font-weight: 600;
137
+ text-align: start;
138
+ text-transform: uppercase;
139
+ border-bottom: $border $border-color;
140
+ @include fs-2;
141
+
142
+ @include mq(md) {
143
+ padding: $sp-2 $gutter-spacing;
144
+ margin-top: $gutter-spacing-sm;
145
+ text-align: start;
146
+
147
+ &:first-child {
148
+ margin-top: 0;
149
+ }
150
+ }
151
+ }
152
+
153
+ .nav-list.nav-category-list {
154
+ > .nav-list-item {
155
+ margin: 0;
156
+
157
+ > .nav-list {
158
+ padding: 0;
159
+
160
+ > .nav-list-item {
161
+ > .nav-list-link {
162
+ color: $link-color;
163
+ }
164
+
165
+ > .nav-list-expander {
166
+ color: $link-color;
167
+ }
168
+ }
169
+ }
170
+ }
171
+ }
172
+
173
+ // Aux nav
174
+
175
+ .aux-nav {
176
+ height: 100%;
177
+ overflow-x: auto;
178
+ @include fs-2;
179
+
180
+ .aux-nav-list {
181
+ display: flex;
182
+ height: 100%;
183
+ padding: 0;
184
+ margin: 0;
185
+ list-style: none;
186
+ }
187
+
188
+ .aux-nav-list-item {
189
+ display: inline-block;
190
+ height: 100%;
191
+ padding: 0;
192
+ margin: 0;
193
+ }
194
+
195
+ @include mq(md) {
196
+ padding-right: $gutter-spacing-sm;
197
+ }
198
+ }
199
+
200
+ // Breadcrumb nav
201
+
202
+ .breadcrumb-nav {
203
+ @include mq(md) {
204
+ margin-top: -$sp-4;
205
+ }
206
+ }
207
+
208
+ .breadcrumb-nav-list {
209
+ padding-left: 0;
210
+ margin-bottom: $sp-3;
211
+ list-style: none;
212
+ }
213
+
214
+ .breadcrumb-nav-list-item {
215
+ display: table-cell;
216
+ @include fs-2;
217
+
218
+ &::before {
219
+ display: none;
220
+ }
221
+
222
+ &::after {
223
+ display: inline-block;
224
+ margin-right: $sp-2;
225
+ margin-left: $sp-2;
226
+ color: $grey-dk-000;
227
+ content: "/";
228
+ }
229
+
230
+ &:last-child {
231
+ &::after {
232
+ content: "";
233
+ }
234
+ }
235
+ }
data/_sass/print.scss ADDED
@@ -0,0 +1,40 @@
1
+ // stylelint-disable selector-max-specificity, selector-max-id, selector-max-type, selector-no-qualifying-type
2
+
3
+ @media print {
4
+ .site-footer,
5
+ .site-button,
6
+ #edit-this-page,
7
+ #back-to-top,
8
+ .site-nav,
9
+ .main-header {
10
+ display: none !important;
11
+ }
12
+
13
+ .side-bar {
14
+ width: 100%;
15
+ height: auto;
16
+ border-right: 0 !important;
17
+ }
18
+
19
+ .site-header {
20
+ border-bottom: 1px solid $border-color;
21
+ }
22
+
23
+ .site-title {
24
+ font-size: 1rem !important;
25
+ font-weight: 700 !important;
26
+ }
27
+
28
+ .text-small {
29
+ font-size: 8pt !important;
30
+ }
31
+
32
+ pre.highlight {
33
+ border: 1px solid $border-color;
34
+ }
35
+
36
+ .main {
37
+ max-width: none;
38
+ margin-left: 0;
39
+ }
40
+ }