Skip to content
This repository was archived by the owner on Mar 14, 2023. It is now read-only.

Commit 03102a8

Browse files
author
Bernhard Grünewaldt
committed
fix
1 parent 5fa212d commit 03102a8

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

book/plugin.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
/* nothing here yet */
1+
.emoji {
2+
width: 1.5em;
3+
height: 1.5em;
4+
display: inline-block;
5+
margin-bottom: -0.25em;
6+
background-size: contain;
7+
}

index.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
module.exports = {
22
website: {
3-
assets: "./book",
4-
js: [
5-
"book.js"
6-
],
3+
assets: "./node_modules/emojify.js/dist/images/basic/",
4+
js: [ ],
75
css: [
8-
"book.css"
6+
"./book/plugin.css"
97
]
108
},
119

1210
blocks: { },
1311

1412
hooks: {
1513
"page:before": function(page) {
16-
/*page.content = page.content.replace(/:white_check_mark:/g, "FOO");*/
1714
var emojify = require("emojify.js");
15+
emojify.setConfig({img_dir : '/gitbook/plugins/gitbook-plugin-advanced-emoji/'});
1816
page.content = emojify.replace(page.content);
1917
return page;
2018
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "gitbook-plugin-advanced-emoji",
33
"description": "Shows the common emojis used on GitHub",
44
"main": "index.js",
5-
"version": "0.0.4",
5+
"version": "0.0.5",
66
"engines": {
77
"gitbook": ">=2.5.0"
88
},

0 commit comments

Comments
 (0)