Skip to content

Commit f5a724b

Browse files
authored
Update index.html
1 parent 789b81c commit f5a724b

1 file changed

Lines changed: 32 additions & 18 deletions

File tree

src/index.html

Lines changed: 32 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -151,26 +151,40 @@
151151
}
152152

153153
window.$docsify = {
154-
name: "GitHub Guides",
155-
repo: "harys722/github-guides",
156-
coverpage: 'coverpage.md',
157-
notFoundPage: 'error.md',
158-
search: ["/"],
159-
themeColor: "#FFD700",
160-
alias: {
161-
"/": "https://raw.githubusercontent.com/harys722/github-guides/main/README.md"
154+
name: "GitHub Guides",
155+
repo: "harys722/github-guides",
156+
coverpage: 'coverpage.md',
157+
notFoundPage: 'error.md',
158+
search: ["/"],
159+
themeColor: "#FFD700",
160+
alias: {
161+
"/": "https://raw.githubusercontent.com/harys722/github-guides/main/README.md"
162+
},
163+
vueComponents: {
164+
'button-counter': {
165+
template: `
166+
<button @click="count += 1">
167+
You clicked me {{ count }} times
168+
</button>
169+
`,
170+
data() {
171+
return {
172+
count: 0,
173+
};
174+
},
162175
},
163-
plugins: [
164-
function(hook, vm) {
165-
hook.doneEach(function() {
166-
const toggle = document.getElementById('themeToggle');
167-
if (toggle) {
168-
toggle.style.display = 'flex';
169-
}
170-
});
176+
},
177+
plugins: [
178+
function(hook, vm) {
179+
hook.doneEach(function() {
180+
const toggle = document.getElementById('themeToggle');
181+
if (toggle) {
182+
toggle.style.display = 'flex';
171183
}
172-
]
173-
}
184+
});
185+
}
186+
]
187+
};
174188
</script>
175189

176190
<script src="https://cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script>

0 commit comments

Comments
 (0)