just-the-hm-docs 1.0.0.rc1
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.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +24 -0
- data/Rakefile +1 -0
- data/_includes/components/aux_nav.html +15 -0
- data/_includes/components/breadcrumbs.html +15 -0
- data/_includes/components/children_nav.html +9 -0
- data/_includes/components/footer.html +34 -0
- data/_includes/components/header.html +11 -0
- data/_includes/components/mermaid.html +5 -0
- data/_includes/components/search_footer.html +7 -0
- data/_includes/components/search_header.html +9 -0
- data/_includes/components/sidebar.html +69 -0
- data/_includes/css/callouts.scss.liquid +93 -0
- data/_includes/css/custom.scss.liquid +1 -0
- data/_includes/css/just-the-docs.scss.liquid +10 -0
- data/_includes/fix_linenos.html +65 -0
- data/_includes/footer_custom.html +3 -0
- data/_includes/head.html +46 -0
- data/_includes/head_custom.html +4 -0
- data/_includes/header_custom.html +0 -0
- data/_includes/icons/code_copy.html +15 -0
- data/_includes/icons/document.html +6 -0
- data/_includes/icons/expand.html +6 -0
- data/_includes/icons/external_link.html +5 -0
- data/_includes/icons/icons.html +13 -0
- data/_includes/icons/link.html +6 -0
- data/_includes/icons/menu.html +6 -0
- data/_includes/icons/search.html +6 -0
- data/_includes/js/custom.js +0 -0
- data/_includes/lunr/custom-data.json +0 -0
- data/_includes/lunr/custom-index.js +0 -0
- data/_includes/mermaid_config.js +1 -0
- data/_includes/nav.html +251 -0
- data/_includes/nav_footer_custom.html +0 -0
- data/_includes/search_placeholder_custom.html +1 -0
- data/_includes/title.html +5 -0
- data/_includes/toc_heading_custom.html +1 -0
- data/_includes/vendor/anchor_headings.html +172 -0
- data/_layouts/about.html +5 -0
- data/_layouts/default.html +41 -0
- data/_layouts/home.html +5 -0
- data/_layouts/minimal.html +60 -0
- data/_layouts/page.html +5 -0
- data/_layouts/post.html +5 -0
- data/_layouts/table_wrappers.html +7 -0
- data/_layouts/vendor/compress.html +10 -0
- data/_sass/base.scss +114 -0
- data/_sass/buttons.scss +113 -0
- data/_sass/code.scss +210 -0
- data/_sass/color_schemes/dark.scss +28 -0
- data/_sass/color_schemes/hm.scss +26 -0
- data/_sass/color_schemes/light.scss +208 -0
- data/_sass/content.scss +239 -0
- data/_sass/custom/custom.scss +30 -0
- data/_sass/custom/hm-branding.scss +259 -0
- data/_sass/custom/hm-code.scss +153 -0
- data/_sass/custom/hm-colors.scss +15 -0
- data/_sass/custom/hm-notes.scss +38 -0
- data/_sass/custom/setup.scss +160 -0
- data/_sass/labels.scss +33 -0
- data/_sass/layout.scss +206 -0
- data/_sass/modules.scss +17 -0
- data/_sass/navigation.scss +235 -0
- data/_sass/print.scss +40 -0
- data/_sass/search.scss +311 -0
- data/_sass/skiptomain.scss +30 -0
- data/_sass/support/_functions.scss +11 -0
- data/_sass/support/_variables.scss +129 -0
- data/_sass/support/mixins/_buttons.scss +27 -0
- data/_sass/support/mixins/_layout.scss +34 -0
- data/_sass/support/mixins/_typography.scss +84 -0
- data/_sass/support/mixins/mixins.scss +3 -0
- data/_sass/support/support.scss +3 -0
- data/_sass/tables.scss +54 -0
- data/_sass/typography.scss +63 -0
- data/_sass/utilities/_colors.scss +237 -0
- data/_sass/utilities/_layout.scss +101 -0
- data/_sass/utilities/_lists.scss +15 -0
- data/_sass/utilities/_spacing.scss +162 -0
- data/_sass/utilities/_typography.scss +85 -0
- data/_sass/utilities/utilities.scss +5 -0
- data/_sass/vendor/OneDarkJekyll/LICENSE +21 -0
- data/_sass/vendor/OneDarkJekyll/README.md +25 -0
- data/_sass/vendor/OneDarkJekyll/colors.less +30 -0
- data/_sass/vendor/OneDarkJekyll/syntax-firewatch-green.scss +200 -0
- data/_sass/vendor/OneDarkJekyll/syntax-firewatch.scss +200 -0
- data/_sass/vendor/OneDarkJekyll/syntax-one-dark-vivid.scss +200 -0
- data/_sass/vendor/OneDarkJekyll/syntax-one-dark.scss +200 -0
- data/_sass/vendor/OneDarkJekyll/syntax-variables.less +56 -0
- data/_sass/vendor/OneDarkJekyll/syntax.less +93 -0
- data/_sass/vendor/normalize.scss/README.md +7 -0
- data/_sass/vendor/normalize.scss/normalize.scss +351 -0
- data/assets/css/just-the-docs-dark.scss +3 -0
- data/assets/css/just-the-docs-default.scss +8 -0
- data/assets/css/just-the-docs-light.scss +3 -0
- data/assets/favicon/android-chrome-192x192.png +0 -0
- data/assets/favicon/android-chrome-512x512.png +0 -0
- data/assets/favicon/apple-touch-icon.png +0 -0
- data/assets/favicon/favicon-16x16.png +0 -0
- data/assets/favicon/favicon-32x32.png +0 -0
- data/assets/favicon/favicon.ico +0 -0
- data/assets/favicon/site.webmanifest +1 -0
- data/assets/images/.gitkeep +0 -0
- data/assets/images/hm-logo.svg +1 -0
- data/assets/images/search.svg +1 -0
- data/assets/js/just-the-docs.js +528 -0
- data/assets/js/vendor/lunr.min.js +61 -0
- data/assets/js/zzzz-search-data.json +74 -0
- data/bin/just-the-hm-docs +16 -0
- data/changelog.md +17 -0
- data/favicon.ico +0 -0
- data/lib/tasks/search.rake +88 -0
- metadata +217 -0
data/_sass/base.scss
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
// Base element style overrides
|
|
2
|
+
// stylelint-disable selector-no-type, selector-max-type, selector-max-specificity, selector-max-id
|
|
3
|
+
|
|
4
|
+
* {
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
::selection {
|
|
9
|
+
color: $white;
|
|
10
|
+
background: $link-color;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
html {
|
|
14
|
+
@include fs-4;
|
|
15
|
+
|
|
16
|
+
scroll-behavior: smooth;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
body {
|
|
20
|
+
font-family: $body-font-family;
|
|
21
|
+
font-size: inherit;
|
|
22
|
+
line-height: $body-line-height;
|
|
23
|
+
color: $body-text-color;
|
|
24
|
+
background-color: $body-background-color;
|
|
25
|
+
overflow-wrap: break-word;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
ol,
|
|
29
|
+
ul,
|
|
30
|
+
dl,
|
|
31
|
+
pre,
|
|
32
|
+
address,
|
|
33
|
+
blockquote,
|
|
34
|
+
table,
|
|
35
|
+
div,
|
|
36
|
+
hr,
|
|
37
|
+
form,
|
|
38
|
+
fieldset,
|
|
39
|
+
noscript .table-wrapper {
|
|
40
|
+
margin-top: 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
h1,
|
|
44
|
+
h2,
|
|
45
|
+
h3,
|
|
46
|
+
h4,
|
|
47
|
+
h5,
|
|
48
|
+
h6,
|
|
49
|
+
#toctitle {
|
|
50
|
+
margin-top: 0;
|
|
51
|
+
margin-bottom: 1em;
|
|
52
|
+
font-weight: 500;
|
|
53
|
+
line-height: $body-heading-line-height;
|
|
54
|
+
color: $body-heading-color;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
p {
|
|
58
|
+
margin-top: 1em;
|
|
59
|
+
margin-bottom: 1em;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
a {
|
|
63
|
+
color: $link-color;
|
|
64
|
+
text-decoration: none;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
a:not([class]) {
|
|
68
|
+
text-decoration: underline;
|
|
69
|
+
text-decoration-color: $border-color;
|
|
70
|
+
text-underline-offset: 2px;
|
|
71
|
+
|
|
72
|
+
&:hover {
|
|
73
|
+
text-decoration-color: rgba($link-color, 0.45);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
code {
|
|
78
|
+
font-family: $mono-font-family;
|
|
79
|
+
font-size: 0.75em;
|
|
80
|
+
line-height: $body-line-height;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
figure,
|
|
84
|
+
pre {
|
|
85
|
+
margin: 0;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
li {
|
|
89
|
+
margin: 0.25em 0;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
img {
|
|
93
|
+
max-width: 100%;
|
|
94
|
+
height: auto;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
hr {
|
|
98
|
+
height: 1px;
|
|
99
|
+
padding: 0;
|
|
100
|
+
margin: $sp-6 0;
|
|
101
|
+
background-color: $border-color;
|
|
102
|
+
border: 0;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// adds a GitHub-style sidebar to blockquotes
|
|
106
|
+
blockquote {
|
|
107
|
+
margin: 10px 0;
|
|
108
|
+
|
|
109
|
+
// resets user-agent stylesheets for blockquotes
|
|
110
|
+
margin-block-start: 0;
|
|
111
|
+
margin-inline-start: 0;
|
|
112
|
+
padding-left: 15px;
|
|
113
|
+
border-left: 3px solid $border-color;
|
|
114
|
+
}
|
data/_sass/buttons.scss
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
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: 0 1px 2px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
|
|
21
|
+
appearance: none;
|
|
22
|
+
|
|
23
|
+
&:focus {
|
|
24
|
+
text-decoration: none;
|
|
25
|
+
outline: none;
|
|
26
|
+
box-shadow: 0 0 0 3px rgba(blue, 0.25);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&:focus:hover,
|
|
30
|
+
&.selected:focus {
|
|
31
|
+
box-shadow: 0 0 0 3px rgba(blue, 0.25);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:hover,
|
|
35
|
+
&.zeroclipboard-is-hover {
|
|
36
|
+
color: darken($link-color, 2%);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&:hover,
|
|
40
|
+
&:active,
|
|
41
|
+
&.zeroclipboard-is-hover,
|
|
42
|
+
&.zeroclipboard-is-active {
|
|
43
|
+
text-decoration: none;
|
|
44
|
+
background-color: darken($base-button-color, 1%);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&:active,
|
|
48
|
+
&.selected,
|
|
49
|
+
&.zeroclipboard-is-active {
|
|
50
|
+
background-color: darken($base-button-color, 3%);
|
|
51
|
+
background-image: none;
|
|
52
|
+
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&.selected:hover {
|
|
56
|
+
background-color: darken(#dcdcdc, 5%);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&:disabled,
|
|
60
|
+
&.disabled {
|
|
61
|
+
&,
|
|
62
|
+
&:hover {
|
|
63
|
+
color: rgba(102, 102, 102, 0.5);
|
|
64
|
+
cursor: default;
|
|
65
|
+
background-color: rgba(229, 229, 229, 0.5);
|
|
66
|
+
background-image: none;
|
|
67
|
+
box-shadow: none;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.btn-outline {
|
|
73
|
+
color: $link-color;
|
|
74
|
+
background: transparent;
|
|
75
|
+
box-shadow: inset 0 0 0 2px $grey-lt-300;
|
|
76
|
+
|
|
77
|
+
&:hover,
|
|
78
|
+
&:active,
|
|
79
|
+
&.zeroclipboard-is-hover,
|
|
80
|
+
&.zeroclipboard-is-active {
|
|
81
|
+
color: darken($link-color, 4%);
|
|
82
|
+
text-decoration: none;
|
|
83
|
+
background-color: transparent;
|
|
84
|
+
box-shadow: inset 0 0 0 3px $grey-lt-300;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&:focus {
|
|
88
|
+
text-decoration: none;
|
|
89
|
+
outline: none;
|
|
90
|
+
box-shadow: inset 0 0 0 2px $grey-dk-100, 0 0 0 3px rgba(blue, 0.25);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&:focus:hover,
|
|
94
|
+
&.selected:focus {
|
|
95
|
+
box-shadow: inset 0 0 0 2px $grey-dk-100;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.btn-primary {
|
|
100
|
+
@include btn-color($white, $btn-primary-color);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.btn-purple {
|
|
104
|
+
@include btn-color($white, $hm-purple-800);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.btn-blue {
|
|
108
|
+
@include btn-color($white, $hm-blue-600);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.btn-green {
|
|
112
|
+
@include btn-color($white, $hm-mint-900);
|
|
113
|
+
}
|
data/_sass/code.scss
ADDED
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
// Code and syntax highlighting
|
|
2
|
+
// stylelint-disable selector-no-qualifying-type, declaration-block-semicolon-newline-after,declaration-block-single-line-max-declarations, selector-no-type, selector-max-type, scss/comment-no-empty
|
|
3
|
+
|
|
4
|
+
// {% raw %}
|
|
5
|
+
|
|
6
|
+
// This instruction applies to all queues not within 'pre' or 'figure', avoiding 'code' generated by the highlight.
|
|
7
|
+
:not(pre, figure) {
|
|
8
|
+
& > code {
|
|
9
|
+
padding: 0.2em 0.15em;
|
|
10
|
+
font-weight: 400;
|
|
11
|
+
background-color: $code-background-color;
|
|
12
|
+
border: $border $border-color;
|
|
13
|
+
border-radius: $border-radius;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// Avoid appearance of dark border around visited code links in Safari
|
|
18
|
+
a:visited code {
|
|
19
|
+
border-color: $border-color;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// Content structure for highlighted code blocks using fences or Liquid
|
|
23
|
+
//
|
|
24
|
+
// ```[LANG]...```, no kramdown line_numbers:
|
|
25
|
+
// div.[language-LANG.]highlighter-rouge > div.highlight > pre.highlight > code
|
|
26
|
+
//
|
|
27
|
+
// ```[LANG]...```, kramdown line_numbers = true:
|
|
28
|
+
// div.[language-LANG.]highlighter-rouge > div.highlight > pre.highlight > code
|
|
29
|
+
// > div.table-wrapper > table.rouge-table > tbody > tr
|
|
30
|
+
// > td.rouge-gutter.gl > pre.lineno
|
|
31
|
+
// | td.rouge-code > pre
|
|
32
|
+
//
|
|
33
|
+
// {% highlight LANG %}...{% endhighlight %}:
|
|
34
|
+
// figure.highlight > pre > code.language-LANG
|
|
35
|
+
//
|
|
36
|
+
// {% highlight LANG linenos %}...{% endhighlight %}:
|
|
37
|
+
// figure.highlight > pre > code.language-LANG
|
|
38
|
+
// > div.table-wrapper > table.rouge-table > tbody > tr
|
|
39
|
+
// > td.gutter.gl > pre.lineno
|
|
40
|
+
// | td.code > pre
|
|
41
|
+
//
|
|
42
|
+
// ----...---- (AsciiDoc)
|
|
43
|
+
// div.listingblock > div.content > pre.rouge.highlight
|
|
44
|
+
//
|
|
45
|
+
// fix_linenos removes the outermost pre when it encloses table.rouge-table
|
|
46
|
+
//
|
|
47
|
+
// See docs/index-test.md for some tests.
|
|
48
|
+
//
|
|
49
|
+
// No kramdown line_numbers: fences and Liquid highlighting look the same.
|
|
50
|
+
// Kramdown line_numbers = true: fences have a wider gutter than with Liquid?
|
|
51
|
+
|
|
52
|
+
// ```[LANG]...```
|
|
53
|
+
|
|
54
|
+
// the code may appear with 3 different types:
|
|
55
|
+
// container \ case: default case, code with line number, code with html rendering
|
|
56
|
+
// top level: div.highlighter-rouge, figure.highlight, figure.highlight
|
|
57
|
+
// second level: div.highlight, div.table-wrapper, pre.highlight
|
|
58
|
+
// third level: pre.highlight, td.code, absent
|
|
59
|
+
// last level: code, pre, code (optionality)
|
|
60
|
+
// highlighter level: span, span, span
|
|
61
|
+
// the spacing are only in the second level for case 1, 3 and in the third level for case 2
|
|
62
|
+
|
|
63
|
+
// select top level container
|
|
64
|
+
div.highlighter-rouge,
|
|
65
|
+
div.listingblock > div.content,
|
|
66
|
+
figure.highlight {
|
|
67
|
+
margin-top: 0;
|
|
68
|
+
margin-bottom: $sp-3;
|
|
69
|
+
background-color: $code-background-color;
|
|
70
|
+
border-radius: $border-radius;
|
|
71
|
+
box-shadow: none;
|
|
72
|
+
-webkit-overflow-scrolling: touch;
|
|
73
|
+
position: relative;
|
|
74
|
+
padding: 0;
|
|
75
|
+
|
|
76
|
+
// copy button (or other button)
|
|
77
|
+
// the button appear only when there is a hover on the code or focus on button
|
|
78
|
+
> button {
|
|
79
|
+
width: $sp-3;
|
|
80
|
+
opacity: 0;
|
|
81
|
+
position: absolute;
|
|
82
|
+
top: 0;
|
|
83
|
+
right: 0;
|
|
84
|
+
border: $sp-3 solid $code-background-color;
|
|
85
|
+
background-color: $code-background-color;
|
|
86
|
+
color: $body-text-color;
|
|
87
|
+
box-sizing: content-box;
|
|
88
|
+
|
|
89
|
+
svg {
|
|
90
|
+
fill: $body-text-color;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&:active {
|
|
94
|
+
text-decoration: none;
|
|
95
|
+
outline: none;
|
|
96
|
+
opacity: 1;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&:focus {
|
|
100
|
+
opacity: 1;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// the button can be seen by doing a simple hover in the code, there is no need to go over the location of the button
|
|
105
|
+
&:hover {
|
|
106
|
+
> button {
|
|
107
|
+
cursor: copy;
|
|
108
|
+
opacity: 1;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// setting the spacing and scrollbar on the second level for the first case
|
|
114
|
+
// remove all space on the second and thirt level
|
|
115
|
+
div.highlighter-rouge,
|
|
116
|
+
div.listingblock {
|
|
117
|
+
div.highlight {
|
|
118
|
+
overflow-x: auto;
|
|
119
|
+
padding: $sp-3;
|
|
120
|
+
margin: 0;
|
|
121
|
+
border: 0;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
pre.highlight,
|
|
125
|
+
code {
|
|
126
|
+
padding: 0;
|
|
127
|
+
margin: 0;
|
|
128
|
+
border: 0;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
// {% highlight LANG %}...{% endhighlight %},
|
|
133
|
+
// {% highlight LANG linenos %}...{% endhighlight %}:
|
|
134
|
+
|
|
135
|
+
// setting the spacing and scrollbar on the second level for the thirt case
|
|
136
|
+
// the css rule are apply only to the last code enviroment
|
|
137
|
+
// setting the scroolbar
|
|
138
|
+
figure.highlight {
|
|
139
|
+
pre,
|
|
140
|
+
:not(pre) > code {
|
|
141
|
+
overflow-x: auto;
|
|
142
|
+
padding: $sp-3;
|
|
143
|
+
margin: 0;
|
|
144
|
+
border: 0;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
// ```[LANG]...```, kramdown line_numbers = true,
|
|
149
|
+
// {% highlight LANG linenos %}...{% endhighlight %}:
|
|
150
|
+
|
|
151
|
+
// setting the spacing and scrollbar on the thirt level for the second case
|
|
152
|
+
.highlight .table-wrapper {
|
|
153
|
+
padding: $sp-3 0;
|
|
154
|
+
margin: 0;
|
|
155
|
+
border: 0;
|
|
156
|
+
box-shadow: none;
|
|
157
|
+
|
|
158
|
+
td,
|
|
159
|
+
pre {
|
|
160
|
+
@include fs-2;
|
|
161
|
+
|
|
162
|
+
min-width: 0;
|
|
163
|
+
padding: 0;
|
|
164
|
+
background-color: $code-background-color;
|
|
165
|
+
border: 0;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
td.gl {
|
|
169
|
+
width: 1em;
|
|
170
|
+
padding-right: $sp-3;
|
|
171
|
+
padding-left: $sp-3;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
pre {
|
|
175
|
+
margin: 0;
|
|
176
|
+
line-height: 2;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// Code examples: html render of a code
|
|
181
|
+
.code-example,
|
|
182
|
+
.listingblock > .title {
|
|
183
|
+
padding: $sp-3;
|
|
184
|
+
margin-bottom: $sp-3;
|
|
185
|
+
overflow: auto;
|
|
186
|
+
border: 1px solid $border-color;
|
|
187
|
+
border-radius: $border-radius;
|
|
188
|
+
|
|
189
|
+
+ .highlighter-rouge,
|
|
190
|
+
+ .sectionbody .listingblock,
|
|
191
|
+
+ .content,
|
|
192
|
+
+ figure.highlight {
|
|
193
|
+
position: relative;
|
|
194
|
+
margin-top: -$sp-4;
|
|
195
|
+
border-right: 1px solid $border-color;
|
|
196
|
+
border-bottom: 1px solid $border-color;
|
|
197
|
+
border-left: 1px solid $border-color;
|
|
198
|
+
border-top-left-radius: 0;
|
|
199
|
+
border-top-right-radius: 0;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
// Mermaid diagram code blocks should be left unstyled.
|
|
204
|
+
code.language-mermaid {
|
|
205
|
+
padding: 0;
|
|
206
|
+
background-color: inherit;
|
|
207
|
+
border: 0;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
// {% endraw %}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
$body-background-color: $grey-dk-300;
|
|
2
|
+
$sidebar-color: $grey-dk-300;
|
|
3
|
+
$border-color: $grey-dk-200;
|
|
4
|
+
$body-text-color: $grey-lt-300;
|
|
5
|
+
$body-heading-color: $grey-lt-000;
|
|
6
|
+
$nav-child-link-color: $grey-dk-000;
|
|
7
|
+
$search-result-preview-color: $grey-dk-000;
|
|
8
|
+
$link-color: $blue-000;
|
|
9
|
+
$btn-primary-color: $blue-200;
|
|
10
|
+
$base-button-color: $grey-dk-250;
|
|
11
|
+
$search-background-color: $grey-dk-250;
|
|
12
|
+
$table-background-color: $grey-dk-250;
|
|
13
|
+
$feedback-color: darken($sidebar-color, 3%);
|
|
14
|
+
|
|
15
|
+
// The following highlight theme is more legible than that used for the light color scheme
|
|
16
|
+
|
|
17
|
+
// @import "./vendor/OneDarkJekyll/syntax-one-dark";
|
|
18
|
+
// $code-background-color: #282c34;
|
|
19
|
+
|
|
20
|
+
@import "./vendor/OneDarkJekyll/syntax-one-dark-vivid";
|
|
21
|
+
|
|
22
|
+
$code-background-color: #31343f;
|
|
23
|
+
|
|
24
|
+
// @import "./vendor/OneDarkJekyll/syntax-firewatch";
|
|
25
|
+
// $code-background-color: #282c34;
|
|
26
|
+
|
|
27
|
+
// @import "./vendor/OneDarkJekyll/syntax-firewatch-green";
|
|
28
|
+
// $code-background-color: #282c34;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// Override theme colors.
|
|
2
|
+
$base-button-color: $white;
|
|
3
|
+
$base-button-color-hover: $hm-navy-100;
|
|
4
|
+
$body-text-color: $hm-navy-1000;
|
|
5
|
+
$body-heading-color: $hm-navy-1000;
|
|
6
|
+
$border-color: $hm-navy-300;
|
|
7
|
+
$border-color-lt: $hm-navy-200;
|
|
8
|
+
$btn-primary-color: $hm-blue-600;
|
|
9
|
+
$btn-primary-color-hover: $hm-red-600;
|
|
10
|
+
$code-background-color: $hm-navy-100;
|
|
11
|
+
$code-block-background-color: $hm-navy-1000;
|
|
12
|
+
$code-block-color: $hm-navy-100;
|
|
13
|
+
$feedback-color: $hm-blue-100;
|
|
14
|
+
$link-color: $hm-blue-600;
|
|
15
|
+
$nav-child-link-color: $hm-navy-1000;
|
|
16
|
+
$search-result-preview-color: $hm-navy-1000;
|
|
17
|
+
$sidebar-color: $hm-navy-100;
|
|
18
|
+
|
|
19
|
+
// Override theme variables.
|
|
20
|
+
$border-radius: rem(6px);
|
|
21
|
+
$content-width: 915px;
|
|
22
|
+
$gutter-spacing: $sp-7;
|
|
23
|
+
$header-height: 70px;
|
|
24
|
+
$nav-list-item-height: $spacing-unit * 3.2;
|
|
25
|
+
$nav-list-item-height-sm: $spacing-unit * 3.2;
|
|
26
|
+
$nav-width: 276px;
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
// Moved from _sass/code.scss
|
|
2
|
+
|
|
3
|
+
.highlight .c {
|
|
4
|
+
color: #586e75;
|
|
5
|
+
} // comment //
|
|
6
|
+
.highlight .err {
|
|
7
|
+
color: #93a1a1;
|
|
8
|
+
} // error //
|
|
9
|
+
.highlight .g {
|
|
10
|
+
color: #93a1a1;
|
|
11
|
+
} // generic //
|
|
12
|
+
.highlight .k {
|
|
13
|
+
color: #859900;
|
|
14
|
+
} // keyword //
|
|
15
|
+
.highlight .l {
|
|
16
|
+
color: #93a1a1;
|
|
17
|
+
} // literal //
|
|
18
|
+
.highlight .n {
|
|
19
|
+
color: #93a1a1;
|
|
20
|
+
} // name //
|
|
21
|
+
.highlight .o {
|
|
22
|
+
color: #859900;
|
|
23
|
+
} // operator //
|
|
24
|
+
.highlight .x {
|
|
25
|
+
color: #cb4b16;
|
|
26
|
+
} // other //
|
|
27
|
+
.highlight .p {
|
|
28
|
+
color: #93a1a1;
|
|
29
|
+
} // punctuation //
|
|
30
|
+
.highlight .cm {
|
|
31
|
+
color: #586e75;
|
|
32
|
+
} // comment.multiline //
|
|
33
|
+
.highlight .cp {
|
|
34
|
+
color: #859900;
|
|
35
|
+
} // comment.preproc //
|
|
36
|
+
.highlight .c1 {
|
|
37
|
+
color: #586e75;
|
|
38
|
+
} // comment.single //
|
|
39
|
+
.highlight .cs {
|
|
40
|
+
color: #859900;
|
|
41
|
+
} // comment.special //
|
|
42
|
+
.highlight .gd {
|
|
43
|
+
color: #2aa198;
|
|
44
|
+
} // generic.deleted //
|
|
45
|
+
.highlight .ge {
|
|
46
|
+
font-style: italic;
|
|
47
|
+
color: #93a1a1;
|
|
48
|
+
} // generic.emph //
|
|
49
|
+
.highlight .gr {
|
|
50
|
+
color: #dc322f;
|
|
51
|
+
} // generic.error //
|
|
52
|
+
.highlight .gh {
|
|
53
|
+
color: #cb4b16;
|
|
54
|
+
} // generic.heading //
|
|
55
|
+
.highlight .gi {
|
|
56
|
+
color: #859900;
|
|
57
|
+
} // generic.inserted //
|
|
58
|
+
.highlight .go {
|
|
59
|
+
color: #93a1a1;
|
|
60
|
+
} // generic.output //
|
|
61
|
+
.highlight .gp {
|
|
62
|
+
color: #93a1a1;
|
|
63
|
+
} // generic.prompt //
|
|
64
|
+
.highlight .gs {
|
|
65
|
+
font-weight: bold;
|
|
66
|
+
color: #93a1a1;
|
|
67
|
+
} // generic.strong //
|
|
68
|
+
.highlight .gu {
|
|
69
|
+
color: #cb4b16;
|
|
70
|
+
} // generic.subheading //
|
|
71
|
+
.highlight .gt {
|
|
72
|
+
color: #93a1a1;
|
|
73
|
+
} // generic.traceback //
|
|
74
|
+
.highlight .kc {
|
|
75
|
+
color: #cb4b16;
|
|
76
|
+
} // keyword.constant //
|
|
77
|
+
.highlight .kd {
|
|
78
|
+
color: #268bd2;
|
|
79
|
+
} // keyword.declaration //
|
|
80
|
+
.highlight .kn {
|
|
81
|
+
color: #859900;
|
|
82
|
+
} // keyword.namespace //
|
|
83
|
+
.highlight .kp {
|
|
84
|
+
color: #859900;
|
|
85
|
+
} // keyword.pseudo //
|
|
86
|
+
.highlight .kr {
|
|
87
|
+
color: #268bd2;
|
|
88
|
+
} // keyword.reserved //
|
|
89
|
+
.highlight .kt {
|
|
90
|
+
color: #dc322f;
|
|
91
|
+
} // keyword.type //
|
|
92
|
+
.highlight .ld {
|
|
93
|
+
color: #93a1a1;
|
|
94
|
+
} // literal.date //
|
|
95
|
+
.highlight .m {
|
|
96
|
+
color: #2aa198;
|
|
97
|
+
} // literal.number //
|
|
98
|
+
.highlight .s {
|
|
99
|
+
color: #2aa198;
|
|
100
|
+
} // literal.string //
|
|
101
|
+
.highlight .na {
|
|
102
|
+
color: #555;
|
|
103
|
+
} // name.attribute //
|
|
104
|
+
.highlight .nb {
|
|
105
|
+
color: #b58900;
|
|
106
|
+
} // name.builtin //
|
|
107
|
+
.highlight .nc {
|
|
108
|
+
color: #268bd2;
|
|
109
|
+
} // name.class //
|
|
110
|
+
.highlight .no {
|
|
111
|
+
color: #cb4b16;
|
|
112
|
+
} // name.constant //
|
|
113
|
+
.highlight .nd {
|
|
114
|
+
color: #268bd2;
|
|
115
|
+
} // name.decorator //
|
|
116
|
+
.highlight .ni {
|
|
117
|
+
color: #cb4b16;
|
|
118
|
+
} // name.entity //
|
|
119
|
+
.highlight .ne {
|
|
120
|
+
color: #cb4b16;
|
|
121
|
+
} // name.exception //
|
|
122
|
+
.highlight .nf {
|
|
123
|
+
color: #268bd2;
|
|
124
|
+
} // name.function //
|
|
125
|
+
.highlight .nl {
|
|
126
|
+
color: #555;
|
|
127
|
+
} // name.label //
|
|
128
|
+
.highlight .nn {
|
|
129
|
+
color: #93a1a1;
|
|
130
|
+
} // name.namespace //
|
|
131
|
+
.highlight .nx {
|
|
132
|
+
color: #555;
|
|
133
|
+
} // name.other //
|
|
134
|
+
.highlight .py {
|
|
135
|
+
color: #93a1a1;
|
|
136
|
+
} // name.property //
|
|
137
|
+
.highlight .nt {
|
|
138
|
+
color: #268bd2;
|
|
139
|
+
} // name.tag //
|
|
140
|
+
.highlight .nv {
|
|
141
|
+
color: #268bd2;
|
|
142
|
+
} // name.variable //
|
|
143
|
+
.highlight .ow {
|
|
144
|
+
color: #859900;
|
|
145
|
+
} // operator.word //
|
|
146
|
+
.highlight .w {
|
|
147
|
+
color: #93a1a1;
|
|
148
|
+
} // text.whitespace //
|
|
149
|
+
.highlight .mf {
|
|
150
|
+
color: #2aa198;
|
|
151
|
+
} // literal.number.float //
|
|
152
|
+
.highlight .mh {
|
|
153
|
+
color: #2aa198;
|
|
154
|
+
} // literal.number.hex //
|
|
155
|
+
.highlight .mi {
|
|
156
|
+
color: #2aa198;
|
|
157
|
+
} // literal.number.integer //
|
|
158
|
+
.highlight .mo {
|
|
159
|
+
color: #2aa198;
|
|
160
|
+
} // literal.number.oct //
|
|
161
|
+
.highlight .sb {
|
|
162
|
+
color: #586e75;
|
|
163
|
+
} // literal.string.backtick //
|
|
164
|
+
.highlight .sc {
|
|
165
|
+
color: #2aa198;
|
|
166
|
+
} // literal.string.char //
|
|
167
|
+
.highlight .sd {
|
|
168
|
+
color: #93a1a1;
|
|
169
|
+
} // literal.string.doc //
|
|
170
|
+
.highlight .s2 {
|
|
171
|
+
color: #2aa198;
|
|
172
|
+
} // literal.string.double //
|
|
173
|
+
.highlight .se {
|
|
174
|
+
color: #cb4b16;
|
|
175
|
+
} // literal.string.escape //
|
|
176
|
+
.highlight .sh {
|
|
177
|
+
color: #93a1a1;
|
|
178
|
+
} // literal.string.heredoc //
|
|
179
|
+
.highlight .si {
|
|
180
|
+
color: #2aa198;
|
|
181
|
+
} // literal.string.interpol //
|
|
182
|
+
.highlight .sx {
|
|
183
|
+
color: #2aa198;
|
|
184
|
+
} // literal.string.other //
|
|
185
|
+
.highlight .sr {
|
|
186
|
+
color: #dc322f;
|
|
187
|
+
} // literal.string.regex //
|
|
188
|
+
.highlight .s1 {
|
|
189
|
+
color: #2aa198;
|
|
190
|
+
} // literal.string.single //
|
|
191
|
+
.highlight .ss {
|
|
192
|
+
color: #2aa198;
|
|
193
|
+
} // literal.string.symbol //
|
|
194
|
+
.highlight .bp {
|
|
195
|
+
color: #268bd2;
|
|
196
|
+
} // name.builtin.pseudo //
|
|
197
|
+
.highlight .vc {
|
|
198
|
+
color: #268bd2;
|
|
199
|
+
} // name.variable.class //
|
|
200
|
+
.highlight .vg {
|
|
201
|
+
color: #268bd2;
|
|
202
|
+
} // name.variable.global //
|
|
203
|
+
.highlight .vi {
|
|
204
|
+
color: #268bd2;
|
|
205
|
+
} // name.variable.instance //
|
|
206
|
+
.highlight .il {
|
|
207
|
+
color: #2aa198;
|
|
208
|
+
} // literal.number.integer.long //
|