diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..6186704
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "assets/js/prism"]
+ path = assets/js/prism
+ url = https://git.kmx.io/kmx.io/prism.js.git
diff --git a/assets/js/app.js b/assets/js/app.js
index c8f2597..e57a3f6 100644
--- a/assets/js/app.js
+++ b/assets/js/app.js
@@ -3,8 +3,7 @@ window.$ = $;
window.jQuery = $;
import "bootstrap";
-import "../vendor/prism";
-
+import "./prism/prism";
import "./repository";
import "./kmx_anim";
diff --git a/assets/js/prism b/assets/js/prism
new file mode 160000
index 0000000..e3e5d2a
--- /dev/null
+++ b/assets/js/prism
@@ -0,0 +1 @@
+Subproject commit e3e5d2a9f2cf799f1e435961e5253a9016f69237
diff --git a/assets/package-lock.json b/assets/package-lock.json
index 65d52f7..e91a175 100644
--- a/assets/package-lock.json
+++ b/assets/package-lock.json
@@ -9,9 +9,12 @@
"@popperjs/core": "^2.11.8",
"bootstrap": "^5.3.2",
"jquery": "^3.7.1",
- "prismjs": "^1.29.0"
+ "phoenix_html": "file:../deps/phoenix_html"
}
},
+ "../deps/phoenix_html": {
+ "version": "3.3.3"
+ },
"node_modules/@popperjs/core": {
"version": "2.11.8",
"resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz",
@@ -44,13 +47,9 @@
"resolved": "https://registry.npmjs.org/jquery/-/jquery-3.7.1.tgz",
"integrity": "sha512-m4avr8yL8kmFN8psrbFFFmB/If14iN5o9nw/NgnnM+kybDJpRsAynV2BsfpTYrTRysYUdADVD7CkUUizgkpLfg=="
},
- "node_modules/prismjs": {
- "version": "1.29.0",
- "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.29.0.tgz",
- "integrity": "sha512-Kx/1w86q/epKcmte75LNrEoT+lX8pBpavuAbvJWRXar7Hz8jrtF+e3vY751p0R8H9HdArwaCTNDDzHg/ScJK1Q==",
- "engines": {
- "node": ">=6"
- }
+ "node_modules/phoenix_html": {
+ "resolved": "../deps/phoenix_html",
+ "link": true
}
}
}
diff --git a/assets/package.json b/assets/package.json
index 4143919..7b4c34f 100644
--- a/assets/package.json
+++ b/assets/package.json
@@ -6,6 +6,6 @@
"@popperjs/core": "^2.11.8",
"bootstrap": "^5.3.2",
"jquery": "^3.7.1",
- "prismjs": "^1.29.0"
+ "phoenix_html": "file:../deps/phoenix_html"
}
}