add fonts and docs

This commit is contained in:
Valentin Boettcher 2020-04-09 16:06:36 +02:00
parent 478154405c
commit c8c4fba83a
3 changed files with 18 additions and 16 deletions

View file

@ -9,3 +9,8 @@ This extension injects KaTeX into the `Riot` chat client for
- `$$x^2$$` renders math block style - `$$x^2$$` renders math block style
- `\(x^2\)` renders math inline - `\(x^2\)` renders math inline
## Building the Extension
- make sure you have npm installed
- run `./package.sh`, the webextension will be zipped as
`katex-riot.zip` and the file structure of the extionsion is
written to the folder `katex-riot-pub` for debugging

View file

@ -1,26 +1,26 @@
{ {
"manifest_version": 2, "manifest_version": 2,
"name": "Riot KaTeX", "name": "Riot KaTeX for matrix.tu-dresden.de",
"version": "1.0", "version": "1.0.1",
"description": "Renders formulars on matrix.tu-dresden.de chats using KaTeX.",
"description": "Renders formulars in Riot chats using KaTeX.",
"icons": {
"48": "icons/border-48.png"
},
"permissions": [ "permissions": [
"activeTab" "activeTab"
], ],
"content_scripts": [ "content_scripts": [
{ {
"matches": ["*://matrix.tu-dresden.de/*"], "matches": ["*://matrix.tu-dresden.de/*"],
"js": ["node_modules/katex/dist/katex.js", "js": ["katex.min.js",
"node_modules/katex/dist/contrib/auto-render.js", "auto-render.min.js",
"node_modules/observable-slim/observable-slim.js",
"riot-katex.js"], "riot-katex.js"],
"css": ["node_modules/katex/dist/katex.css"], "css": ["katex.min.css"],
"all_frames": true, "all_frames": true,
"run_at": "document_idle" "run_at": "document_idle"
} }
],
"web_accessible_resources": [
"fonts/*.woff2"
] ]
} }

9
package-lock.json generated
View file

@ -1,6 +1,8 @@
{ {
"requires": true, "name": "riot-katex-tu-dd",
"version": "1.0.0",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true,
"dependencies": { "dependencies": {
"commander": { "commander": {
"version": "2.20.3", "version": "2.20.3",
@ -14,11 +16,6 @@
"requires": { "requires": {
"commander": "^2.19.0" "commander": "^2.19.0"
} }
},
"observable-slim": {
"version": "0.1.5",
"resolved": "https://registry.npmjs.org/observable-slim/-/observable-slim-0.1.5.tgz",
"integrity": "sha512-xhDK4EjwM6ehZ6KhTtDc0z5kqBhqoBQPP9pq2n1c+RXA4IcyLIm68ipDwS3nZVXhrCssoKu4LcHDUT1tl0kP9A=="
} }
} }
} }