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,6 @@
1
+ <symbol id="svg-search" viewBox="0 0 24 24">
2
+ <title>Search</title>
3
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-search">
4
+ <circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line>
5
+ </svg>
6
+ </symbol>
File without changes
File without changes
File without changes
@@ -0,0 +1 @@
1
+ {}
File without changes
@@ -0,0 +1 @@
1
+ Search {{site.title}}
@@ -0,0 +1,109 @@
1
+ {%- comment -%}
2
+ Include as: {%- include sorted_pages.html pages=array_of_pages -%}
3
+ Depends on: include.pages.
4
+ Assigns to: sorted_pages.
5
+ Overwrites:
6
+ nav_order_pages, title_order_pages, double_quote, empty_array,
7
+ nav_number_pages, nav_string_pages, nav_order_groups, group,
8
+ title_number_pages, title_string_pages, title_order_groups.
9
+ {%- endcomment -%}
10
+
11
+ {%- comment -%}
12
+ The `nav_order` values of pages affect the order in which they are shown in
13
+ the navigation panel and in the automatically generated tables of contents.
14
+ Sibling pages with the same `nav_order` value may be shown in any order.
15
+ Sibling pages with no `nav_order` value are shown after all pages that have
16
+ explicit `nav_order` values, ordered by their `title` values.
17
+
18
+ The `nav_order` and `title` values can be numbers or strings. To avoid build
19
+ failures, we sort numbers and strings separately. We sort numbers by their
20
+ values, and strings lexicographically. The case-sensitivity of string sorting
21
+ is determined by the configuration setting of `nav_sort`. Pages with no `title`
22
+ value are excluded from the navigation.
23
+
24
+ Note: Numbers used as `title` or `nav_order` values should not be in quotes,
25
+ unless you intend them to be lexicographically ordered. Numbers are written
26
+ without spaces or thousands-separators. Negative numbers are preceded by `-`.
27
+ Floats are written with the integral and fractional parts separated by `.`.
28
+ (Bounds on the magnitude and precision are presumably the same as in Liquid.)
29
+ {%- endcomment -%}
30
+
31
+ {%- assign nav_order_pages = include.pages
32
+ | where_exp: "item", "item.nav_order != nil" -%}
33
+ {%- assign title_order_pages = include.pages
34
+ | where_exp: "item", "item.nav_order == nil" -%}
35
+
36
+ {%- comment -%}
37
+ First, filter `nav_order_pages` and `title_order_pages` according to the type
38
+ of value to be used for sorting.
39
+
40
+ The first character of the result of filtering with `jsonify` is `"` only for
41
+ strings. Removing `"` from its `slice : 0` has size 0 for strings and 1 for
42
+ numbers, so grouping the pages gives at most two groups.
43
+ {%- endcomment -%}
44
+
45
+ {%- assign double_quote = '"' -%}
46
+ {%- assign empty_array = "" | split: "" -%}
47
+
48
+ {%- assign nav_string_pages = empty_array -%}
49
+ {%- assign nav_number_pages = empty_array -%}
50
+ {%- unless nav_order_pages == empty -%}
51
+ {%- assign nav_order_groups = nav_order_pages
52
+ | group_by_exp: "item",
53
+ "item.nav_order | jsonify | slice: 0 | remove: double_quote | size" -%}
54
+ {%- for group in nav_order_groups -%}
55
+ {%- if group.name == 0 -%}
56
+ {%- assign nav_string_pages = group.items -%}
57
+ {%- elsif group.name == 1 -%}
58
+ {%- assign nav_number_pages = group.items -%}
59
+ {%- endif -%}
60
+ {%- endfor -%}
61
+ {%- endunless -%}
62
+
63
+ {%- assign title_string_pages = empty_array -%}
64
+ {%- assign title_number_pages = empty_array -%}
65
+ {%- unless title_order_pages == empty -%}
66
+ {%- assign title_order_groups = title_order_pages
67
+ | group_by_exp: "item",
68
+ "item.title | jsonify | slice: 0 | remove: double_quote | size" -%}
69
+ {%- for group in title_order_groups -%}
70
+ {%- if group.name == 0 -%}
71
+ {%- assign title_string_pages = group.items -%}
72
+ {%- elsif group.name == 1 -%}
73
+ {%- assign title_number_pages = group.items -%}
74
+ {%- endif -%}
75
+ {%- endfor -%}
76
+ {%- endunless -%}
77
+
78
+ {%- comment -%}
79
+ Now sort each array of pages separately, then concatenate the sorted arrays.
80
+ {%- endcomment -%}
81
+
82
+ {%- unless nav_number_pages == empty -%}
83
+ {%- assign nav_number_pages = nav_number_pages | sort: "nav_order" -%}
84
+ {%- endunless -%}
85
+
86
+ {%- unless nav_string_pages == empty -%}
87
+ {%- if site.nav_sort == 'case_insensitive' -%}
88
+ {%- assign nav_string_pages = nav_string_pages | sort_natural: "nav_order" -%}
89
+ {%- else -%}
90
+ {%- assign nav_string_pages = nav_string_pages | sort: "nav_order" -%}
91
+ {%- endif -%}
92
+ {%- endunless -%}
93
+
94
+ {%- unless title_number_pages == empty -%}
95
+ {%- assign title_number_pages = title_number_pages | sort: "title" -%}
96
+ {%- endunless -%}
97
+
98
+ {%- unless title_string_pages == empty -%}
99
+ {%- if site.nav_sort == 'case_insensitive' -%}
100
+ {%- assign title_string_pages = title_string_pages | sort_natural: "title" -%}
101
+ {%- else -%}
102
+ {%- assign title_string_pages = title_string_pages | sort: "title" -%}
103
+ {%- endif -%}
104
+ {%- endunless -%}
105
+
106
+ {%- assign sorted_pages = nav_number_pages
107
+ | concat: nav_string_pages
108
+ | concat: title_number_pages
109
+ | concat: title_string_pages -%}
@@ -0,0 +1,5 @@
1
+ {% if site.logo %}
2
+ <div class="site-logo" role="img" aria-label="{{ site.title }}"></div>
3
+ {% else %}
4
+ {{ site.title }}
5
+ {% endif %}
@@ -0,0 +1 @@
1
+ <h2 class="text-delta">Table of contents</h2>
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {{ content }}
@@ -0,0 +1,41 @@
1
+ ---
2
+ layout: table_wrappers
3
+ ---
4
+
5
+ <!DOCTYPE html>
6
+
7
+ <html lang="{{ site.lang | default: 'en-US' }}">
8
+ {% include head.html %}
9
+ <body>
10
+ <a class="skip-to-main" href="#main-content">Skip to main content</a>
11
+ {% include icons/icons.html %}
12
+ {% include components/sidebar.html %}
13
+ <div class="main" id="top">
14
+ {% include components/header.html %}
15
+ <div class="main-content-wrap">
16
+ {% include components/breadcrumbs.html %}
17
+ <div id="main-content" class="main-content">
18
+ <main>
19
+ {% if site.heading_anchors != false %}
20
+ {% include vendor/anchor_headings.html html=content beforeHeading="true" anchorBody="<svg viewBox=\"0 0 16 16\" aria-hidden=\"true\"><use xlink:href=\"#svg-link\"></use></svg>" anchorClass="anchor-heading" anchorAttrs="aria-labelledby=\"%html_id%\"" %}
21
+ {% else %}
22
+ {{ content }}
23
+ {% endif %}
24
+
25
+ {% if page.has_children == true and page.has_toc != false %}
26
+ {% include components/children_nav.html %}
27
+ {% endif %}
28
+ </main>
29
+ {% include components/footer.html %}
30
+ </div>
31
+ </div>
32
+ {% if site.search_enabled != false %}
33
+ {% include components/search_footer.html %}
34
+ {% endif %}
35
+ </div>
36
+
37
+ {% if site.mermaid %}
38
+ {% include components/mermaid.html %}
39
+ {% endif %}
40
+ </body>
41
+ </html>
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {{ content }}
@@ -0,0 +1,34 @@
1
+ ---
2
+ layout: table_wrappers
3
+ ---
4
+
5
+ <!DOCTYPE html>
6
+
7
+ <html lang="{{ site.lang | default: 'en-US' }}">
8
+ {% include head.html %}
9
+ <body>
10
+ <a class="skip-to-main" href="#main-content">Skip to main content</a>
11
+ {% include icons/icons.html %}
12
+ <div class="main-content-wrap" id="top">
13
+ {% include components/breadcrumbs.html %}
14
+ <div id="main-content" class="main-content" role="main">
15
+ {% if site.heading_anchors != false %}
16
+ {% include vendor/anchor_headings.html html=content beforeHeading="true" anchorBody="<svg viewBox=\"0 0 16 16\" aria-hidden=\"true\"><use xlink:href=\"#svg-link\"></use></svg>" anchorClass="anchor-heading" anchorAttrs="aria-labelledby=\"%html_id%\"" %}
17
+ {% else %}
18
+ {{ content }}
19
+ {% endif %}
20
+
21
+ {% if page.has_children == true and page.has_toc != false %}
22
+ {% include components/children_nav.html %}
23
+ {% endif %}
24
+
25
+ {% include components/footer.html %}
26
+
27
+ </div>
28
+ </div>
29
+
30
+ {% if site.mermaid %}
31
+ {% include components/mermaid.html %}
32
+ {% endif %}
33
+ </body>
34
+ </html>
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {{ content }}
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {{ content }}
@@ -0,0 +1,7 @@
1
+ ---
2
+ layout: vendor/compress
3
+ ---
4
+
5
+ {% assign content_ = content | replace: '<table', '<div class="table-wrapper"><table' %}
6
+ {% assign content_ = content_ | replace: '</table>', '</table></div>' %}
7
+ {{ content_ }}
data/_sass/base.scss ADDED
@@ -0,0 +1,113 @@
1
+ // Base element style overrides
2
+ // stylelint-disable selector-no-type, selector-max-type, selector-max-specificity, selector-max-id
3
+
4
+ :root {
5
+ color-scheme: $color-scheme;
6
+ }
7
+
8
+ * {
9
+ box-sizing: border-box;
10
+ }
11
+
12
+ html {
13
+ @include fs-4;
14
+
15
+ scroll-behavior: smooth;
16
+ }
17
+
18
+ body {
19
+ font-family: $body-font-family;
20
+ font-size: inherit;
21
+ line-height: $body-line-height;
22
+ color: $body-text-color;
23
+ background-color: $body-background-color;
24
+ overflow-wrap: break-word;
25
+ }
26
+
27
+ ol,
28
+ ul,
29
+ dl,
30
+ pre,
31
+ address,
32
+ blockquote,
33
+ table,
34
+ div,
35
+ hr,
36
+ form,
37
+ fieldset,
38
+ noscript .table-wrapper {
39
+ margin-top: 0;
40
+ }
41
+
42
+ h1,
43
+ h2,
44
+ h3,
45
+ h4,
46
+ h5,
47
+ h6,
48
+ #toctitle {
49
+ margin-top: 0;
50
+ margin-bottom: 1em;
51
+ font-weight: 500;
52
+ line-height: $body-heading-line-height;
53
+ color: $body-heading-color;
54
+ }
55
+
56
+ p {
57
+ margin-top: 1em;
58
+ margin-bottom: 1em;
59
+ }
60
+
61
+ a {
62
+ color: $link-color;
63
+ text-decoration: none;
64
+ }
65
+
66
+ a:not([class]) {
67
+ text-decoration: underline;
68
+ text-decoration-color: $border-color;
69
+ text-underline-offset: 2px;
70
+
71
+ &:hover {
72
+ text-decoration-color: rgba($link-color, 0.45);
73
+ }
74
+ }
75
+
76
+ code {
77
+ font-family: $mono-font-family;
78
+ font-size: 0.75em;
79
+ line-height: $body-line-height;
80
+ }
81
+
82
+ figure,
83
+ pre {
84
+ margin: 0;
85
+ }
86
+
87
+ li {
88
+ margin: 0.25em 0;
89
+ }
90
+
91
+ img {
92
+ max-width: 100%;
93
+ height: auto;
94
+ }
95
+
96
+ hr {
97
+ height: 1px;
98
+ padding: 0;
99
+ margin: $sp-6 0;
100
+ background-color: $border-color;
101
+ border: 0;
102
+ }
103
+
104
+ // adds a GitHub-style sidebar to blockquotes
105
+ blockquote {
106
+ margin: 10px 0;
107
+
108
+ // resets user-agent stylesheets for blockquotes
109
+ margin-block-start: 0;
110
+ margin-inline-start: 0;
111
+ padding-left: 1rem;
112
+ border-left: 3px solid $border-color;
113
+ }
@@ -0,0 +1,127 @@
1
+ // Buttons and things that look like buttons
2
+ // stylelint-disable color-named
3
+
4
+ .btn {
5
+ display: inline-block;
6
+ box-sizing: border-box;
7
+ padding: 0.3em 1em;
8
+ margin: 0;
9
+ font-family: inherit;
10
+ font-size: inherit;
11
+ font-weight: 500;
12
+ line-height: 1.5;
13
+ color: $link-color;
14
+ text-decoration: none;
15
+ vertical-align: baseline;
16
+ cursor: pointer;
17
+ background-color: $base-button-color;
18
+ border-width: 0;
19
+ border-radius: $border-radius;
20
+ box-shadow:
21
+ 0 1px 2px rgba(0, 0, 0, 0.12),
22
+ 0 3px 10px rgba(0, 0, 0, 0.08);
23
+ appearance: none;
24
+
25
+ &:focus {
26
+ text-decoration: none;
27
+ outline: none;
28
+ box-shadow: 0 0 0 3px rgba(blue, 0.25);
29
+ }
30
+
31
+ &:focus:hover,
32
+ &.selected:focus {
33
+ box-shadow: 0 0 0 3px rgba(blue, 0.25);
34
+ }
35
+
36
+ &:hover,
37
+ &.zeroclipboard-is-hover {
38
+ color: darken($link-color, 2%);
39
+ }
40
+
41
+ &:hover,
42
+ &:active,
43
+ &.zeroclipboard-is-hover,
44
+ &.zeroclipboard-is-active {
45
+ text-decoration: none;
46
+ background-color: darken($base-button-color, 1%);
47
+ }
48
+
49
+ &:active,
50
+ &.selected,
51
+ &.zeroclipboard-is-active {
52
+ background-color: darken($base-button-color, 3%);
53
+ background-image: none;
54
+ box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
55
+ }
56
+
57
+ &.selected:hover {
58
+ background-color: darken(#dcdcdc, 5%);
59
+ }
60
+
61
+ &:disabled,
62
+ &.disabled {
63
+ &,
64
+ &:hover {
65
+ color: rgba(102, 102, 102, 0.5);
66
+ cursor: default;
67
+ background-color: rgba(229, 229, 229, 0.5);
68
+ background-image: none;
69
+ box-shadow: none;
70
+ }
71
+ }
72
+ }
73
+
74
+ .btn-outline {
75
+ color: $link-color;
76
+ background: transparent;
77
+ box-shadow: inset 0 0 0 2px $grey-lt-300;
78
+
79
+ &:hover,
80
+ &:active,
81
+ &.zeroclipboard-is-hover,
82
+ &.zeroclipboard-is-active {
83
+ color: darken($link-color, 4%);
84
+ text-decoration: none;
85
+ background-color: transparent;
86
+ box-shadow: inset 0 0 0 3px $grey-lt-300;
87
+ }
88
+
89
+ &:focus {
90
+ text-decoration: none;
91
+ outline: none;
92
+ box-shadow:
93
+ inset 0 0 0 2px $grey-dk-100,
94
+ 0 0 0 3px rgba(blue, 0.25);
95
+ }
96
+
97
+ &:focus:hover,
98
+ &.selected:focus {
99
+ box-shadow: inset 0 0 0 2px $grey-dk-100;
100
+ }
101
+ }
102
+
103
+ .btn-primary {
104
+ @include btn-color($white, $btn-primary-color);
105
+ }
106
+
107
+ .btn-purple {
108
+ @include btn-color($white, $purple-100);
109
+ }
110
+
111
+ .btn-blue {
112
+ @include btn-color($white, $blue-000);
113
+ }
114
+
115
+ .btn-green {
116
+ @include btn-color($white, $green-100);
117
+ }
118
+
119
+ .btn-reset {
120
+ background: none;
121
+ border: none;
122
+ margin: 0;
123
+ text-align: inherit;
124
+ font: inherit;
125
+ border-radius: 0;
126
+ appearance: none;
127
+ }