From c8c4fba83a40528388da3327be4c364a6142938d Mon Sep 17 00:00:00 2001 From: Valentin Boettcher Date: Thu, 9 Apr 2020 16:06:36 +0200 Subject: [PATCH] add fonts and docs --- README.md | 5 +++++ manifest.json | 20 ++++++++++---------- package-lock.json | 9 +++------ 3 files changed, 18 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 25fb43c..9224bed 100644 --- a/README.md +++ b/README.md @@ -9,3 +9,8 @@ This extension injects KaTeX into the `Riot` chat client for - `$$x^2$$` renders math block style - `\(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 diff --git a/manifest.json b/manifest.json index 84edb28..c4de7c8 100644 --- a/manifest.json +++ b/manifest.json @@ -1,26 +1,26 @@ { "manifest_version": 2, - "name": "Riot KaTeX", - "version": "1.0", + "name": "Riot KaTeX for matrix.tu-dresden.de", + "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": [ "activeTab" ], "content_scripts": [ { "matches": ["*://matrix.tu-dresden.de/*"], - "js": ["node_modules/katex/dist/katex.js", - "node_modules/katex/dist/contrib/auto-render.js", - "node_modules/observable-slim/observable-slim.js", + "js": ["katex.min.js", + "auto-render.min.js", "riot-katex.js"], - "css": ["node_modules/katex/dist/katex.css"], + "css": ["katex.min.css"], "all_frames": true, "run_at": "document_idle" } + ], + "web_accessible_resources": [ + "fonts/*.woff2" ] } diff --git a/package-lock.json b/package-lock.json index d0bc1fa..364916e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,8 @@ { - "requires": true, + "name": "riot-katex-tu-dd", + "version": "1.0.0", "lockfileVersion": 1, + "requires": true, "dependencies": { "commander": { "version": "2.20.3", @@ -14,11 +16,6 @@ "requires": { "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==" } } }