web-documentation 1.0.37 → 1.0.39
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/build/deploy.js +1 -1
- package/package.json +8 -8
- package/source/deploy.ts +2 -18
- package/source/index.ts +5 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "web-documentation",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.39",
|
|
4
4
|
"description": "Declarative multilanguage documentation website generator",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"documentation",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"watch": "weboptimizer build --watch"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@aws-sdk/client-s3": "^3.
|
|
54
|
+
"@aws-sdk/client-s3": "^3.1068.0",
|
|
55
55
|
"@babel/eslint-parser": "^7.29.7",
|
|
56
56
|
"@babel/runtime": "^7.29.7",
|
|
57
57
|
"@eslint/js": "^10.0.1",
|
|
@@ -69,12 +69,12 @@
|
|
|
69
69
|
"@webcomponents/webcomponentsjs": "^2.8.0",
|
|
70
70
|
"archiver": "^8.0.0",
|
|
71
71
|
"bootstrap-icons": "^1.13.1",
|
|
72
|
-
"clientnode": "^4.0.
|
|
72
|
+
"clientnode": "^4.0.1423",
|
|
73
73
|
"css-loader": "^7.1.4",
|
|
74
74
|
"cssnano": "^8.0.2",
|
|
75
75
|
"default-gateway": "^7.2.2",
|
|
76
|
-
"errorreporter": "^1.0.
|
|
77
|
-
"eslint": "^10.
|
|
76
|
+
"errorreporter": "^1.0.349",
|
|
77
|
+
"eslint": "^10.5.0",
|
|
78
78
|
"eslint-config-google": "^0.14.0",
|
|
79
79
|
"eslint-plugin-jsdoc": "^63.0.2",
|
|
80
80
|
"favicons": "^7.3.0",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"postcss-loader": "^8.2.1",
|
|
95
95
|
"postcss-mixins": "^12.1.2",
|
|
96
96
|
"postcss-nested": "^7.0.2",
|
|
97
|
-
"postcss-preset-env": "^11.3.
|
|
97
|
+
"postcss-preset-env": "^11.3.1",
|
|
98
98
|
"postcss-scss": "^4.0.9",
|
|
99
99
|
"postcss-sprites": "^4.2.1",
|
|
100
100
|
"postcss-url": "^10.1.4",
|
|
@@ -105,10 +105,10 @@
|
|
|
105
105
|
"typescript-eslint": "^8.61.0",
|
|
106
106
|
"ua-parser-js": "^2.0.10",
|
|
107
107
|
"unzipper": "^0.12.3",
|
|
108
|
-
"web-component-wrapper": "^0.0.
|
|
108
|
+
"web-component-wrapper": "^0.0.600",
|
|
109
109
|
"web-internationalization": "^2.0.41",
|
|
110
110
|
"weboptimizer": "^3.0.24",
|
|
111
|
-
"webpack-dev-server": "^5.2.
|
|
111
|
+
"webpack-dev-server": "^5.2.5",
|
|
112
112
|
"website-utilities": "^1.0.442"
|
|
113
113
|
},
|
|
114
114
|
"engines": {
|
package/source/deploy.ts
CHANGED
|
@@ -31,7 +31,6 @@ import {
|
|
|
31
31
|
Mapping,
|
|
32
32
|
optionalRequire,
|
|
33
33
|
PositiveEvaluationResult,
|
|
34
|
-
PlainObject,
|
|
35
34
|
represent,
|
|
36
35
|
walkDirectoryRecursively
|
|
37
36
|
} from 'clientnode'
|
|
@@ -344,23 +343,8 @@ const generateAndPushNewDocumentationPage = async (
|
|
|
344
343
|
* @returns Path to build distribution bundle or "null" of building failed.
|
|
345
344
|
*/
|
|
346
345
|
const createDistributionBundle = async (): Promise<null | string> => {
|
|
347
|
-
if (
|
|
348
|
-
SCOPE.scripts
|
|
349
|
-
(
|
|
350
|
-
SCOPE.scripts['build:bundle:compatible'] ||
|
|
351
|
-
SCOPE.scripts['build:bundle'] ||
|
|
352
|
-
SCOPE.scripts.build
|
|
353
|
-
)
|
|
354
|
-
) {
|
|
355
|
-
const buildCommand =
|
|
356
|
-
'yarn ' +
|
|
357
|
-
(
|
|
358
|
-
SCOPE.scripts['build:bundle:compatible'] ?
|
|
359
|
-
'build:bundle:compatible' :
|
|
360
|
-
SCOPE.scripts['build:bundle'] ?
|
|
361
|
-
'build:bundle' :
|
|
362
|
-
'build'
|
|
363
|
-
)
|
|
346
|
+
if (SCOPE.scripts && SCOPE.scripts.build) {
|
|
347
|
+
const buildCommand = `yarn ${SCOPE.scripts.build}`
|
|
364
348
|
log.info(`Build distribution bundle via "${buildCommand}".`)
|
|
365
349
|
log.debug(run(buildCommand))
|
|
366
350
|
}
|
package/source/index.ts
CHANGED
|
@@ -423,12 +423,9 @@ export class WebDocumentation<
|
|
|
423
423
|
if (
|
|
424
424
|
['javascript', 'javascripts', 'js']
|
|
425
425
|
.includes(match[2].toLowerCase())
|
|
426
|
-
)
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
domNode.setAttribute('type', 'text/javascript')
|
|
430
|
-
domNode.innerText = code
|
|
431
|
-
} else if ([
|
|
426
|
+
)
|
|
427
|
+
new Function(code)()
|
|
428
|
+
else if ([
|
|
432
429
|
'css', 'cascadingstylesheet',
|
|
433
430
|
'cascadingstylesheets', 'stylesheet',
|
|
434
431
|
'stylesheets', 'sheet', 'sheets', 'style',
|
|
@@ -454,7 +451,8 @@ export class WebDocumentation<
|
|
|
454
451
|
reInjectScripts = true
|
|
455
452
|
}
|
|
456
453
|
|
|
457
|
-
|
|
454
|
+
if (domNode)
|
|
455
|
+
codeDomNode.after(domNode)
|
|
458
456
|
|
|
459
457
|
if (reInjectScripts)
|
|
460
458
|
/*
|