Skip to content

Commit e95f34f

Browse files
Merge branch 'master' into fix-team-manager-permissions
2 parents d3619b1 + b4f1bb4 commit e95f34f

515 files changed

Lines changed: 1709 additions & 758 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build-and-preview-docs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ jobs:
7171
- name: Build PR preview
7272
if: github.event.action != 'closed'
7373
env:
74+
BASE_URL: /pr-preview/pr-${{ github.event.pull_request.number }}/
7475
HUGO_PREVIEW: 'true'
7576
run: |
7677
npm run build:preview
@@ -145,7 +146,7 @@ jobs:
145146
with:
146147
header: pr-preview
147148
message: |
148-
🚀 Preview deployment: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/pr-preview/pr-${{ github.event.pull_request.number }}/
149+
🚀 Preview deployment: https://docs.layer5.io/pr-preview/pr-${{ github.event.pull_request.number }}/
149150
> *Note: Preview may take a moment (GitHub Pages deployment in progress). Please wait and refresh. Track deployment [here](https://github.com/${{ github.repository }}/actions/workflows/pages/pages-build-deployment)*
150151
151152
- name: Comment on pruned previews

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ site: check-go
2727
build:
2828
hugo
2929

30+
docs-build-production:
31+
npm run build:production
32+
3033
## Empty build cache and run docs.layer5.io on your local machine.
3134
clean:
3235
hugo --cleanDestinationDir
@@ -45,4 +48,4 @@ docker:
4548

4649
## Format code using Prettier
4750
format:
48-
npm run format
51+
npm run format

assets/js/offline-search.js

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,10 @@
123123
} else {
124124
results.forEach((r) => {
125125
const doc = resultDetails.get(r.ref);
126-
const href =
127-
$searchInput.data('offline-search-base-href') +
128-
r.ref.replace(/^\//, '');
126+
const href = resolveSearchResultHref(
127+
$targetSearchInput.data('offline-search-base-href'),
128+
r.ref
129+
);
129130

130131
const $entry = $('<div>').addClass('mt-4');
131132

@@ -165,6 +166,33 @@
165166
popover.show();
166167
};
167168

169+
const resolveSearchResultHref = (baseHref, ref) => {
170+
if (!ref || typeof ref !== 'string') return ref;
171+
if (/^(?:[a-z]+:)?\/\//i.test(ref)) return ref;
172+
if (/^(?:data:|mailto:|tel:|#)/i.test(ref)) return ref;
173+
174+
const basePath = new URL(baseHref || '/', window.location.origin)
175+
.pathname
176+
.replace(/\/+$/, '/');
177+
178+
if (ref.startsWith('/')) {
179+
const baseWithoutTrailingSlash = basePath.replace(/\/$/, '');
180+
181+
if (
182+
basePath === '/' ||
183+
ref === baseWithoutTrailingSlash ||
184+
ref.startsWith(basePath)
185+
) {
186+
return ref;
187+
}
188+
189+
return `${basePath}${ref.replace(/^\//, '')}`;
190+
}
191+
192+
const resolvedUrl = new URL(ref, new URL(basePath, window.location.origin));
193+
return `${resolvedUrl.pathname}${resolvedUrl.search}${resolvedUrl.hash}`;
194+
};
195+
168196
//Bring focus to search bar
169197
$(document).on('keydown', function (event) {
170198
if (event.key === '/' && !(document.activeElement instanceof HTMLInputElement)) {

assets/scss/_content_project.scss

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,11 @@ h6 {
214214
border-color: rgba(0, 179, 159, 0.33);
215215
}
216216

217+
.td-initial + h2 {
218+
margin-top: 3rem;
219+
margin-bottom: 1rem;
220+
}
221+
217222
.td-initial thead {
218223
display: table-header-group;
219224
vertical-align: bottom;
@@ -270,3 +275,43 @@ th {
270275
overflow-x: auto;
271276
max-width: 100%;
272277
}
278+
279+
.td-content .permissions-tabpane {
280+
max-width: 100%;
281+
width: 100%;
282+
overflow: visible;
283+
margin-top: 1rem;
284+
285+
.nav-tabs,
286+
.tab-content,
287+
.tab-pane,
288+
.csvtable-div,
289+
table.csvtable {
290+
width: 100%;
291+
max-width: 100%;
292+
}
293+
294+
table.csvtable {
295+
th:nth-child(n+3),
296+
td:nth-child(n+3) {
297+
text-align: center;
298+
}
299+
}
300+
301+
.csvtable-div {
302+
table.csvtable {
303+
table-layout: fixed;
304+
305+
th:first-child,
306+
td:first-child {
307+
width: 25%;
308+
}
309+
310+
th:nth-child(2),
311+
td:nth-child(2) {
312+
width: 75%;
313+
max-width: none;
314+
}
315+
}
316+
}
317+
}

assets/scss/_fonts_project.scss

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,147 +1,147 @@
11
@font-face {
22
font-family: "Qanelas Soft Black";
3-
src: url('/fonts/qanelas-soft/QanelasSoftBlack.otf') format('opentype');
3+
src: url("../fonts/qanelas-soft/QanelasSoftBlack.otf") format('opentype');
44
font-weight: normal;
55
font-display: swap;
66
}
77

88
@font-face {
99
font-family: "Qanelas Soft Black Italic";
10-
src: url('/fonts/qanelas-soft/QanelasSoftBlackItalic.otf') format('opentype');
10+
src: url("../fonts/qanelas-soft/QanelasSoftBlackItalic.otf") format('opentype');
1111
font-style: italic;
1212
font-display: swap;
1313
}
1414

1515
@font-face {
1616
font-family: "Qanelas Soft Heavy";
17-
src: url('/fonts/qanelas-soft/QanelasSoftHeavy.otf') format('opentype');
17+
src: url("../fonts/qanelas-soft/QanelasSoftHeavy.otf") format('opentype');
1818
font-weight: 900;
1919
font-display: swap;
2020
}
2121

2222
@font-face {
2323
font-family: "Qanelas Soft Heavy Italic";
24-
src: url('/fonts/qanelas-soft/QanelasSoftHeavyItalic.otf') format('opentype');
24+
src: url("../fonts/qanelas-soft/QanelasSoftHeavyItalic.otf") format('opentype');
2525
font-weight: 900;
2626
font-style: italic;
2727
font-display: swap;
2828
}
2929

3030
@font-face {
3131
font-family: "Qanelas Soft ExtraBold";
32-
src: url('/fonts/qanelas-soft/QanelasSoftExtraBold.otf') format('opentype');
32+
src: url("../fonts/qanelas-soft/QanelasSoftExtraBold.otf") format('opentype');
3333
font-weight: 800;
3434
font-display: swap;
3535
}
3636

3737
@font-face {
3838
font-family: "Qanelas Soft ExtraBold Italic";
39-
src: url('/fonts/qanelas-soft/QanelasSoftExtraBoldItalic.otf') format('opentype');
39+
src: url("../fonts/qanelas-soft/QanelasSoftExtraBoldItalic.otf") format('opentype');
4040
font-weight: 800;
4141
font-style: italic;
4242
font-display: swap;
4343
}
4444

4545
@font-face {
4646
font-family: "Qanelas Soft Bold";
47-
src: url('/fonts/qanelas-soft/QanelasSoftBold.otf') format('opentype');
47+
src: url("../fonts/qanelas-soft/QanelasSoftBold.otf") format('opentype');
4848
font-weight: bold;
4949
font-display: swap;
5050
}
5151

5252
@font-face {
5353
font-family: "Qanelas Soft Bold Italic";
54-
src: url('/fonts/qanelas-soft/QanelasSoftBoldItalic.otf') format('opentype');
54+
src: url("../fonts/qanelas-soft/QanelasSoftBoldItalic.otf") format('opentype');
5555
font-weight: bold;
5656
font-style: italic;
5757
font-display: swap;
5858
}
5959

6060
@font-face {
6161
font-family: "Qanelas Soft";
62-
src: url('/fonts/qanelas-soft/QanelasSoftSemiBold.otf') format('opentype');
62+
src: url("../fonts/qanelas-soft/QanelasSoftSemiBold.otf") format('opentype');
6363
font-weight: 600;
6464
font-display: swap;
6565
}
6666

6767
@font-face {
6868
font-family: "Qanelas Soft SemiBold Italic";
69-
src: url('/fonts/qanelas-soft/QanelasSoftSemiBoldItalic.otf') format('opentype');
69+
src: url("../fonts/qanelas-soft/QanelasSoftSemiBoldItalic.otf") format('opentype');
7070
font-weight: 600;
7171
font-style: italic;
7272
font-display: swap;
7373
}
7474

7575
@font-face {
7676
font-family: "Qanelas Soft Medium";
77-
src: url('/fonts/qanelas-soft/QanelasSoftMedium.otf') format('opentype');
77+
src: url("../fonts/qanelas-soft/QanelasSoftMedium.otf") format('opentype');
7878
font-weight: 500;
7979
font-display: swap;
8080
}
8181

8282
@font-face {
8383
font-family: "Qanelas Soft Medium Italic";
84-
src: url('/fonts/qanelas-soft/QanelasSoftMediumItalic.otf') format('opentype');
84+
src: url("../fonts/qanelas-soft/QanelasSoftMediumItalic.otf") format('opentype');
8585
font-weight: 500;
8686
font-style: italic;
8787
font-display: swap;
8888
}
8989

9090
@font-face {
9191
font-family: "Qanelas Soft";
92-
src: url('/fonts/qanelas-soft/QanelasSoftRegular.otf') format('opentype');
92+
src: url("../fonts/qanelas-soft/QanelasSoftRegular.otf") format('opentype');
9393
font-weight: 400;
9494
font-display: swap;
9595
}
9696

9797
@font-face {
9898
font-family: "Qanelas Soft Regular Italic";
99-
src: url('/fonts/qanelas-soft/QanelasSoftRegularItalic.otf') format('opentype');
99+
src: url("../fonts/qanelas-soft/QanelasSoftRegularItalic.otf") format('opentype');
100100
font-weight: 400;
101101
font-style: italic;
102102
font-display: swap;
103103
}
104104

105105
@font-face {
106106
font-family: "Qanelas Soft Light";
107-
src: url('/fonts/qanelas-soft/QanelasSoftLight.otf') format('opentype');
107+
src: url("../fonts/qanelas-soft/QanelasSoftLight.otf") format('opentype');
108108
font-weight: 300;
109109
font-display: swap;
110110
}
111111

112112
@font-face {
113113
font-family: "Qanelas Soft Light Italic";
114-
src: url('/fonts/qanelas-soft/QanelasSoftLightItalic.otf') format('opentype');
114+
src: url("../fonts/qanelas-soft/QanelasSoftLightItalic.otf") format('opentype');
115115
font-weight: 300;
116116
font-style: italic;
117117
font-display: swap;
118118
}
119119

120120
@font-face {
121121
font-family: "Qanelas Soft UltraLight";
122-
src: url('/fonts/qanelas-soft/QanelasSoftUltraLight.otf') format('opentype');
122+
src: url("../fonts/qanelas-soft/QanelasSoftUltraLight.otf") format('opentype');
123123
font-weight: 200;
124124
font-display: swap;
125125
}
126126

127127
@font-face {
128128
font-family: "Qanelas Soft UltraLight Italic";
129-
src: url('/fonts/qanelas-soft/QanelasSoftUltraLightItalic.otf') format('opentype');
129+
src: url("../fonts/qanelas-soft/QanelasSoftUltraLightItalic.otf") format('opentype');
130130
font-weight: 200;
131131
font-style: italic;
132132
font-display: swap;
133133
}
134134

135135
@font-face {
136136
font-family: "Qanelas Soft Thin";
137-
src: url('/fonts/qanelas-soft/QanelasSoftThin.otf') format('opentype');
137+
src: url("../fonts/qanelas-soft/QanelasSoftThin.otf") format('opentype');
138138
font-weight: 100;
139139
font-display: swap;
140140
}
141141

142142
@font-face {
143143
font-family: "Qanelas Soft Thin Italic";
144-
src: url('/fonts/qanelas-soft/QanelasSoftThinItalic.otf') format('opentype');
144+
src: url("../fonts/qanelas-soft/QanelasSoftThinItalic.otf") format('opentype');
145145
font-weight: 100;
146146
font-style: italic;
147147
font-display: swap;

assets/scss/_landing_project.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@
8181
}
8282
.playground-section {
8383
&.playground-logo {
84-
background-image: url("/images/logos/black-semi-opaque.svg"), url("/images/logos/meshery-light-icon.svg");
84+
background-image: url("../images/logos/black-semi-opaque.svg"), url("../images/logos/meshery-light-icon.svg");
8585
}
8686
&.video-play-logo {
87-
background-image: url("/images/logos/black-semi-opaque.svg"), url("/images/video-play.svg");
87+
background-image: url("../images/logos/black-semi-opaque.svg"), url("../images/video-play.svg");
8888
}
8989
&.playground-logo, &.video-play-logo {
9090
background-repeat: no-repeat;
@@ -102,13 +102,13 @@
102102

103103
.catalog-section {
104104
&.catalog-logo {
105-
background-image: url("/images/logos/black-semi-opaque.svg"), url("/images/logos/catalog.svg");
105+
background-image: url("../images/logos/black-semi-opaque.svg"), url("../images/logos/catalog.svg");
106106
}
107107
&.academy-logo{
108-
background-image: url("/images/logos/black-semi-opaque.svg"), url("/images/logos/academy.svg");
108+
background-image: url("../images/logos/black-semi-opaque.svg"), url("../images/logos/academy.svg");
109109
}
110110
&.recognition-program-logo{
111-
background-image: url("/images/logos/black-semi-opaque.svg"), url("/images/logos/recognition-program.png");
111+
background-image: url("../images/logos/black-semi-opaque.svg"), url("../images/logos/recognition-program.png");
112112
}
113113
&.catalog-logo, &.academy-logo , &.recognition-program-logo {
114114
background-repeat: no-repeat;

assets/scss/_styles_project.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ a:not([href]):not([class]):hover {
264264
// Left sidebar
265265
.td-sidebar-nav {
266266
max-height: none;
267-
overflow: hidden;
267+
overflow: visible;
268268
padding: 0px;
269269

270270
&__section-title {

build/meshery-cloud.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.0.121
1+
v1.0.132

build/meshery-extensions.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.0.38-2
1+
v1.0.43-1

0 commit comments

Comments
 (0)