Skip to content

Commit

Permalink
📝 [docs] Update the playground to use the editor
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-liu committed Dec 28, 2023
1 parent 0cb7fae commit b7c864a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions docs/docs/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,3 @@ writeToProfile('Default', [ // 1 profile to config complex_modifications
]),
])
```

Try it out at the online playground:

<iframe src="https://stackblitz.com/edit/karabiner-ts?embed=1&file=rules.js&hideExplorer=1&hideNavigation=1&terminalHeight=20" width="100%" height="1000"></iframe>
2 changes: 1 addition & 1 deletion docs/docs/playground.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
title: Playground
---

<iframe src="https://stackblitz.com/edit/karabiner-ts?embed=1&file=rules.js&hideExplorer=1&hideNavigation=1&terminalHeight=20" width="100%" height="1000"></iframe>
<iframe src="https://stackblitz.com/github/evan-liu/karabiner.ts/tree/main/editor?embed=1&file=rules.js&hideExplorer=1&hideNavigation=1&terminalHeight=20" width="100%" height="1000"></iframe>
2 changes: 1 addition & 1 deletion editor/rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ withCondition, withMapper
export const rules = () => [
rule('Playground').manipulators([
map('⇪').toHyper().toIfAlone('⎋'),
{ esc: toKey('caps_lock') },
{ escape: toKey('caps_lock') },
]),
]

0 comments on commit b7c864a

Please sign in to comment.