-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathindex.html
More file actions
156 lines (146 loc) · 5.91 KB
/
Copy pathindex.html
File metadata and controls
156 lines (146 loc) · 5.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Working with the GitOps Console plugin</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css" />
<link rel="stylesheet" href="https://unpkg.com/docsify-plugin-toc@1.3.1/dist/light.css" />
<link rel="stylesheet" href="theme.css" />
</head>
<body>
<div id="app"></div>
<script>
window.$docsify = {
name: 'Red Hat OpenShift GitOps',
homepage: 'README.md',
loadSidebar: true,
subMaxLevel: 3,
relativePath: true,
auto2top: true,
search: 'auto',
copyCode: {
buttonText: ' ',
errorText: '!',
successText: '✓',
},
toc: {
tocMaxLevel: 3,
target: 'h2, h3',
},
pagination: {
previousText: 'Previous',
nextText: 'Next',
crossChapter: true,
crossChapterText: true,
},
plugins: [
function (hook) {
hook.doneEach(function () {
document.querySelectorAll('.markdown-section blockquote').forEach(function (bq) {
var label = ((bq.querySelector('strong') || {}).textContent || '').trim();
if (/^NOTE$/i.test(label)) {
bq.classList.add('note');
}
});
if (!document.getElementById('docs-lightbox')) {
var lightbox = document.createElement('div');
lightbox.id = 'docs-lightbox';
lightbox.className = 'docs-lightbox';
lightbox.hidden = true;
lightbox.innerHTML =
'<button type="button" class="docs-lightbox__close" aria-label="Close">×</button>' +
'<div class="docs-lightbox__content"></div>';
document.body.appendChild(lightbox);
function closeLightbox() {
var content = lightbox.querySelector('.docs-lightbox__content');
content.innerHTML = '';
lightbox.hidden = true;
document.body.style.overflow = '';
}
lightbox.addEventListener('click', function (event) {
if (
event.target === lightbox ||
event.target.classList.contains('docs-lightbox__close')
) {
closeLightbox();
}
});
document.addEventListener('keydown', function (event) {
if (event.key === 'Escape' && !lightbox.hidden) {
closeLightbox();
}
});
}
function openMediaLightbox(media) {
var lightbox = document.getElementById('docs-lightbox');
var content = lightbox.querySelector('.docs-lightbox__content');
content.innerHTML = '';
var clone;
if (media.tagName === 'VIDEO') {
clone = document.createElement('video');
clone.src = media.currentSrc || media.src;
clone.controls = true;
clone.autoplay = true;
clone.loop = media.loop;
clone.muted = media.muted;
clone.playsInline = true;
} else {
clone = document.createElement('img');
clone.src = media.currentSrc || media.src;
clone.alt = media.alt || '';
}
content.appendChild(clone);
lightbox.hidden = false;
document.body.style.overflow = 'hidden';
}
setTimeout(function () {
var copyableLangs = {
bash: true,
sh: true,
shell: true,
console: true,
};
document.querySelectorAll('.markdown-section pre').forEach(function (pre) {
var lang = (pre.getAttribute('data-lang') || '').toLowerCase();
var button = pre.querySelector('.docsify-copy-code-button');
if (!button) {
return;
}
if (!copyableLangs[lang]) {
button.remove();
return;
}
button.setAttribute('aria-label', 'Copy command');
button.setAttribute('title', 'Copy command');
});
}, 0);
document
.querySelectorAll('.markdown-section img, .markdown-section video')
.forEach(function (media) {
if (media.dataset.lightboxBound) {
return;
}
media.dataset.lightboxBound = 'true';
media.style.cursor = 'zoom-in';
media.setAttribute(
'title',
media.tagName === 'VIDEO' ? 'Click to expand video' : 'Click to expand image',
);
media.addEventListener('click', function (event) {
event.preventDefault();
openMediaLightbox(media);
});
});
});
},
],
};
</script>
<script src="https://cdn.jsdelivr.net/npm/docsify@4/lib/docsify.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/docsify@4/lib/plugins/search.min.js"></script>
<script src="https://unpkg.com/docsify-plugin-toc@1.3.1/dist/docsify-plugin-toc.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/docsify-copy-code@2/dist/docsify-copy-code.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/docsify-pagination@2/dist/docsify-pagination.min.js"></script>
</body>
</html>