Skip to content

Commit

Permalink
fix: improve doc text for better understanding
Browse files Browse the repository at this point in the history
  • Loading branch information
HerringtonDarkholme committed Jul 6, 2023
1 parent d10ed02 commit 5ae6216
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions website/src/homepage/Features.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const feats = [
{
image: '/image/search-replace.png',
title: 'Search and Rewrite',
description: 'ast-grep is a fast and lightweight tool for structural code searching and rewriting. You can write code patterns to locate and modify code in thousands of files, with interactive editing power. Use it like a syntax-aware grep!',
description: 'ast-grep is a code tool for structural search and replace. It is like syntax-aware grep/sed! You can write code patterns to locate and modify code, based on AST, in thousands of files, interactively.',
code: `sg -p '$A && $A()' -r '$A?.()'`
},
{
Expand All @@ -47,16 +47,18 @@ const feats = [
.feature {
display: flex;
flex-wrap: wrap;
justify-content: center;
width: 100%;
}
.feature > img {
flex: 1 0 50%;
width: 50%;
min-width: min(480px, 100vw);
max-width: 100vw;
max-width: min(100vw, 720px);
}
.description {
flex: 1 0 50%;
max-width: min(100vw, 720px);
display: flex;
justify-content: center;
flex-direction: column;
Expand All @@ -77,6 +79,12 @@ const feats = [
p {
text-align: justify;
}
@supports (text-wrap: balance) {
p {
text-align: center;
text-wrap: balance;
}
}
code {
border: 1px solid var(--vp-c-bg-soft);
border-radius: 12px;
Expand Down

0 comments on commit 5ae6216

Please sign in to comment.