Skip to content

Commit 13f4922

Browse files
committed
Merge branch 'master' of github.com:ebidel/lighthouse-badge
2 parents 1db273b + 7172bbe commit 13f4922

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

README.md

+16-4
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,21 @@ this badge in a Github readme, on your site, in a presentation,...wherever.
66
Large:
77

88
[![Lighthouse score: 100/100](https://lighthouse-badge.appspot.com/?score=100)](https://github.com/ebidel/lighthouse-badge)
9-
[![Lighthouse score: 85/100](https://lighthouse-badge.appspot.com/?score=85&category=Perf)](https://github.com/ebidel/lighthouse-badge)
109
[![Lighthouse score: 65/100](https://lighthouse-badge.appspot.com/?score=65)](https://github.com/ebidel/lighthouse-badge)
1110
[![Lighthouse score: 35/100](https://lighthouse-badge.appspot.com/?score=35)](https://github.com/ebidel/lighthouse-badge)
1211

1312

1413
Compact:
1514

1615
[![Lighthouse score: 100/100](https://lighthouse-badge.appspot.com/?score=100&compact)](https://github.com/ebidel/lighthouse-badge)
17-
[![Lighthouse score: 85/100](https://lighthouse-badge.appspot.com/?score=85&category=Perf&compact)](https://github.com/ebidel/lighthouse-badge)
1816
[![Lighthouse score: 65/100](https://lighthouse-badge.appspot.com/?score=65&compact)](https://github.com/ebidel/lighthouse-badge)
1917
[![Lighthouse score: 35/100](https://lighthouse-badge.appspot.com/?score=35&compact)](https://github.com/ebidel/lighthouse-badge)
2018

19+
Include category:
20+
21+
[![Lighthouse score: 85/100](https://lighthouse-badge.appspot.com/?score=85&category=Perf&cachebust)](https://github.com/ebidel/lighthouse-badge)
22+
[![Lighthouse score: 85/100](https://lighthouse-badge.appspot.com/?score=85&category=Perf&compact&cachebust)](https://github.com/ebidel/lighthouse-badge)
23+
2124
### Examples
2225

2326
API: `https://lighthouse-badge.appspot.com/?score=<SCORE>[&compact]`
@@ -26,28 +29,37 @@ Parameters:
2629

2730
- `score`: required. set from [0,100].
2831
- `compact`: optional. Renders smaller image instead.
29-
- `category`: optional. Specify an report section label (e.g. "PWA", "Perf", "A11y").
32+
- `category`: optional. Specify a report section label (e.g. "PWA", "Perf", "A11y", "Best Practices")
3033

3134
Markdown
3235

3336
```
3437
[![Lighthouse score: 100/100](https://lighthouse-badge.appspot.com/?score=100)](https://github.com/ebidel/lighthouse-badge)
38+
```
3539

36-
[![Lighthouse score: 85/100](https://lighthouse-badge.appspot.com/?score=65&compact&category=PWA)](https://github.com/ebidel/lighthouse-badge)```
40+
```
41+
[![Lighthouse score: 85/100](https://lighthouse-badge.appspot.com/?score=85&compact&category=PWA)](https://github.com/ebidel/lighthouse-badge)
42+
```
3743

44+
```
3845
[![Lighthouse score: 65/100](https://lighthouse-badge.appspot.com/?score=65&compact)](https://github.com/ebidel/lighthouse-badge)
46+
```
3947

4048
HTML
4149

4250
```
4351
<a href="https://github.com/ebidel/lighthouse-badge" target="_blank">
4452
<img src="https://lighthouse-badge.appspot.com?score=100">
4553
</a>
54+
```
4655

56+
```
4757
<a href="https://github.com/ebidel/lighthouse-badge" target="_blank">
4858
<img src="https://lighthouse-badge.appspot.com?score=85&category=PWA">
4959
</a>
60+
```
5061

62+
```
5163
<a href="https://github.com/ebidel/lighthouse-badge" target="_blank">
5264
<img src="https://lighthouse-badge.appspot.com?score=165&compact">
5365
</a>

public/examples.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<p><img src="/?score=35"> <code>&lt;img src="https://lighthouse-badge.appspot.com?score=35"></code></p>
1515
<p><img src="/?score=65"> <code>&lt;img src="https://lighthouse-badge.appspot.com?score=65"></code></p>
16-
<p><img src="/?score=95"><code>&lt;img src="https://lighthouse-badge.appspot.com?score=95"></code>></p>
16+
<p><img src="/?score=95"> <code>&lt;img src="https://lighthouse-badge.appspot.com?score=95"></code></p>
1717

1818
<p><img src="/?score=95&category=PWA"><code>&lt;img src="https://lighthouse-badge.appspot.com?score=95&category=PWA"></code></p>
1919

@@ -88,4 +88,4 @@
8888
})();
8989
</script> -->
9090
</body>
91-
</html>
91+
</html>

0 commit comments

Comments
 (0)