Skip to content

Commit

Permalink
docs: add warn for bundled tags which deleted in v7.0.0 (#1948)
Browse files Browse the repository at this point in the history
* docs: add warn for bundled tags which deleted in `v7.0.0`

* plugin: add hexo-tag-embed

Co-authored-by: yoshinorin <[email protected]>

* Update source/docs/tag-plugins.md

Co-authored-by: Sukka <[email protected]>

---------

Co-authored-by: uiolee <[email protected]>
Co-authored-by: Sukka <[email protected]>
  • Loading branch information
3 people authored Nov 1, 2023
1 parent af86a90 commit 64dcab5
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 16 deletions.
6 changes: 6 additions & 0 deletions source/_data/plugins/hexo-tag-embed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
description: Embed tags (Gists, Viemo, jsFiddle, Youtube) for Hexo.
link: https://github.com/hexojs/hexo-tag-embed
tags:
- official
- generator
- tag
24 changes: 20 additions & 4 deletions source/docs/tag-plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,15 +166,23 @@ content
{% endpullquote %}
```

## jsFiddle
## jsFiddle (deleted in `v7.0.0`)

{% note warn %}
The tag was removed in Hexo 7.0.0. We have provided a plugin [hexo-tag-embed](https://github.com/hexojs/hexo-tag-embed) for backward compatibility with your existing posts.
{% endnote %}

To embed a jsFiddle snippet:

```
{% jsfiddle shorttag [tabs] [skin] [width] [height] %}
```

## Gist
## Gist (deleted in `v7.0.0`)

{% note warn %}
Please use [hexo-tag-embed](https://github.com/hexojs/hexo-tag-embed) instead if you use `v7.0.0+`.
{% endnote %}

To embed a Gist snippet:

Expand Down Expand Up @@ -246,7 +254,11 @@ Inserts code snippets in `source/downloads/code` folder. The folder location can
{% include_code lang:javascript to:8 test.js %}
```

## YouTube
## YouTube (deleted in `v7.0.0`)

{% note warn %}
Please use [hexo-tag-embed](https://github.com/hexojs/hexo-tag-embed) instead if you use `v7.0.0+`.
{% endnote %}

Inserts a YouTube video.

Expand Down Expand Up @@ -277,7 +289,11 @@ YouTube's cookie is not used in this mode.
{% youtube PL9hW1uS6HUfscJ9DHkOSoOX45MjXduUxo 'playlist' false %}
```

## Vimeo
## Vimeo (deleted in `v7.0.0`)

{% note warn %}
Please use [hexo-tag-embed](https://github.com/hexojs/hexo-tag-embed) instead if you use `v7.0.0+`.
{% endnote %}

Inserts a responsive or specified size Vimeo video.

Expand Down
24 changes: 20 additions & 4 deletions source/ru/docs/tag-plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,15 +164,23 @@ content
{% endpullquote %}
```

## jsFiddle
## jsFiddle (deleted in `v7.0.0`)

{% note warn %}
Please use [hexo-tag-embed](https://github.com/hexojs/hexo-tag-embed) instead if you use `v7.0.0+`.
{% endnote %}

Размещает фрагмент с jsFiddle:

```
{% jsfiddle shorttag [tabs] [skin] [width] [height] %}
```

## Gist
## Gist (deleted in `v7.0.0`)

{% note warn %}
Please use [hexo-tag-embed](https://github.com/hexojs/hexo-tag-embed) instead if you use `v7.0.0+`.
{% endnote %}

Размещает фрагмент с Gist:

Expand Down Expand Up @@ -212,7 +220,11 @@ content
{% include_code [title] [lang:language] path/to/file %}
```

## YouTube
## YouTube (deleted in `v7.0.0`)

{% note warn %}
Please use [hexo-tag-embed](https://github.com/hexojs/hexo-tag-embed) instead if you use `v7.0.0+`.
{% endnote %}

Вставка видео с YouTube.

Expand Down Expand Up @@ -243,7 +255,11 @@ YouTube's cookie is not used in this mode.
{% youtube PL9hW1uS6HUfscJ9DHkOSoOX45MjXduUxo 'playlist' false %}
```

## Vimeo
## Vimeo (deleted in `v7.0.0`)

{% note warn %}
Please use [hexo-tag-embed](https://github.com/hexojs/hexo-tag-embed) instead if you use `v7.0.0+`.
{% endnote %}

Вставка видео с Vimeo.

Expand Down
24 changes: 20 additions & 4 deletions source/zh-cn/docs/tag-plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,15 +164,23 @@ content
{% endpullquote %}
```

## jsFiddle
## jsFiddle (deleted in `v7.0.0`)

{% note warn %}
Please use [hexo-tag-embed](https://github.com/hexojs/hexo-tag-embed) instead if you use `v7.0.0+`.
{% endnote %}

在文章中嵌入 jsFiddle。

```
{% jsfiddle shorttag [tabs] [skin] [width] [height] %}
```

## Gist
## Gist (deleted in `v7.0.0`)

{% note warn %}
Please use [hexo-tag-embed](https://github.com/hexojs/hexo-tag-embed) instead if you use `v7.0.0+`.
{% endnote %}

在文章中嵌入 Gist。

Expand Down Expand Up @@ -244,7 +252,11 @@ content
{% include_code lang:javascript to:8 test.js %}
```

## Youtube
## Youtube (deleted in `v7.0.0`)

{% note warn %}
Please use [hexo-tag-embed](https://github.com/hexojs/hexo-tag-embed) instead if you use `v7.0.0+`.
{% endnote %}

在文章中插入 Youtube 视频。

Expand Down Expand Up @@ -275,7 +287,11 @@ content
{% youtube PL9hW1uS6HUfscJ9DHkOSoOX45MjXduUxo 'playlist' false %}
```

## Vimeo
## Vimeo (deleted in `v7.0.0`)

{% note warn %}
Please use [hexo-tag-embed](https://github.com/hexojs/hexo-tag-embed) instead if you use `v7.0.0+`.
{% endnote %}

在文章中插入 Vimeo 视频。

Expand Down
24 changes: 20 additions & 4 deletions source/zh-tw/docs/tag-plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,23 @@ content
{% endpullquote %}
```

## jsFiddle
## jsFiddle (deleted in `v7.0.0`)

{% note warn %}
Please use [hexo-tag-embed](https://github.com/hexojs/hexo-tag-embed) instead if you use `v7.0.0+`.
{% endnote %}

在文章中嵌入 jsFiddle。

```
{% jsfiddle shorttag [tabs] [skin] [width] [height] %}
```

## Gist
## Gist (deleted in `v7.0.0`)

{% note warn %}
Please use [hexo-tag-embed](https://github.com/hexojs/hexo-tag-embed) instead if you use `v7.0.0+`.
{% endnote %}

在文章中嵌入 Gist。

Expand Down Expand Up @@ -208,7 +216,11 @@ content
{% include_code [title] [lang:language] path/to/file %}
```

## Youtube
## Youtube (deleted in `v7.0.0`)

{% note warn %}
Please use [hexo-tag-embed](https://github.com/hexojs/hexo-tag-embed) instead if you use `v7.0.0+`.
{% endnote %}

在文章中插入 Youtube 影片。

Expand Down Expand Up @@ -239,7 +251,11 @@ content
{% youtube PL9hW1uS6HUfscJ9DHkOSoOX45MjXduUxo 'playlist' false %}
```

## Vimeo
## Vimeo (deleted in `v7.0.0`)

{% note warn %}
Please use [hexo-tag-embed](https://github.com/hexojs/hexo-tag-embed) instead if you use `v7.0.0+`.
{% endnote %}

在文章中插入 Vimeo 影片。

Expand Down

0 comments on commit 64dcab5

Please sign in to comment.