portosaurus 1.18.1 → 1.18.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "portosaurus",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.3",
|
|
4
4
|
"author": "soymadip",
|
|
5
5
|
"license": "GPL-3.0-only",
|
|
6
6
|
"description": "Complete portfolio cum personal website solution for your digital personality.",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"exports": {
|
|
29
29
|
"./utils/*": "./src/utils/*.js",
|
|
30
30
|
"./config/*": "./src/config/*.js",
|
|
31
|
+
"./css/*": "./src/css/*.css",
|
|
31
32
|
"./internal/*": "./src/internal/src/*"
|
|
32
33
|
},
|
|
33
34
|
"bin": {
|
|
@@ -38,7 +39,8 @@
|
|
|
38
39
|
"src/internal/",
|
|
39
40
|
"src/template/",
|
|
40
41
|
"src/utils/",
|
|
41
|
-
"src/config/"
|
|
42
|
+
"src/config/",
|
|
43
|
+
"src/css/"
|
|
42
44
|
],
|
|
43
45
|
"dependencies": {
|
|
44
46
|
"@docusaurus/core": "^3.9.2",
|
|
@@ -50,7 +52,6 @@
|
|
|
50
52
|
"favicons": "^7.2.0",
|
|
51
53
|
"fs-extra": "^11.3.3",
|
|
52
54
|
"plugin-image-zoom": "github:flexanalytics/plugin-image-zoom",
|
|
53
|
-
"portosaurus": "^1.18.0",
|
|
54
55
|
"prism-react-renderer": "^2.4.1",
|
|
55
56
|
"prompts": "^2.4.2",
|
|
56
57
|
"react": "^18.3.1",
|
package/src/utils/cssUtils.js
CHANGED
|
@@ -14,6 +14,13 @@ const varCache = new Map();
|
|
|
14
14
|
const DEBUG = false;
|
|
15
15
|
|
|
16
16
|
function getCssVar(varName) {
|
|
17
|
+
|
|
18
|
+
// Find variable in CSS files
|
|
19
|
+
const cssFiles = [
|
|
20
|
+
path.resolve(__dirname, "../css/custom.css"),
|
|
21
|
+
path.resolve(__dirname, "../css/catppuccin.css"),
|
|
22
|
+
];
|
|
23
|
+
|
|
17
24
|
// Return cached value if exists
|
|
18
25
|
if (varCache.has(varName)) {
|
|
19
26
|
DEBUG &&
|
|
@@ -25,12 +32,6 @@ function getCssVar(varName) {
|
|
|
25
32
|
|
|
26
33
|
DEBUG && console.log(`[CSS-DEBUG] Looking for CSS variable: ${varName}`);
|
|
27
34
|
|
|
28
|
-
// Try to find variable in CSS files
|
|
29
|
-
const cssFiles = [
|
|
30
|
-
path.resolve(__dirname, "../internal/src/css/custom.css"),
|
|
31
|
-
path.resolve(__dirname, "../internal/src/css/catppuccin.css"),
|
|
32
|
-
];
|
|
33
|
-
|
|
34
35
|
for (const cssPath of cssFiles) {
|
|
35
36
|
try {
|
|
36
37
|
DEBUG && console.log(`[CSS-DEBUG] Checking file: ${cssPath}`);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|