@lincyaw/workspace 1.0.0-rc.3 → 1.0.0-rc.5
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 +5 -5
- package/src/node/build.ts +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lincyaw/workspace",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.5",
|
|
4
4
|
"description": "Presmium's workspace service (presmium serve): documents, their history, reviews and the workspace site",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
"image-size": "2.0.4",
|
|
34
34
|
"mime-types": "3.0.2",
|
|
35
35
|
"yaml": "^2.9.1",
|
|
36
|
-
"@lincyaw/compiler": "1.0.0-rc.
|
|
37
|
-
"@lincyaw/server": "1.0.0-rc.
|
|
38
|
-
"@lincyaw/kernel": "1.0.0-rc.
|
|
36
|
+
"@lincyaw/compiler": "1.0.0-rc.5",
|
|
37
|
+
"@lincyaw/server": "1.0.0-rc.5",
|
|
38
|
+
"@lincyaw/kernel": "1.0.0-rc.5"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/mime-types": "^3.0.1",
|
|
42
|
-
"@lincyaw/mcp": "1.0.0-rc.
|
|
42
|
+
"@lincyaw/mcp": "1.0.0-rc.5"
|
|
43
43
|
}
|
|
44
44
|
}
|
package/src/node/build.ts
CHANGED
|
@@ -68,6 +68,11 @@ function presentations(compilation: Compilation, prefix: string): string[] {
|
|
|
68
68
|
const settings = compilation.doc.config.presmium ??= {}
|
|
69
69
|
const web = isRecord(settings['presmium.web']) ? settings['presmium.web'] : {}
|
|
70
70
|
settings['presmium.web'] = { ...web, webUrl: prefix, ...to.includes('slides') ? { slidesUrl: `${prefix}slides/` } : {} }
|
|
71
|
+
// The slides find the lecture where it is built, without probing `slides/lecture/` first.
|
|
72
|
+
if (to.includes('lecture')) {
|
|
73
|
+
const lecture = isRecord(settings['presmium.lecture']) ? settings['presmium.lecture'] : {}
|
|
74
|
+
settings['presmium.lecture'] = { url: `${prefix}lecture/`, ...lecture }
|
|
75
|
+
}
|
|
71
76
|
return to
|
|
72
77
|
}
|
|
73
78
|
|