@compiiile/compiiile 2.20.1 → 2.21.1
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/.compiiile/src/components/SlidesContent.vue +4 -0
- package/.compiiile/src/components/layout/ThemeSwitcher.vue +1 -0
- package/.compiiile/src/layouts/BaseLayout.astro +2 -2
- package/.compiiile/src/layouts/SlidesLayout.astro +1 -1
- package/.compiiile/src/layouts/WorkspaceLayout.astro +1 -1
- package/bin/loadConfig.js +1 -1
- package/package.json +17 -17
|
@@ -68,6 +68,10 @@
|
|
|
68
68
|
})
|
|
69
69
|
|
|
70
70
|
Reveal.slide(new URLSearchParams(window.location.search).get("slide") || 0)
|
|
71
|
+
|
|
72
|
+
// Useful for custom plugins to know when the slides are ready
|
|
73
|
+
window.compiiileSlidesReady = true
|
|
74
|
+
document.dispatchEvent(new CustomEvent("compiiile-slides-ready", { detail: { deck: Reveal } }))
|
|
71
75
|
}
|
|
72
76
|
}
|
|
73
77
|
</script>
|
|
@@ -3,7 +3,7 @@ import ThemeLoader from "./ThemeLoader.astro";
|
|
|
3
3
|
import NavBarFoldersStateLoader from "./NavBarFoldersStateLoader.astro";
|
|
4
4
|
import '../utils/styles.js'
|
|
5
5
|
import {SEO} from "astro-seo"
|
|
6
|
-
const {title, description, isNotFoundPage} = Astro.props
|
|
6
|
+
const {title, description, isNotFoundPage, layoutType} = Astro.props
|
|
7
7
|
import { site } from "virtual:compiiile"
|
|
8
8
|
const titleTemplate = site.title ? `%s | ${ site.title }` : ''
|
|
9
9
|
const siteUrl = site.siteUrl || Astro.url.origin
|
|
@@ -19,7 +19,7 @@ const metaDescription = description || site.description
|
|
|
19
19
|
const defaultTheme = site.theme
|
|
20
20
|
---
|
|
21
21
|
|
|
22
|
-
<html lang="en">
|
|
22
|
+
<html lang="en" class:list={[`layout--${layoutType}`]}>
|
|
23
23
|
<head>
|
|
24
24
|
<meta charset="utf-8">
|
|
25
25
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
@@ -4,7 +4,7 @@ import BaseLayout from "./BaseLayout.astro";
|
|
|
4
4
|
const { title, description, textAlign } = Astro.props
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
<BaseLayout title={ title } description={ description } isNotFoundPage={ false }>
|
|
7
|
+
<BaseLayout title={ title } description={ description } isNotFoundPage={ false } layoutType="slides">
|
|
8
8
|
<SlidesContent client:load textAlign={textAlign}>
|
|
9
9
|
<slot></slot>
|
|
10
10
|
</SlidesContent>
|
|
@@ -12,7 +12,7 @@ if(currentPath.length > 1 && currentPath.endsWith("/")){
|
|
|
12
12
|
---
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
<BaseLayout title={ title } description={ description } isNotFoundPage={ isNotFoundPage }>
|
|
15
|
+
<BaseLayout title={ title } description={ description } isNotFoundPage={ isNotFoundPage } layoutType="workspace">
|
|
16
16
|
<div class="page">
|
|
17
17
|
<TopBar client:load />
|
|
18
18
|
|
package/bin/loadConfig.js
CHANGED
|
@@ -19,8 +19,8 @@ export const loadConfig = async () => {
|
|
|
19
19
|
3. default config as fallback
|
|
20
20
|
*/
|
|
21
21
|
let configFromFile = {}
|
|
22
|
-
let compiiileConfig = {}
|
|
23
22
|
try {
|
|
23
|
+
let compiiileConfig = {}
|
|
24
24
|
compiiileConfig = await loadConfigFile({
|
|
25
25
|
name: process.env.COMPIIILE_TEMP_CONFIG_NAME || "compiiile",
|
|
26
26
|
cwd: process.env.COMPIIILE_TEMP_DIR || source
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@compiiile/compiiile",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.21.1",
|
|
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,24 +21,24 @@
|
|
|
21
21
|
"url": "git+https://github.com/compiiile/compiiile.git"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@astrojs/markdown-remark": "^7.2.
|
|
25
|
-
"@astrojs/mdx": "^7.0.
|
|
24
|
+
"@astrojs/markdown-remark": "^7.2.2",
|
|
25
|
+
"@astrojs/mdx": "^7.0.5",
|
|
26
26
|
"@astrojs/sitemap": "^3.7.3",
|
|
27
|
-
"@astrojs/vue": "^7.0.
|
|
28
|
-
"@babel/core": "^
|
|
29
|
-
"@babel/eslint-parser": "^
|
|
30
|
-
"@babel/parser": "^
|
|
31
|
-
"@compiiile/compiiile-print": "
|
|
32
|
-
"@eslint/compat": "^1.
|
|
33
|
-
"@eslint/js": "^
|
|
34
|
-
"@fontsource-variable/archivo": "^5.
|
|
35
|
-
"@fontsource-variable/dm-sans": "^5.
|
|
36
|
-
"@fontsource-variable/jetbrains-mono": "^5.
|
|
27
|
+
"@astrojs/vue": "^7.0.2",
|
|
28
|
+
"@babel/core": "^8.0.1",
|
|
29
|
+
"@babel/eslint-parser": "^8.0.1",
|
|
30
|
+
"@babel/parser": "^8.0.4",
|
|
31
|
+
"@compiiile/compiiile-print": "1.1.1",
|
|
32
|
+
"@eslint/compat": "^2.1.0",
|
|
33
|
+
"@eslint/js": "^10.0.1",
|
|
34
|
+
"@fontsource-variable/archivo": "^5.3.0",
|
|
35
|
+
"@fontsource-variable/dm-sans": "^5.3.0",
|
|
36
|
+
"@fontsource-variable/jetbrains-mono": "^5.3.0",
|
|
37
37
|
"@phosphor-icons/web": "^2.1.2",
|
|
38
|
-
"astro": "^7.
|
|
38
|
+
"astro": "^7.2.2",
|
|
39
39
|
"astro-seo": "^1.1.0",
|
|
40
40
|
"c12": "^3.3.4",
|
|
41
|
-
"eslint": "^
|
|
41
|
+
"eslint": "^10.8.1",
|
|
42
42
|
"eslint-config-prettier": "^10.1.8",
|
|
43
43
|
"eslint-plugin-vue": "^10.6.2",
|
|
44
44
|
"estree-walker": "^3.0.3",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"typescript": "^5.9.3",
|
|
60
60
|
"uuid": "^13.0.0",
|
|
61
61
|
"vfile-matter": "^5.0.1",
|
|
62
|
-
"vite": "^8.1
|
|
63
|
-
"vue": "^3.5.
|
|
62
|
+
"vite": "^8.2.1",
|
|
63
|
+
"vue": "^3.5.41",
|
|
64
64
|
"yargs": "^18.0.0",
|
|
65
65
|
"zod": "^3.25.76"
|
|
66
66
|
},
|