|
2 | 2 |
|
3 | 3 | There is a handful of themes available, both official and community-made. Copy [Vue](//vuejs.org) and [buble](//buble.surge.sh) website custom theme and [@liril-net](https://github.com/liril-net) contribution to the theme of the black style.
|
4 | 4 |
|
| 5 | +<!-- prettier-ignore-start --> |
5 | 6 | ```html
|
6 |
| -<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/themes/vue.css"> |
7 |
| -<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/themes/buble.css"> |
8 |
| -<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/themes/dark.css"> |
9 |
| -<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/themes/pure.css"> |
| 7 | +<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/themes/vue.css" /> |
| 8 | +<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/themes/buble.css" /> |
| 9 | +<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/themes/dark.css" /> |
| 10 | +<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/themes/pure.css" /> |
10 | 11 | ```
|
| 12 | +<!-- prettier-ignore-end --> |
11 | 13 |
|
12 | 14 | !> Compressed files are available in `/lib/themes/`.
|
13 | 15 |
|
| 16 | +<!-- prettier-ignore-start --> |
14 | 17 | ```html
|
15 | 18 | <!-- compressed -->
|
16 | 19 |
|
17 |
| -<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/vue.css"> |
18 |
| -<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/buble.css"> |
19 |
| -<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/dark.css"> |
20 |
| -<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/pure.css"> |
| 20 | +<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/vue.css" /> |
| 21 | +<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/buble.css" /> |
| 22 | +<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/dark.css" /> |
| 23 | +<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/pure.css" /> |
21 | 24 | ```
|
| 25 | +<!-- prettier-ignore-end --> |
22 | 26 |
|
23 | 27 | If you have any ideas or would like to develop a new theme, you are welcome to submit a [pull request](https://github.com/docsifyjs/docsify/pulls).
|
24 | 28 |
|
@@ -47,10 +51,10 @@ If you have any ideas or would like to develop a new theme, you are welcome to s
|
47 | 51 | var themes = Docsify.dom.findAll('[rel="stylesheet"]');
|
48 | 52 |
|
49 | 53 | preview.onclick = function (e) {
|
50 |
| - var title = e.target.getAttribute('data-theme') |
| 54 | + var title = e.target.getAttribute('data-theme'); |
51 | 55 |
|
52 | 56 | themes.forEach(function (theme) {
|
53 |
| - theme.disabled = theme.title !== title |
| 57 | + theme.disabled = theme.title !== title; |
54 | 58 | });
|
55 | 59 | };
|
56 | 60 | </script>
|
|
0 commit comments