Skip to content

Commit

Permalink
[docs] Fix bash comments (#15571)
Browse files Browse the repository at this point in the history
Signed-off-by: Olivier Tassinari <olivier.tassinari@gmail.com>
Co-authored-by: Sycamore <71297412+samuelsycamore@users.noreply.github.com>
  • Loading branch information
oliviertassinari and samuelsycamore authored Nov 25, 2024
1 parent 14f1f78 commit 394f9e2
Show file tree
Hide file tree
Showing 11 changed files with 35 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ You can either run it on a specific file, folder, or your entire codebase when c
<!-- #default-branch-switch -->

```bash
// Charts specific
# Charts-specific
npx @mui/x-codemod@latest v8.0.0/charts/preset-safe <path>

// Target the other packages as well
# Target the other packages as well
npx @mui/x-codemod@latest v8.0.0/preset-safe <path>
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ The `preset-safe` codemod will automatically adjust the bulk of your code to acc
You can either run it on a specific file, folder, or your entire codebase when choosing the `<path>` argument.

```bash
// Data Grid specific
# Data Grid specific
npx @mui/x-codemod@latest v6.0.0/data-grid/preset-safe <path>
// Target Date and Time Pickers as well

# Target Date and Time Pickers as well
npx @mui/x-codemod@latest v6.0.0/preset-safe <path>
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ You can either run it on a specific file, folder, or your entire codebase when c
<!-- #default-branch-switch -->

```bash
// Data Grid specific
# Data Grid specific
npx @mui/x-codemod@latest v7.0.0/data-grid/preset-safe <path>

// Target other MUI X components as well
# Target other MUI X components as well
npx @mui/x-codemod@latest v7.0.0/preset-safe <path>
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ The `preset-safe` codemod will automatically adjust the bulk of your code to acc
You can either run it on a specific file, folder, or your entire codebase when choosing the `<path>` argument.

```bash
// Date and Time Pickers specific
# Date and Time Pickers specific
npx @mui/x-codemod@latest v6.0.0/pickers/preset-safe <path>
// Target Data Grid as well

# Target Data Grid as well
npx @mui/x-codemod@latest v6.0.0/preset-safe <path>
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ You can either run it on a specific file, folder, or your entire codebase when c
<!-- #default-branch-switch -->

```bash
// Date and Time Pickers specific
# Date and Time Pickers specific
npx @mui/x-codemod@latest v7.0.0/pickers/preset-safe <path>

// Target other MUI X components as well
# Target other MUI X components as well
npx @mui/x-codemod@latest v7.0.0/preset-safe <path>
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ You can either run it on a specific file, folder, or your entire codebase when c
<!-- #default-branch-switch -->

```bash
// Date and Time Pickers specific
# Date and Time Pickers specific
npx @mui/x-codemod@latest v8.0.0/pickers/preset-safe <path>

// Target the other packages as well
# Target the other packages as well
npx @mui/x-codemod@latest v8.0.0/preset-safe <path>
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ You can either run it on a specific file, folder, or your entire codebase when c
<!-- #default-branch-switch -->

```bash
// Tree View specific
# Tree View specific
npx @mui/x-codemod@latest v7.0.0/tree-view/preset-safe <path>

// Target other MUI X components as well
# Target other MUI X components as well
npx @mui/x-codemod@latest v7.0.0/preset-safe <path>
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ You can either run it on a specific file, folder, or your entire codebase when c
<!-- #default-branch-switch -->

```bash
// Tree View specific
# Tree View specific
npx @mui/x-codemod@latest v8.0.0/tree-view/preset-safe <path>

// Target the other packages as well
# Target the other packages as well
npx @mui/x-codemod@latest v8.0.0/preset-safe <path>
```

Expand Down
5 changes: 3 additions & 2 deletions packages/x-codemod/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ Examples:
To pass more options directly to jscodeshift, use `--jscodeshift=...`. For example:

```bash
// single option
# single option
npx @mui/x-codemod@next --jscodeshift=--run-in-band
// multiple options

# multiple options
npx @mui/x-codemod@next --jscodeshift=--cpus=1 --jscodeshift=--print --jscodeshift=--dry --jscodeshift=--verbose=2
```

Expand Down
11 changes: 7 additions & 4 deletions packages/x-date-pickers-pro/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,16 @@ The pickers currently support the following date libraries:
- [Moment.js](https://momentjs.com/)

```bash
// date-fns
# date-fns
npm install date-fns
// or dayjs

# or dayjs
npm install dayjs
// or luxon

# or luxon
npm install luxon
// or moment

# or moment
npm install moment
```

Expand Down
11 changes: 7 additions & 4 deletions packages/x-date-pickers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,16 @@ The pickers currently support the following date libraries:
- [Moment.js](https://momentjs.com/)

```bash
// date-fns
# date-fns
npm install date-fns
// or dayjs

# or dayjs
npm install dayjs
// or luxon

# or luxon
npm install luxon
// or moment

# or moment
npm install moment
```

Expand Down

0 comments on commit 394f9e2

Please sign in to comment.