Skip to content

Commit 028b58c

Browse files
committed
improve readme style
1 parent d0d5a53 commit 028b58c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ yarn add --dev husky @hkdobrev/run-if-changed
4646
### Set up Git hooks
4747

4848
<details open>
49-
<summary><b>Using [Husky](https://typicode.github.io/husky/)</b></summary>
49+
<summary><b>Using <a href="https://typicode.github.io/husky/">Husky</a></b></summary>
5050

5151
```shell
5252
echo "npm run run-if-changed" > .husky/post-commit
@@ -56,13 +56,15 @@ echo "npm run run-if-changed" > .husky/post-rewrite
5656
```
5757

5858
<details>
59-
<summary><b>Pure Git hooks:</b></summary>
59+
<summary><b>Pure Git hooks</b></summary>
60+
6061
```shell
6162
echo "npm run run-if-changed" >> .git/hooks/post-commit && chmod +x .git/hooks/post-commit
6263
echo "npm run run-if-changed" >> .git/hooks/post-checkout && chmod +x .git/hooks/post-checkout
6364
echo "npm run run-if-changed" >> .git/hooks/post-merge && chmod +x .git/hooks/post-merge
6465
echo "npm run run-if-changed" >> .git/hooks/post-rewrite && chmod +x .git/hooks/post-rewrite
6566
```
67+
6668
</details>
6769

6870
## Why
@@ -106,7 +108,7 @@ If you use a dependency manager with a lock file like npm, Yarn, Composer, Bundl
106108
Here's example configuration of `run-if-changed`:
107109

108110
<details open>
109-
<summary><b>npm:</b></summary>
111+
<summary><b>npm</b></summary>
110112

111113
`package.json`:
112114

@@ -152,7 +154,7 @@ Here's example configuration of `run-if-changed`:
152154
</details>
153155

154156
<details>
155-
<summary><b>Composer:</b></summary>
157+
<summary><b>Composer</b></summary>
156158

157159
`package.json`:
158160

@@ -167,7 +169,7 @@ Here's example configuration of `run-if-changed`:
167169
</details>
168170

169171
<details>
170-
<summary><b>Bundler:</b></summary>
172+
<summary><b>Bundler</b></summary>
171173

172174
`package.json`:
173175

0 commit comments

Comments
 (0)