Skip to content

Commit c9b1f9d

Browse files
fix: improve navigation
1 parent 1f82a65 commit c9b1f9d

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

website/guide/introduction.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ head:
1010

1111
## Introduction
1212

13-
ast-grep is a new AST based tool for managing your code, at massive scale.
13+
ast-grep is a new AST based tool to manage your code, at massive scale.
1414

1515
Using ast-grep can be as simple as running a single command in your terminal:
1616

@@ -24,12 +24,14 @@ The command above will replace `var` statement with `let` for all <abbr title="a
2424

2525
ast-grep is a versatile tool for searching, linting and rewriting code in various languages.
2626

27-
* **Search**: As a command line tool in your terminal, `ast-grep` can precisely search code based on AST, running through ten thousand files in sub seconds.
28-
* **Lint**: You can also use ast-grep as a linter. Thanks to the flexible rule configuration, adding a new customized rule is more intuitive and straightforward. It also has a pretty error reporting out of box
29-
* **Rewrite**: ast-grep provide jQuery like utility methods to traverse and manipulate syntax tree. Besides, you can also use operators to compose complex matching from simple patterns.
27+
* **Search**: As a _command line tool_ in your terminal, `ast-grep` can precisely search code _based on AST_, running through ten thousand files in sub seconds.
28+
* **Lint**: You can use ast-grep as a linter. Thanks to the flexible rule system, adding a new customized rule is intuitive and straightforward, with _pretty error reporting_ out of box.
29+
* **Rewrite**: ast-grep provide API to traverse and manipulate syntax tree. Besides, you can also use operators to compose complex matching from simple patterns.
3030

3131
> Think ast-grep as an hybrid of [grep](https://www.gnu.org/software/grep/manual/grep.html), [eslint](https://eslint.org/) and [codemod](https://github.com/facebookincubator/fastmod).
3232
33+
Wanna try it out? Check out the [quick start guide](/guide/quick-start)! Or see some [examples](/catalog) to get a sense of what ast-grep can do. We also have a [playground](/playground.html) for you to try out ast-grep online!
34+
3335
## Supported Languages
3436

3537
ast-grep supports a wide range of programming languages. Here is a list of notable programming languages it supports.

website/index.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,16 @@ hero:
1717
alt: ast-grep
1818
actions:
1919
- theme: brand
20-
text: Get Started
21-
link: /guide/introduction
20+
text: Quickstart
21+
link: /guide/quick-start.html
2222
- theme: alt
23-
text: View on GitHub
23+
text: Introduction
24+
link: /guide/introduction.html
25+
- theme: alt
26+
text: Examples
27+
link: /catalog/
28+
- theme: alt
29+
text: GitHub
2430
link: https://github.com/ast-grep/ast-grep
2531

2632
features:

0 commit comments

Comments
 (0)