Skip to content

Commit

Permalink
revert: "docs: add linkage for code-groups in getting-started" (#…
Browse files Browse the repository at this point in the history
…1943)

Revert "docs: shared selection state in `code-groups` in `getting-started` (#1906)"

This reverts commit f1fe79b.
  • Loading branch information
brc-dd authored Feb 14, 2023
1 parent 97f2b0e commit ed90724
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions docs/guide/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,22 +139,3 @@ If you would like to know more about what you can do within the page, for exampl
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).

When your documentation site starts to take shape, be sure to read the [deployment guide](./deploying).

<script setup>
import { inBrowser } from 'vitepress'

if (inBrowser) {
window.addEventListener('click', (e) => {
const el = e.target
if (el.matches('.vp-code-group input')) {
const allGroups = document.querySelectorAll('.vp-code-group')
const group = el.parentElement?.parentElement
const i = Array.from(group?.querySelectorAll('input') || []).indexOf(el)
for (let index = 0; index < allGroups.length; index++) {
if (allGroups[index] === group) continue
allGroups[index].querySelectorAll('input')[i].click()
}
}
})
}
</script>

0 comments on commit ed90724

Please sign in to comment.