Skip to content

Commit d9ca7c1

Browse files
committed
feat: add tluma configuration script and update documentation deployment command
1 parent cd0afa6 commit d9ca7c1

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

adminforth/documentation/docusaurus.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ const config: Config = {
2828
{
2929
src: '/scripts/adminforth.js',
3030
},
31+
{
32+
src: '/scripts/tluma-config.js',
33+
},
34+
{
35+
src: 'https://tluma.ai/widget.js',
36+
async: true,
37+
},
3138
],
3239

3340
// Even if you don't use internationalization, you can use this field to set
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
window.tlumaConfig = {
2+
repo: "devforth/adminforth", // required: "owner/repo" from GitHub
3+
theme: "auto", // "dark" | "light" | "auto"
4+
brandColor: "blue", // "blue" | "red" | "orange" | "green" | "slate"
5+
button: "bottom-right", // "bottom-right" | "bottom-left" | "top-right" | "top-left" | "hidden"
6+
edgePadding: "1rem", // any CSS length, e.g. "16px" or "1rem"
7+
autoOpen: false, // true | false
8+
};

adminforth/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"build": "rm -rf dist && tsc && pnpm prepareDist",
1919
"--comment-prepareDist": "-rl allows supply the spa without symlinks which allows to not include source code in the package",
2020
"prepareDist": "cp -rL spa dist/",
21-
"rollout-doc": "cd documentation && pnpm build && pnpm deploy",
21+
"rollout-doc": "cd documentation && pnpm build && pnpm run deploy",
2222
"docs": "typedoc",
2323
"--comment_postinstall": "postinstall executed after package installed in other project package and when we do pnpm i in the package",
2424
"postinstall": "node scripts/postinstall.js"

0 commit comments

Comments
 (0)