@compiiile/compiiile 2.2.2 → 2.3.0

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.
@@ -22,7 +22,7 @@
22
22
  --highlight-color: #9985fe;
23
23
  --link-color: var(--highlight-color);
24
24
  --blockquote-background-color: rgba(153, 133, 254, 0.1);
25
- --blockquote-border-color: var(--highlight-color);
25
+ --blockquote-border-color: hsl(247, 26%, 30%);
26
26
  --table-border-color: var(--separator-color);
27
27
  --table-odd-lines-background-color: var(--code-background-color);
28
28
  --table-even-lines-background-color: #262a33;
package/README.md CHANGED
@@ -244,6 +244,10 @@ import Test from "./Test.vue"
244
244
 
245
245
  You should use [Astro's client directives](https://docs.astro.build/en/reference/directives-reference/#client-directives) to load your component's script.
246
246
 
247
+ ## Common issues
248
+
249
+ - Make sure that the absolute path to the folder where you are running Compiiile doesn't contain any special character as it could prevent the project initialization.
250
+
247
251
  ## Special thanks
248
252
 
249
253
  - [Astro](https://github.com/withastro/astro) for enabling us developers to make lightweight websites
package/bin/config.js CHANGED
@@ -83,7 +83,7 @@ const astroConfig = {
83
83
  srcDir: new URL("../.compiiile/src", import.meta.url).pathname,
84
84
  outDir: path.join(source, argv.dest || ".compiiile/dist"),
85
85
  ...(argv.logo ? { publicDir } : {}),
86
- integrations: [vue({ appEntrypoint: "/src/app.js" }), mdx(), ...(configFromFile.integrations ?? [])],
86
+ integrations: [vue({ appEntrypoint: "/src/app.js" }), ...(configFromFile.integrations ?? []), mdx()],
87
87
  vite: {
88
88
  plugins: [compiiile()],
89
89
  resolve: {
@@ -29,7 +29,7 @@ export default function rehypeImagePlugin() {
29
29
  const parsedAltValue = processImageNode(node.properties?.alt)
30
30
  if (parsedAltValue) {
31
31
  node.properties.style = buildImageStyleAttribute(parsedAltValue)
32
- node.properties.alt = parsedAltValue.altValue
32
+ node.properties.alt = parsedAltValue.altValue ?? node.properties?.alt
33
33
  }
34
34
  }
35
35
  })
@@ -43,7 +43,7 @@ export default function rehypeImagePlugin() {
43
43
  type: "mdxJsxAttribute",
44
44
  value: buildImageStyleAttribute(parsedAltValue)
45
45
  })
46
- alt.value = parsedAltValue.altValue
46
+ alt.value = parsedAltValue.altValue ?? alt?.value
47
47
  }
48
48
  }
49
49
  })
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@compiiile/compiiile",
3
3
  "private": false,
4
- "version": "2.2.2",
4
+ "version": "2.3.0",
5
5
  "description": "The most convenient way to render a folder containing markdown files. Previewing and searching markdown files has never been that easy.",
6
6
  "author": "AlbanCrepel <alban.crepel@gmail.com>",
7
7
  "license": "GPL-3.0-only",
@@ -21,14 +21,14 @@
21
21
  "url": "git+https://github.com/AlbanCrepel/compiiile.git"
22
22
  },
23
23
  "dependencies": {
24
- "@astrojs/mdx": "^2.0.3",
24
+ "@astrojs/mdx": "^2.1.1",
25
25
  "@astrojs/vue": "^4.0.8",
26
26
  "@babel/core": "^7.0.0-0",
27
27
  "@babel/eslint-parser": "^7.22.15",
28
28
  "@fontsource-variable/archivo": "^5.0.16",
29
29
  "@fontsource-variable/dm-sans": "^5.0.3",
30
30
  "@fontsource-variable/jetbrains-mono": "^5.0.18",
31
- "astro": "^4.1.1",
31
+ "astro": "^4.3.3",
32
32
  "astro-seo": "^0.8.0",
33
33
  "eslint": "^8.51.0",
34
34
  "eslint-config-prettier": "^9.0.0",
@@ -46,8 +46,8 @@
46
46
  "slugify": "^1.6.6",
47
47
  "uuid": "^9.0.1",
48
48
  "vfile-matter": "^5.0.0",
49
- "vite": "^5.0.10",
50
- "vue": "^3.4.5",
49
+ "vite": "^5.0.12",
50
+ "vue": "^3.4.15",
51
51
  "yargs": "^17.7.2",
52
52
  "zod": "^3.22.3"
53
53
  },
@@ -30,7 +30,7 @@ console.log("I prefer using this than the actual debugger")
30
30
 
31
31
  I forgot to showcase once again the poorly-designed logo of Compiiile:
32
32
 
33
- ![|200px](./.compiiile/public/favicon.png)
33
+ ![compiiile-logo|200px](./.compiiile/public/favicon.png)
34
34
 
35
35
  (it's using a nice font though)
36
36