Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 46953c0

Browse files
committedJun 15, 2025··
feat: add cheatsheet
1 parent 892f5f1 commit 46953c0

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed
 

‎website/.vitepress/config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ const sidebar: DefaultTheme.Sidebar = [
7272
],
7373
collapsed: true,
7474
},
75+
{
76+
text: 'Cheat Sheet',
77+
items: [
78+
{ text: 'Rule Cheat Sheet', link: '/cheatsheet/rule.html' },
79+
],
80+
collapsed: true,
81+
},
7582
{
7683
text: 'Reference',
7784
items: [

‎website/reference/cheatsheet/rule.md renamed to ‎website/cheatsheet/rule.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ This cheat sheet provides a concise overview of ast-grep's rule object configura
44

55

66
<script setup>
7-
import CheatSheet from '../../src/cheatsheet/SheetTable.vue'
8-
import Item from '../../src/cheatsheet/Item.vue'
7+
import CheatSheet from '../src/cheatsheet/SheetTable.vue'
8+
import Item from '../src/cheatsheet/Item.vue'
99
</script>
1010

1111
## Atomic Rules Cheat Sheet

0 commit comments

Comments
 (0)
Please sign in to comment.