Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
115 lines (100 loc) · 3.48 KB
/
Copy pathindex.html
File metadata and controls
115 lines (100 loc) · 3.48 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Generative AI for Beginners with JavaScript</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="description" content="Learn generative AI with JavaScript, Microsoft Foundry, and MCP.">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<link rel="icon" type="image/png" href="docs/images/logo.png">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsify-themeable@0/dist/css/theme-simple.css">
<style>
.markdown-section .markdown-alert {
border-left: 0.25rem solid;
color: inherit;
margin: 1rem 0;
padding: 0.75rem 1rem;
}
.markdown-section .markdown-alert-title {
font-weight: 600;
margin: 0 0 0.5rem;
}
.markdown-section .markdown-alert > :last-child {
margin-bottom: 0;
}
.markdown-alert-note {
border-color: #0969da;
}
.markdown-alert-note .markdown-alert-title {
color: #0969da;
}
.markdown-alert-tip {
border-color: #1a7f37;
}
.markdown-alert-tip .markdown-alert-title {
color: #1a7f37;
}
.markdown-alert-important {
border-color: #8250df;
}
.markdown-alert-important .markdown-alert-title {
color: #8250df;
}
.markdown-alert-warning {
border-color: #9a6700;
}
.markdown-alert-warning .markdown-alert-title {
color: #9a6700;
}
.markdown-alert-caution {
border-color: #d1242f;
}
.markdown-alert-caution .markdown-alert-title {
color: #d1242f;
}
</style>
</head>
<body>
<div id="app"></div>
<script type="text/javascript">
(function(c,l,a,r,i,t,y){
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
})(window, document, "clarity", "script", "rr8mykpwiy");
window.$docsify = {
loadSidebar: true,
name: 'Generative AI For Beginners with JavaScript',
repo: 'https://github.com/microsoft/generative-ai-with-javascript',
relativePath: true,
basePath: new URL('./', window.location.href).pathname,
auto2top: false,
notFoundPage: true,
alias: {
'/.*/_sidebar.md': '/_sidebar.md'
},
plugins: [
function (hook) {
hook.afterEach(function (html) {
const base = new URL('./', window.location.href).pathname;
const alerts = html.replace(
/<blockquote>\s*<p>\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\](?:\s*<br\s*\/?>)?\s*(<\/p>\s*)?/gi,
function (match, type, paragraphEnd) {
const name = type.toLowerCase();
const title = name.charAt(0).toUpperCase() + name.slice(1);
const contentStart = paragraphEnd ? '' : '<p>';
return '<blockquote class="markdown-alert markdown-alert-' + name + '">' +
'<p class="markdown-alert-title">' + title + '</p>' + contentStart;
}
);
return alerts.replace(/(\b(?:src|href)=["'])(\/(?!\/)[^"']*)/g, function (_, prefix, asset) {
return prefix + (asset.startsWith(base) ? asset : base + asset.slice(1));
});
});
}
]
}
</script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script>
</body>
</html>