Skip to content

Commit

Permalink
fix: improve navigation sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
HerringtonDarkholme committed Sep 8, 2024
1 parent a1f5057 commit e2e54d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default defineConfig({
],
},
{ text: 'Project Config', link: '/reference/sgconfig.html' },
{ text: 'Rule Config', link: '/reference/yaml.html', collapsed: true,
{ text: 'Rule Config', link: '/reference/yaml.html', collapsed: false,
items: [
{ text: 'fix', link: '/reference/yaml/fix.html' },
{ text: 'transformation', link: '/reference/yaml/transformation.html' },
Expand All @@ -134,7 +134,7 @@ export default defineConfig({
text: 'Advanced Topics',
items: [
{ text: 'Frequently Asked Questions', link: '/advanced/faq.html'},
{ text: 'How ast-grep Works', link: '/advanced/how-ast-grep-works.html',
{ text: 'How ast-grep Works', link: '/advanced/how-ast-grep-works.html', collapsed: false,
items: [
{ text: 'Core Concepts', link: '/advanced/core-concepts.html'},
{ text: 'Pattern Syntax', link: '/advanced/pattern-parse.html'},
Expand Down
2 changes: 2 additions & 0 deletions website/reference/yaml.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ One YAML file can contain multiple rules, separated by `---`.

An ast-grep rule is a YAML object with the following keys:

[[toc]]

## Basic Information

### `id`
Expand Down

0 comments on commit e2e54d3

Please sign in to comment.