Skip to content
代码片段 群组 项目
未验证 提交 d82bfd70 编辑于 作者: Michael Lunøe's avatar Michael Lunøe 提交者: GitLab
浏览文件

Docs(Emoji): update instructions to tanuki_emoji

This MR updates the emoji instructions to point to `tanuki_emoji` as
well as including links to its available Rake tasks.

https://gitlab.com/gitlab-org/ruby/gems/tanuki_emoji
doc/development/rake_tasks.md
https://github.com/bonusly/gemojione
https://gitlab.com/gitlab-org/gitlab/-/issues/429653#note_1931385720
上级 a138a64e
No related branches found
No related tags found
无相关合并请求
......@@ -6,21 +6,24 @@ info: Any user with at least the Maintainer role can merge updates to this conte
# Emojis
GitLab supports native Unicode emojis and falls back to image-based emojis selectively
when your platform does not support it.
GitLab supports native Emojis through the [`tanuki_emoji`](https://gitlab.com/gitlab-org/ruby/gems/tanuki_emoji) gem.
NOTE:
[`tanuki_emoji`](https://gitlab.com/gitlab-org/ruby/gems/tanuki_emoji) gem has replaced [`gemojione`](https://github.com/bonusly/gemojione). See [more information here](https://gitlab.com/gitlab-org/gitlab/-/issues/429653#note_1931385720).
## How to update Emojis
1. Update the `gemojione` gem
1. Update the [`tanuki_emoji`](https://gitlab.com/gitlab-org/ruby/gems/tanuki_emoji) gem.
1. Update `fixtures/emojis/index.json` from [Gemojione](https://github.com/bonusly/gemojione/blob/master/config/index.json).
In the future, we could grab the file directly from the gem.
We should probably make a PR on the Gemojione project to get access to
all emojis after being parsed or just a raw path to the `json` file itself.
1. Ensure [`emoji-unicode-version`](https://www.npmjs.com/package/emoji-unicode-version)
is up to date with the latest version.
1. Run `bundle exec rake gemojione:aliases`
1. Run `bundle exec rake gemojione:digests`
1. Run `bundle exec rake gemojione:sprite`
1. Use the [`tanuki_emoji`](https://gitlab.com/gitlab-org/ruby/gems/tanuki_emoji) gem's [Rake tasks](../rake_tasks.md) to update aliases, digests, and sprites:
1. Run `bundle exec rake tanuki_emoji:aliases`
1. Run `bundle exec rake tanuki_emoji:digests`
1. Run `bundle exec rake tanuki_emoji:sprite`
1. Ensure new sprite sheets generated for 1x and 2x
- `app/assets/images/emoji.png`
- `app/assets/images/emoji@2x.png`
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册