@trimble-oss/modus-docs-hugo-theme 1.0.0-alpha10 → 1.0.0-alpha11
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.
- package/README.md +5 -1
- package/assets/css/_article.scss +11 -11
- package/assets/css/_autocomplete.scss +11 -11
- package/assets/css/_cards.scss +3 -3
- package/assets/css/_javascript-disabled.scss +3 -3
- package/assets/css/_list-js.scss +6 -6
- package/assets/css/_menu-right.scss +5 -5
- package/assets/css/_mobile.scss +2 -2
- package/assets/css/_navbar-search.scss +8 -8
- package/assets/css/_news.scss +1 -1
- package/assets/css/_onetrust-cookie-banner.scss +9 -9
- package/assets/css/_posts.scss +2 -2
- package/assets/css/_scroll-to-top-btn.scss +5 -5
- package/assets/css/_skippy.scss +1 -1
- package/assets/css/_tables.scss +5 -5
- package/assets/css/_theme-toggle.scss +3 -3
- package/assets/css/_was-this-page-helpful.scss +2 -2
- package/assets/js/was-this-page-helpful.js +10 -3
- package/layouts/_default/single.html +1 -1
- package/layouts/partials/header.html +2 -2
- package/layouts/partials/icons/modus-solid/thumbs-down.svg +3 -0
- package/layouts/partials/icons/modus-solid/thumbs-up.svg +3 -0
- package/layouts/partials/meta.html +9 -9
- package/layouts/partials/was-this-page-helpful.html +5 -3
- package/package.json +8 -7
package/README.md
CHANGED
@@ -1,8 +1,12 @@
|
|
1
1
|
# Modus Docs Hugo Theme (Experimental)
|
2
2
|
|
3
|
+
[](https://raw.githubusercontent.com/trimble-oss/modus-docs-hugo-theme/main/LICENSE)
|
4
|
+
[](https://github.com/marketplace/actions/super-linter)
|
5
|
+
[](https://www.npmjs.com/package/@trimble-oss/modus-docs-hugo-theme)
|
6
|
+
|
3
7
|
A documentation theme for Hugo.
|
4
8
|
|
5
|
-
Status: Alpha. This theme is currently under development
|
9
|
+
**Status: Alpha. This theme is currently under development.**
|
6
10
|
|
7
11
|
## Installation
|
8
12
|
|
package/assets/css/_article.scss
CHANGED
@@ -33,17 +33,17 @@ header {
|
|
33
33
|
// external links have an icon
|
34
34
|
.menu-right a[href^="http"]::after,
|
35
35
|
article a:not(.stretched-link)[href^="https"]::after {
|
36
|
-
content: "";
|
37
|
-
width: 12px;
|
38
|
-
height: 12px;
|
39
|
-
margin-left: 4px;
|
40
|
-
margin-bottom: -1px;
|
41
36
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19.78 19.78H4.22V4.22h6.67c.61 0 1.11-.5 1.11-1.11C12 2.5 11.5 2 10.89 2H3c-.55 0-1 .45-1 1v18c0 .55.45 1 1 1h18c.55 0 1-.45 1-1v-7.89c0-.61-.5-1.11-1.11-1.11-.61 0-1.11.5-1.11 1.11v6.67ZM14.22 3.11c0 .61.5 1.11 1.11 1.11h2.88L8.07 14.36c-.43.43-.43 1.13 0 1.57.43.43 1.13.43 1.57 0L19.78 5.79v2.88c0 .61.5 1.11 1.11 1.11.61 0 1.11-.5 1.11-1.11V3c0-.55-.45-1-1-1h-5.67c-.61 0-1.11.5-1.11 1.11Z'/%3E%3C/svg%3E");
|
42
37
|
background-position: bottom;
|
43
38
|
background-repeat: no-repeat;
|
44
39
|
background-size: contain;
|
40
|
+
content: "";
|
45
41
|
display: inline-block;
|
42
|
+
height: 12px;
|
43
|
+
margin-bottom: -1px;
|
44
|
+
margin-left: 4px;
|
46
45
|
opacity: 0.7;
|
46
|
+
width: 12px;
|
47
47
|
}
|
48
48
|
|
49
49
|
main .sticky-offset {
|
@@ -53,20 +53,20 @@ main .sticky-offset {
|
|
53
53
|
// offsets the anchors to adjust for the fixed navbar
|
54
54
|
article h2:target::before,
|
55
55
|
article h3:target::before {
|
56
|
-
display: block;
|
57
56
|
content: " ";
|
57
|
+
display: block;
|
58
58
|
height: 80px;
|
59
59
|
margin-top: -80px;
|
60
60
|
visibility: hidden;
|
61
61
|
}
|
62
62
|
|
63
63
|
#main::before {
|
64
|
-
display: block;
|
65
64
|
content: " ";
|
65
|
+
display: block;
|
66
66
|
height: 80px;
|
67
67
|
margin-top: -80px;
|
68
|
-
visibility: hidden;
|
69
68
|
top: 80px;
|
69
|
+
visibility: hidden;
|
70
70
|
}
|
71
71
|
|
72
72
|
// anchors # for deep links within docs
|
@@ -77,8 +77,8 @@ a.header-link {
|
|
77
77
|
|
78
78
|
a.header-link::after {
|
79
79
|
content: "#";
|
80
|
-
min-width: 20px;
|
81
80
|
display: inline-block;
|
81
|
+
min-width: 20px;
|
82
82
|
}
|
83
83
|
|
84
84
|
#main {
|
@@ -86,10 +86,10 @@ a.header-link::after {
|
|
86
86
|
}
|
87
87
|
|
88
88
|
.docs-callout {
|
89
|
-
margin-top: 1.25rem;
|
90
|
-
margin-bottom: 1.25rem;
|
91
89
|
border-left-width: 0.25rem !important;
|
92
90
|
border-radius: 0.25rem;
|
91
|
+
margin-bottom: 1.25rem;
|
92
|
+
margin-top: 1.25rem;
|
93
93
|
}
|
94
94
|
|
95
95
|
.docs-callout-danger {
|
@@ -1,17 +1,17 @@
|
|
1
1
|
/*! purgecss start ignore */
|
2
2
|
.autocomplete-suggestions {
|
3
|
-
|
3
|
+
background-color: #fff;
|
4
4
|
border: 1px solid #cbcdd6;
|
5
5
|
border-top: 0;
|
6
|
-
background-color: #fff;
|
7
6
|
box-shadow: -1px 1px 3px rgba(0, 0, 0, 0.1);
|
8
|
-
|
7
|
+
box-sizing: border-box;
|
8
|
+
cursor: default;
|
9
9
|
display: none;
|
10
|
-
z-index: 33333; // higher than navbar
|
11
10
|
max-height: 254px;
|
12
11
|
overflow: hidden;
|
13
12
|
overflow-y: auto;
|
14
|
-
|
13
|
+
position: absolute;
|
14
|
+
z-index: 33333; // higher than navbar
|
15
15
|
}
|
16
16
|
|
17
17
|
[data-bs-theme="dark"] {
|
@@ -26,19 +26,19 @@
|
|
26
26
|
}
|
27
27
|
|
28
28
|
.autocomplete-suggestion {
|
29
|
-
|
29
|
+
color: #353a40;
|
30
30
|
cursor: pointer;
|
31
|
-
padding: 7px;
|
32
31
|
line-height: 23px;
|
33
|
-
white-space: nowrap;
|
34
32
|
overflow: hidden;
|
33
|
+
padding: 7px;
|
34
|
+
position: relative;
|
35
35
|
text-overflow: ellipsis;
|
36
|
-
|
36
|
+
white-space: nowrap;
|
37
37
|
}
|
38
38
|
|
39
39
|
.autocomplete-suggestion b {
|
40
|
-
font-weight: 400;
|
41
40
|
color: #1f8dd6;
|
41
|
+
font-weight: 400;
|
42
42
|
}
|
43
43
|
|
44
44
|
.autocomplete-suggestion.selected {
|
@@ -52,8 +52,8 @@
|
|
52
52
|
}
|
53
53
|
|
54
54
|
.autocomplete-suggestion > .context {
|
55
|
-
font-size: 12px;
|
56
55
|
color: #7d808d;
|
56
|
+
font-size: 12px;
|
57
57
|
}
|
58
58
|
|
59
59
|
.autocomplete-suggestion.selected > .context {
|
package/assets/css/_cards.scss
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
.no-js input,
|
2
2
|
.no-js a[data-toggle] {
|
3
|
-
pointer-events: none !important;
|
4
3
|
opacity: 0.65;
|
4
|
+
pointer-events: none !important;
|
5
5
|
}
|
6
6
|
|
7
7
|
.no-js nav.navbar {
|
@@ -9,12 +9,12 @@
|
|
9
9
|
}
|
10
10
|
|
11
11
|
.no-js body::before {
|
12
|
-
height: 32px;
|
13
12
|
background-color: #e0e1e9;
|
14
|
-
text-align: center;
|
15
13
|
content: "⚠️ JavaScript is disabled. This site requires JavaScript to be enabled ⚠️";
|
16
14
|
display: block;
|
15
|
+
height: 32px;
|
17
16
|
position: fixed;
|
17
|
+
text-align: center;
|
18
18
|
top: 0;
|
19
19
|
width: 100%;
|
20
20
|
z-index: 1;
|
package/assets/css/_list-js.scss
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
.list:empty::before {
|
2
|
+
background-color: rgba(133, 133, 133, 0.1);
|
3
|
+
border-radius: 0.5rem;
|
4
|
+
content: "Nothing found, try searching again.";
|
2
5
|
display: block;
|
3
|
-
width: 100%;
|
4
|
-
padding: 100px 2rem;
|
5
|
-
margin-right: 15px;
|
6
6
|
margin-left: 15px;
|
7
|
+
margin-right: 15px;
|
8
|
+
padding: 100px 2rem;
|
7
9
|
text-align: center;
|
8
|
-
|
9
|
-
background-color: rgba(133, 133, 133, 0.1);
|
10
|
-
border-radius: 0.5rem;
|
10
|
+
width: 100%;
|
11
11
|
}
|
12
12
|
|
13
13
|
[data-bs-theme="dark"] {
|
@@ -12,15 +12,15 @@
|
|
12
12
|
|
13
13
|
// right menu
|
14
14
|
#TableOfContents li a {
|
15
|
-
padding-top: 0.3rem;
|
16
|
-
padding-bottom: 0.3rem;
|
17
|
-
font-size: 13px;
|
18
15
|
border-left: 1px solid transparent;
|
16
|
+
font-size: 13px;
|
17
|
+
padding-bottom: 0.3rem;
|
18
|
+
padding-top: 0.3rem;
|
19
19
|
}
|
20
20
|
|
21
21
|
.menu-right a {
|
22
|
-
font-size: 13px;
|
23
22
|
color: #171c1e;
|
23
|
+
font-size: 13px;
|
24
24
|
}
|
25
25
|
|
26
26
|
[data-bs-theme="dark"] {
|
@@ -50,6 +50,6 @@ hr {
|
|
50
50
|
|
51
51
|
// scrollspy color
|
52
52
|
.menu-right #TableOfContents li .active {
|
53
|
-
color: #000 !important;
|
54
53
|
border-left: 1px solid #0d6aa8 !important;
|
54
|
+
color: #000 !important;
|
55
55
|
}
|
package/assets/css/_mobile.scss
CHANGED
@@ -29,8 +29,8 @@
|
|
29
29
|
/* SM */
|
30
30
|
@media (max-width: 767px) {
|
31
31
|
#sidebar.show {
|
32
|
-
width: calc(100% - 68px) !important;
|
33
32
|
min-width: calc(100% - 68px) !important;
|
33
|
+
width: calc(100% - 68px) !important;
|
34
34
|
}
|
35
35
|
|
36
36
|
#sidebar.show + div {
|
@@ -46,7 +46,7 @@
|
|
46
46
|
/* SM Only */
|
47
47
|
@media (min-width: 575px) and (max-width: 767px) {
|
48
48
|
#sidebar-menu .list-unstyled li {
|
49
|
-
width: 50%;
|
50
49
|
display: inline-block;
|
50
|
+
width: 50%;
|
51
51
|
}
|
52
52
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.search-container {
|
2
|
-
width: 40px;
|
3
2
|
left: -12px;
|
3
|
+
width: 40px;
|
4
4
|
}
|
5
5
|
|
6
6
|
.form-control-search {
|
@@ -10,27 +10,27 @@
|
|
10
10
|
background-size: 20px;
|
11
11
|
border-left: 0;
|
12
12
|
border-right: 0;
|
13
|
+
left: auto;
|
13
14
|
padding: 0;
|
15
|
+
right: 5px;
|
16
|
+
top: 10px;
|
17
|
+
transition: all 0.2s;
|
14
18
|
width: 0 !important;
|
15
19
|
z-index: 1210;
|
16
|
-
transition: all 0.2s;
|
17
|
-
left: auto;
|
18
|
-
top: 10px;
|
19
|
-
right: 5px;
|
20
20
|
}
|
21
21
|
|
22
22
|
.form-control-search:focus {
|
23
|
-
width: 363px !important;
|
24
23
|
max-width: calc(100vw - 200px);
|
25
|
-
text-indent: 18px;
|
26
24
|
padding: 0 4px 4px 16px;
|
25
|
+
text-indent: 18px;
|
27
26
|
visibility: visible;
|
27
|
+
width: 363px !important;
|
28
28
|
}
|
29
29
|
|
30
30
|
.form-control-search:focus + .btn-search {
|
31
|
-
transition: all 1s;
|
32
31
|
background-color: transparent;
|
33
32
|
pointer-events: none !important;
|
33
|
+
transition: all 1s;
|
34
34
|
}
|
35
35
|
|
36
36
|
.form-control-search:focus + .btn-search img {
|
package/assets/css/_news.scss
CHANGED
@@ -16,25 +16,25 @@
|
|
16
16
|
#onetrust-accept-btn-handler {
|
17
17
|
background-color: #0063a3 !important;
|
18
18
|
border-color: #0063a3 !important;
|
19
|
-
padding: 0.1875rem 1rem !important;
|
20
19
|
font-size: 0.8rem !important;
|
21
20
|
font-weight: 600 !important;
|
22
|
-
user-select: none !important;
|
23
21
|
line-height: 1.75 !important;
|
22
|
+
padding: 0.1875rem 1rem !important;
|
24
23
|
text-transform: lowercase !important;
|
24
|
+
user-select: none !important;
|
25
25
|
}
|
26
26
|
|
27
27
|
/** 'Cookie Settings' button **/
|
28
28
|
#onetrust-pc-btn-handler {
|
29
|
-
color: #0063a3 !important;
|
30
29
|
border: 1px solid #0063a3 !important;
|
30
|
+
color: #0063a3 !important;
|
31
31
|
font-size: 0.8rem !important;
|
32
32
|
font-weight: 600 !important;
|
33
|
-
padding: 0.1875rem 1rem !important;
|
34
|
-
user-select: none !important;
|
35
33
|
line-height: 1.75 !important;
|
34
|
+
padding: 0.1875rem 1rem !important;
|
36
35
|
text-decoration: none !important;
|
37
36
|
text-transform: lowercase !important;
|
37
|
+
user-select: none !important;
|
38
38
|
}
|
39
39
|
|
40
40
|
/** capitalize first letter of button **/
|
@@ -57,9 +57,9 @@
|
|
57
57
|
|
58
58
|
/* stylelint-disable-next-line */
|
59
59
|
#onetrust-banner-sdk.otFlat {
|
60
|
-
max-width: 998px;
|
61
60
|
margin-left: auto !important;
|
62
61
|
margin-right: auto !important;
|
62
|
+
max-width: 998px;
|
63
63
|
overflow-y: hidden !important;
|
64
64
|
}
|
65
65
|
|
@@ -87,8 +87,8 @@
|
|
87
87
|
}
|
88
88
|
|
89
89
|
.ot-table-header {
|
90
|
-
position: static !important;
|
91
90
|
border-bottom-width: 2px !important;
|
91
|
+
position: static !important;
|
92
92
|
}
|
93
93
|
|
94
94
|
#ot-sdk-cookie-policy-v2 table,
|
@@ -140,17 +140,17 @@
|
|
140
140
|
|
141
141
|
.ot-acc-txt,
|
142
142
|
.ot-acc-txt p {
|
143
|
-
color: #252a2e !important;
|
144
143
|
background-color: #f1f1f6 !important;
|
144
|
+
color: #252a2e !important;
|
145
145
|
}
|
146
146
|
|
147
147
|
#ot-sdk-btn {
|
148
148
|
border-color: #0063a3 !important;
|
149
149
|
font-size: 14px !important;
|
150
|
+
line-height: 1.75 !important;
|
150
151
|
padding: 0.1875rem 1rem !important;
|
151
152
|
text-transform: lowercase;
|
152
153
|
user-select: none !important;
|
153
|
-
line-height: 1.75 !important;
|
154
154
|
}
|
155
155
|
|
156
156
|
#ot-sdk-btn::first-letter {
|
package/assets/css/_posts.scss
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
.btn-to-top {
|
2
|
-
font-size: 18px;
|
3
|
-
line-height: 48px !important;
|
4
2
|
background-color: #353a40 !important;
|
5
|
-
width: 48px;
|
6
3
|
bottom: 20px;
|
7
|
-
|
8
|
-
|
4
|
+
font-size: 18px;
|
5
|
+
line-height: 48px !important;
|
9
6
|
opacity: 0;
|
7
|
+
right: 20px;
|
10
8
|
transform: translateY(100px);
|
11
9
|
transition: all 1s ease;
|
10
|
+
width: 48px;
|
11
|
+
z-index: 6000;
|
12
12
|
}
|
13
13
|
|
14
14
|
.btn-to-top-show {
|
package/assets/css/_skippy.scss
CHANGED
package/assets/css/_tables.scss
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
main table {
|
2
|
-
width: 100%;
|
3
|
-
margin-bottom: 1rem;
|
4
2
|
border: 1px solid rgba(133, 133, 133, 0.1);
|
3
|
+
margin-bottom: 1rem;
|
5
4
|
vertical-align: top;
|
5
|
+
width: 100%;
|
6
6
|
|
7
7
|
// border-color: var(--bs-table-border-color);
|
8
8
|
}
|
9
9
|
|
10
10
|
main table thead th {
|
11
|
-
vertical-align: middle;
|
12
|
-
line-height: 1.25;
|
13
11
|
border-bottom-width: 1px;
|
12
|
+
line-height: 1.25;
|
13
|
+
vertical-align: middle;
|
14
14
|
}
|
15
15
|
|
16
16
|
main table thead tr {
|
@@ -27,8 +27,8 @@ main table td {
|
|
27
27
|
}
|
28
28
|
|
29
29
|
table > :not(caption) > * > * {
|
30
|
-
padding: 0.25rem 1rem;
|
31
30
|
background-color: var(--bs-table-bg);
|
32
31
|
border-bottom-width: var(--bs-border-width);
|
33
32
|
box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);
|
33
|
+
padding: 0.25rem 1rem;
|
34
34
|
}
|
@@ -50,8 +50,8 @@
|
|
50
50
|
|
51
51
|
[data-bs-theme="dark"] .sun-and-moon > .sun {
|
52
52
|
transform: scale(1.75);
|
53
|
-
transition-timing-function: cubic-bezier(0.25, 0, 0.3, 1);
|
54
53
|
transition-duration: 0.25s;
|
54
|
+
transition-timing-function: cubic-bezier(0.25, 0, 0.3, 1);
|
55
55
|
}
|
56
56
|
|
57
57
|
[data-bs-theme="dark"] .sun-and-moon > .sun-beams {
|
@@ -70,13 +70,13 @@
|
|
70
70
|
|
71
71
|
aspect-ratio: 1;
|
72
72
|
cursor: pointer;
|
73
|
-
touch-action: manipulation;
|
74
73
|
-webkit-tap-highlight-color: transparent;
|
74
|
+
touch-action: manipulation;
|
75
75
|
}
|
76
76
|
|
77
77
|
.theme-toggle > svg {
|
78
|
-
inline-size: 100%;
|
79
78
|
block-size: 100%;
|
79
|
+
inline-size: 100%;
|
80
80
|
max-height: 18px;
|
81
81
|
max-width: 18px;
|
82
82
|
stroke-linecap: round;
|
@@ -3,8 +3,8 @@
|
|
3
3
|
}
|
4
4
|
|
5
5
|
.btn-feedback {
|
6
|
-
opacity: 0.7;
|
7
6
|
min-width: 32px;
|
7
|
+
opacity: 0.7;
|
8
8
|
}
|
9
9
|
|
10
10
|
.btn-feedback svg {
|
@@ -16,8 +16,8 @@
|
|
16
16
|
}
|
17
17
|
|
18
18
|
.btn-feedback[disabled] {
|
19
|
-
opacity: 0.4;
|
20
19
|
cursor: default;
|
20
|
+
opacity: 0.4;
|
21
21
|
pointer-events: none;
|
22
22
|
}
|
23
23
|
|
@@ -1,15 +1,22 @@
|
|
1
1
|
$(function () {
|
2
|
-
$('.feedback').fadeIn('slow').addClass('d-block')
|
2
|
+
$('.feedback').fadeIn('slow').addClass('d-block');
|
3
3
|
$('.btn-feedback').click(function () {
|
4
4
|
$('.btn-feedback').addClass('img-grayscale').attr('disabled', 'disabled');
|
5
5
|
$('.feedback-thanks').fadeIn('slow').addClass('d-block');
|
6
6
|
});
|
7
|
+
|
7
8
|
$('.btn-feedback-helpful').click(function () {
|
8
9
|
$('.feedback-helpful').fadeIn('slow').addClass('d-block');
|
9
|
-
$('.
|
10
|
+
$('.icon-helpful-solid').addClass('d-block');
|
11
|
+
$('.icon-helpful-solid').removeClass('d-none');
|
12
|
+
$('.icon-helpful-outlined').removeClass('d-block');
|
13
|
+
$('.icon-helpful-outlined').addClass('d-none');
|
10
14
|
});
|
11
15
|
$('.btn-feedback-not-helpful').click(function () {
|
12
16
|
$('.feedback-not-helpful').fadeIn('slow').addClass('d-block');
|
13
|
-
$('.
|
17
|
+
$('.icon-not-helpful-solid').addClass('d-block');
|
18
|
+
$('.icon-not-helpful-solid').removeClass('d-none');
|
19
|
+
$('.icon-not-helpful-solid').removeClass('d-none');
|
20
|
+
$('.icon-not-helpful-outlined').addClass('d-none');
|
14
21
|
});
|
15
22
|
});
|
@@ -26,7 +26,7 @@
|
|
26
26
|
</h1>
|
27
27
|
<div class="d-flex">
|
28
28
|
<div class="mx-3">
|
29
|
-
<img src="/img/author/{{ .Params.author | urlize }}.jpg"
|
29
|
+
<img src="/img/author/{{- .Params.author | urlize -}}.jpg"
|
30
30
|
class="bg-light rounded-circle mx-auto text-center border" height="44" width="44"
|
31
31
|
alt="{{- .Params.author -}}">
|
32
32
|
</div>
|
@@ -0,0 +1,3 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" {{ with .width }} width="{{ . }}"{{ end }}{{ with .height }} height="{{ . }}"{{ end }}{{ with .class }} class="{{ . }}"{{ end }} viewBox="0 0 24 24">
|
2
|
+
<path fill="currentColor" d="M4 15.02H3c-.55 0-1-.45-1-1v-9c0-.55.45-1 1-1h1c.55 0 1 .45 1 1v9c0 .55-.45 1-1 1Zm17.95-2.06c0 1.11-.9 2.01-2.01 2.01h-5.03c-.25 0-.48 0-.69.03h-.05c-.48.06-.82.19-.87.46.3 2.27 1.08 5.3-1.67 6.42-1.56.62-1.95-1.05-1.73-2.24.34-2.17-1.58-3.55-2.77-5.07-.13-.2-.12-.73-.12-.73V6.02c0-1.11.91-2.01 2.02-2.01h8.46c1.11 0 1.58.28 2.33 2.25 0 0 1.91 4.57 2.05 4.89s.09 1.82.09 1.82Z"/>
|
3
|
+
</svg>
|
@@ -0,0 +1,3 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" {{ with .width }} width="{{ . }}"{{ end }}{{ with .height }} height="{{ . }}"{{ end }}{{ with .class }} class="{{ . }}"{{ end }} viewBox="0 0 24 24">
|
2
|
+
<path fill="currentColor" d="M4 9H3c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-9c0-.55-.45-1-1-1Zm17.95 2.06c0-1.11-.9-2.01-2.01-2.01h-5.03c-.25 0-.48 0-.69-.03h-.05c-.48-.06-.82-.19-.87-.46.3-2.27 1.08-5.3-1.67-6.42-1.56-.62-1.95 1.05-1.73 2.24.34 2.17-1.58 3.55-2.77 5.07-.13.2-.12.73-.12.73V18c0 1.11.91 2.01 2.02 2.01h8.46c1.11 0 1.58-.28 2.33-2.25 0 0 1.91-4.57 2.05-4.89s.09-1.82.09-1.82Z"/>
|
3
|
+
</svg>
|
@@ -35,7 +35,7 @@
|
|
35
35
|
<meta property="og:locale" content="en_US">
|
36
36
|
{{ end }}
|
37
37
|
|
38
|
-
<!-- no need to define additional Twitter card meta tags as fallback to Open Graph -->
|
38
|
+
<!-- no need to define additional X (Twitter) card meta tags as fallback to Open Graph -->
|
39
39
|
<!-- https://developer.twitter.com/en/docs/twitter-for-websites/cards/guides/getting-started#twitter-cards-and-open-graph -->
|
40
40
|
|
41
41
|
{{- if .Params.private -}}
|
@@ -49,14 +49,6 @@
|
|
49
49
|
<meta name="theme-color" content="{{- . | default "#005f9e" -}}">
|
50
50
|
{{ end }}
|
51
51
|
|
52
|
-
{{- if .IsHome -}}
|
53
|
-
{{- with .Site.Params.googleSiteVerification -}}
|
54
|
-
<!-- Google Site Verification -->
|
55
|
-
<!-- https://support.google.com/webmasters/answer/9008080?hl=en -->
|
56
|
-
<meta name="google-site-verification" content="{{- . -}}">
|
57
|
-
{{ end }}
|
58
|
-
{{ end }}
|
59
|
-
|
60
52
|
<!-- Loads the Trimble favicon and the SVG icon -->
|
61
53
|
<link rel="alternate icon" type="image/x-icon" href="{{- .Site.BaseURL -}}favicon.ico">
|
62
54
|
<link rel="icon" type="image/svg+xml" href="{{- .Site.BaseURL -}}favicon.svg">
|
@@ -86,6 +78,14 @@
|
|
86
78
|
<!-- Loads Bootstrap 5 JS from CDN -->
|
87
79
|
<script src="{{- .Site.BaseURL -}}js/bootstrap.bundle.min.js"></script>
|
88
80
|
|
81
|
+
{{- if .IsHome -}}
|
82
|
+
{{- with .Site.Params.googleSiteVerification -}}
|
83
|
+
<!-- Google Site Verification -->
|
84
|
+
<!-- https://support.google.com/webmasters/answer/9008080?hl=en -->
|
85
|
+
<meta name="google-site-verification" content="{{- . -}}">
|
86
|
+
{{ end }}
|
87
|
+
{{ end }}
|
88
|
+
|
89
89
|
{{ partial "analytics" . }}
|
90
90
|
|
91
91
|
{{ partial "custom-header" . }}
|
@@ -3,12 +3,14 @@
|
|
3
3
|
<button type="button"
|
4
4
|
class="btn btn-light btn-outline-secondary btn-feedback btn-feedback-helpful border rounded p-1 me-2"
|
5
5
|
aria-label="Helpful">
|
6
|
-
{{- partial "icons/modus-
|
6
|
+
{{- partial "icons/modus-solid/thumbs-up.svg" (dict "width" "22" "height" "22" "class" "mx-2 mx-auto text-primary d-none icon-helpful-solid") -}}
|
7
|
+
{{- partial "icons/modus-outlined/thumbs-up.svg" (dict "width" "22" "height" "22" "class" "mx-2 mx-auto text-primary icon-helpful-outlined") -}}
|
7
8
|
</button>
|
8
9
|
<button type="button"
|
9
10
|
class="btn btn-light btn-outline-secondary btn-feedback btn-feedback-not-helpful border rounded p-1"
|
10
11
|
aria-label="Not Helpful">
|
11
|
-
{{- partial "icons/modus-
|
12
|
+
{{- partial "icons/modus-solid/thumbs-down.svg" (dict "width" "22" "height" "22" "class" "mx-2 mx-auto text-primary d-none icon-not-helpful-solid") -}}
|
13
|
+
{{- partial "icons/modus-outlined/thumbs-down.svg" (dict "width" "22" "height" "22" "class" "mx-2 mx-auto text-primary icon-not-helpful-outlined") -}}
|
12
14
|
</button>
|
13
15
|
</div>
|
14
16
|
|
@@ -18,4 +20,4 @@
|
|
18
20
|
|
19
21
|
<div class="small ml-2 d-none feedback-not-helpful">
|
20
22
|
<a href="" rel="nofollow" target="_blank">Please, provide feedback about how we can improve the page</a>. Thank you!
|
21
|
-
</div>
|
23
|
+
</div>
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@trimble-oss/modus-docs-hugo-theme",
|
3
|
-
"version": "1.0.0-
|
3
|
+
"version": "1.0.0-alpha11",
|
4
4
|
"description": "A Documentation theme for Hugo built by Trimble",
|
5
5
|
"homepage": "https://github.com/trimble-oss/modus-docs-hugo-theme",
|
6
6
|
"bugs": {
|
@@ -26,20 +26,21 @@
|
|
26
26
|
"test": "npm run lint-css && npm run lint-html && npm run lint-js"
|
27
27
|
},
|
28
28
|
"dependencies": {
|
29
|
-
"@trimble-oss/modus-bootstrap": "2.0.0-
|
30
|
-
"@trimble-oss/modus-icons": "1.
|
29
|
+
"@trimble-oss/modus-bootstrap": "2.0.0-alpha9",
|
30
|
+
"@trimble-oss/modus-icons": "1.7.0"
|
31
31
|
},
|
32
32
|
"devDependencies": {
|
33
33
|
"autoprefixer": "10.4.16",
|
34
|
-
"eslint": "8.
|
34
|
+
"eslint": "8.52.0",
|
35
35
|
"eslint-config-prettier": "9.0.0",
|
36
36
|
"htmlhint": "1.1.4",
|
37
|
-
"hugo-bin": "0.
|
37
|
+
"hugo-bin": "0.115.0",
|
38
38
|
"postcss": "8.4.31",
|
39
39
|
"postcss-cli": "10.1.0",
|
40
40
|
"prettier": "3.0.3",
|
41
|
-
"stylelint": "15.
|
42
|
-
"stylelint-config-standard-scss": "11.0.0"
|
41
|
+
"stylelint": "15.11.0",
|
42
|
+
"stylelint-config-standard-scss": "11.0.0",
|
43
|
+
"stylelint-order": "6.0.3"
|
43
44
|
},
|
44
45
|
"hugo-bin": {
|
45
46
|
"buildTags": "extended"
|