Skip to content

Commit 44e457a

Browse files
committed
chore(ci): WRS-6159: update script names and add logs
- Rename "Prepare page views" to "Install npm packages" - Rename "Prepare page views" to "Fix WRS-6159" - Add log statements in fix-wrs script
1 parent 009b6cb commit 44e457a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.teamcity/builds/kotlinlang/buidTypes/BuildReferenceDocs.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ object BuildReferenceDocs : BuildType({
4747
dockerImagePlatform = ScriptBuildStep.ImagePlatform.Linux
4848
}
4949
script {
50-
name = "Prepare page views"
50+
name = "Install npm packages"
5151
scriptContent = """
5252
#!/usr/bin/env bash
5353
npm i cheerio
@@ -57,7 +57,7 @@ object BuildReferenceDocs : BuildType({
5757
dockerPull = true
5858
}
5959
script {
60-
name = "Prepare page views"
60+
name = "Fix WRS-6159"
6161
scriptContent = """
6262
#!/usr/bin/env bash
6363
":" //# comment; exec /usr/bin/env node --input-type=module - "${'$'}@" < "${'$'}0"

.teamcity/scripts/fix-wrs/index.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ const $ = await load(text, { xml: true });
1212
const ids = (await $('toc-element[hidden="true"]'))
1313
.map((i, e) => $(e).attr('id')).get();
1414

15+
console.log('total', ids.length);
16+
1517
const dels = ids
1618
.map(async id => {
19+
console.log('process', id);
1720
const fileName = id.replace(/.md$/g, '').replace(/\./g, '-') + '.html';
1821
const file = `${ROOT_DIR}/pages/${fileName}`;
1922
const text = await readFile(file);

0 commit comments

Comments
 (0)