Skip to content

Commit 64e58ac

Browse files
authored
Update themes.md
1 parent 8527da7 commit 64e58ac

File tree

1 file changed

+29
-18
lines changed

1 file changed

+29
-18
lines changed

themes.md

Lines changed: 29 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,41 @@
1-
# Themes
1+
# Temas
22

3-
Actualmente hay tres diseños (o themes) disponibles. Copie el diseño personalizado del sitio web de [Vue](//vuejs.org) o [buble](//buble.surge.sh) o la contribución de [@liril-net](https://github.com/liril-net) al diseño del estilo negro.
3+
Hay varios temas disponibles, tanto oficiales como creados por la comunidad. Copia el tema personalizado de sitios web como [Vue](//vuejs.org) y [buble](//buble.surge.sh), y la contribución de [@liril-net](https://github.com/liril-net) al tema de estilo oscuro.
44

5+
<!-- prettier-ignore-start -->
56
```html
6-
<link rel="stylesheet" href="//unpkg.com/docsify/themes/vue.css">
7-
<link rel="stylesheet" href="//unpkg.com/docsify/themes/buble.css">
8-
<link rel="stylesheet" href="//unpkg.com/docsify/themes/dark.css">
9-
<link rel="stylesheet" href="//unpkg.com/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" />
11+
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/themes/dolphin.css" />
1012
```
13+
<!-- prettier-ignore-end -->
1114

1215
!> Los archivos comprimidos están disponibles en `/lib/themes/`.
1316

17+
<!-- prettier-ignore-start -->
1418
```html
15-
<!-- compressed -->
19+
<!-- comprimido -->
1620

17-
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/vue.css">
18-
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/buble.css">
19-
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/dark.css">
20-
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/pure.css">
21+
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/vue.css" />
22+
<link relstylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/buble.css" />
23+
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/dark.css" />
24+
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/pure.css" />
25+
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/dolphin.css" />
2126
```
27+
<!-- prettier-ignore-end -->
2228
23-
Si tiene alguna idea o desea desarrollar un nuevo diseño, puede enviar un [pull request](https://github.com/QingWei-Li/docsify/pulls).
29+
Si tienes ideas o deseas desarrollar un nuevo tema, puedes enviar una [solicitud de extracción (pull request)](https://github.com/docsifyjs/docsify/pulls).
2430
25-
#### Clic para previsualizar
31+
#### Haz clic para previsualizar
2632
2733
<div class="demo-theme-preview">
2834
<a data-theme="vue">vue.css</a>
2935
<a data-theme="buble">buble.css</a>
3036
<a data-theme="dark">dark.css</a>
3137
<a data-theme="pure">pure.css</a>
38+
<a data-theme="dolphin">dolphin.css</a>
3239
</div>
3340
3441
<style>
@@ -43,14 +50,18 @@ Si tiene alguna idea o desea desarrollar un nuevo diseño, puede enviar un [pull
4350
</style>
4451
4552
<script>
46-
var preview = Docsify.dom.find('.demo-theme-preview');
47-
var themes = Docsify.dom.findAll('[rel="stylesheet"]');
53+
const preview = Docsify.dom.find('.demo-theme-preview');
54+
const themes = Docsify.dom.findAll('[rel="stylesheet"]');
4855
4956
preview.onclick = function (e) {
50-
var title = e.target.getAttribute('data-theme')
57+
const title = e.target.getAttribute('data-theme');
5158
52-
themes.forEach(function (theme) {
53-
theme.disabled = theme.title !== title
59+
themes.forEach(theme => {
60+
theme.disabled = theme.title !== title;
5461
});
5562
};
5663
</script>
64+
65+
## Otros temas
66+
67+
- [docsify-themeable](https://jhildenbiddle.github.io/docsify-themeable/#/) Un sistema de temas maravillosamente simple para docsify.

0 commit comments

Comments
 (0)