Add guide for CDN, menu reorg

This commit is contained in:
Cagatay Civici 2024-01-23 23:21:13 +03:00
parent 438eae57b5
commit d27c3bd5b2
19 changed files with 410 additions and 23 deletions

37
doc/cdn/CreateAppDoc.vue Normal file
View file

@ -0,0 +1,37 @@
<template>
<DocSectionText v-bind="$attrs">
<p>Create an app container element and setup the application using <i>createApp</i>.</p>
</DocSectionText>
<DocSectionCode :code="code" hideToggleCode hideCodeSandbox hideStackBlitz />
</template>
<script>
export default {
data() {
return {
code: {
basic: `
<body>
<script src="https://unpkg.com/vue@3/dist/vue.global.js"><\/script>
<div id="app">
</div>
<script>
const { createApp, ref } = Vue;
const app = createApp({
setup() {
}
});
app.mount('#app');
<\/script>
</body>
`
}
};
}
};
</script>