Skip to content

Commit ed90724

Browse files
authored
revert: "docs: add linkage for code-groups in getting-started" (#1943)
Revert "docs: shared selection state in `code-groups` in `getting-started` (#1906)" This reverts commit f1fe79b.
1 parent 97f2b0e commit ed90724

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

docs/guide/getting-started.md

-19
Original file line numberDiff line numberDiff line change
@@ -139,22 +139,3 @@ If you would like to know more about what you can do within the page, for exampl
139139
If you want to know how to customize how the site looks (Theme), and find out the features VitePress's default theme provides, visit [Theme: Introduction](./theme-introduction).
140140

141141
When your documentation site starts to take shape, be sure to read the [deployment guide](./deploying).
142-
143-
<script setup>
144-
import { inBrowser } from 'vitepress'
145-
146-
if (inBrowser) {
147-
window.addEventListener('click', (e) => {
148-
const el = e.target
149-
if (el.matches('.vp-code-group input')) {
150-
const allGroups = document.querySelectorAll('.vp-code-group')
151-
const group = el.parentElement?.parentElement
152-
const i = Array.from(group?.querySelectorAll('input') || []).indexOf(el)
153-
for (let index = 0; index < allGroups.length; index++) {
154-
if (allGroups[index] === group) continue
155-
allGroups[index].querySelectorAll('input')[i].click()
156-
}
157-
}
158-
})
159-
}
160-
</script>

0 commit comments

Comments
 (0)