Skip to content

Commit 6583075

Browse files
committed
docs: add heatmap extension
1 parent 85302bd commit 6583075

File tree

1 file changed

+21
-8
lines changed

1 file changed

+21
-8
lines changed

README.md

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ LeetCode and LeetCode CN are both supported.
1818
- ⚡️ Fast and global edge network - [Cloudflare Workers](https://workers.cloudflare.com/)
1919
- 🚫 No tracking, controlable cache - [Cache](#cache-default-60)
2020
- 🍀 Open source - [MIT License](./LICENSE)
21+
- ⚙️ Extended-cards: `activity`, `contest`, `heatmap`
2122

2223
It also has a [NPM package](https://www.npmjs.com/package/leetcode-card) and a [highly extensible system](./src/core/index.ts), so you can easily customize it to your needs.
2324

@@ -133,11 +134,9 @@ Hide elements on the card, it is a comma-separated list of element ids.
133134

134135
Extension, it is a comma-separated list of extension names.
135136

136-
Now there is only two notable extension: `activity` and `contest`.
137+
NOTICE: You can only use one of extended-card extensions (`activity`, `contest`, `heatmap`) at a time now, maybe they can be used together in the future.
137138

138-
NOTICE: You can only use one of `activity` and `contest` at a time now, maybe they can be used together in the future.
139-
140-
> But actually animation, font, theme, and external stylesheet are all implemented by extensions and enabled by default.
139+
> Animation, font, theme, and external stylesheet are all implemented by extensions and enabled by default.
141140
142141
Want to contribute a `nyan-cat` extension? PR is welcome!
143142

@@ -153,6 +152,12 @@ Want to contribute a `nyan-cat` extension? PR is welcome!
153152

154153
[![](https://leetcard.jacoblin.cool/lapor?ext=contest)](https://leetcard.jacoblin.cool/lapor?ext=contest)
155154

155+
```md
156+
![](https://leetcard.jacoblin.cool/lapor?ext=heatmap)
157+
```
158+
159+
[![](https://leetcard.jacoblin.cool/lapor?ext=heatmap)](https://leetcard.jacoblin.cool/lapor?ext=heatmap)
160+
156161
#### `cache` (default: `60`)
157162

158163
Cache time in seconds.
@@ -273,11 +278,9 @@ Some examples:
273278

274279
Extension, it is a comma-separated list of extension names.
275280

276-
Now there is only two notable extension: `activity` and `contest`.
277-
278-
NOTICE: You can only use one of `activity` and `contest` at a time now, maybe they can be used together in the future.
281+
NOTICE: You can only use one of extended-card extensions (`activity`, `contest`, `heatmap`) at a time now, maybe they can be used together in the future.
279282

280-
> But actually animation, font, theme, and external stylesheet are all implemented by extensions and enabled by default.
283+
> Animation, font, theme, and external stylesheet are all implemented by extensions and enabled by default.
281284
282285
Want to contribute a `nyan-cat` extension? PR is welcome!
283286

@@ -300,3 +303,13 @@ Show your contest rating history.
300303
```
301304

302305
[![Leetcode Stats](https://leetcard.jacoblin.cool/lapor?ext=contest)](https://leetcard.jacoblin.cool/lapor?ext=contest)
306+
307+
#### `heatmap`
308+
309+
Show heatmap in the past 52 weeks.
310+
311+
```md
312+
![Leetcode Stats](https://leetcard.jacoblin.cool/lapor?ext=heatmap)
313+
```
314+
315+
[![Leetcode Stats](https://leetcard.jacoblin.cool/lapor?ext=heatmap)](https://leetcard.jacoblin.cool/lapor?ext=heatmap)

0 commit comments

Comments
 (0)