Skip to content

Commit 118f587

Browse files
format fix
1 parent 0bfd53b commit 118f587

1 file changed

Lines changed: 28 additions & 5 deletions

File tree

ci/dev/apply-branding.js

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,15 +142,38 @@ function applyBrandingToReleaseArtifacts() {
142142
}
143143

144144
// Patch Getting Started promotional tile.
145-
const gsJsPath = path.join(dir, "lib", "vscode", "out", "vs", "workbench", "contrib", "welcomeGettingStarted", "browser", "gettingStarted.js")
145+
const gsJsPath = path.join(
146+
dir,
147+
"lib",
148+
"vscode",
149+
"out",
150+
"vs",
151+
"workbench",
152+
"contrib",
153+
"welcomeGettingStarted",
154+
"browser",
155+
"gettingStarted.js",
156+
)
146157
if (fs.existsSync(gsJsPath)) {
147158
let gs = fs.readFileSync(gsJsPath, "utf8")
148159
gs = gs
149-
.replace(/https?:\\/\\/[^"']*code-server-to-coder[^"']*/g, "https://" + branding.companyDomain + "/home/introduction")
160+
.replace(
161+
/https?:\/\/[^"']*code-server-to-coder[^"']*/g,
162+
"https://" + branding.companyDomain + "/home/introduction",
163+
)
150164
.replace(/Deploy code-server for your team/g, "Learn more about qBraid")
151-
.replace(/Provision software development environments on your infrastructure with Coder\./g, "Discover the qBraid quantum development platform.")
152-
.replace(/Coder is a self-service portal[^"']*\./g, "qBraid provides managed quantum environments in the cloud.")
153-
.replace(/src: '\.\/_static\/src\/browser\/media\/templates.png'/g, "src: './_static/src/browser/media/qbraid-tile.png'")
165+
.replace(
166+
/Provision software development environments on your infrastructure with Coder\./g,
167+
"Discover the qBraid quantum development platform.",
168+
)
169+
.replace(
170+
/Coder is a self-service portal[^"']*\./g,
171+
"qBraid provides managed quantum environments in the cloud.",
172+
)
173+
.replace(
174+
/src: '\.\/_static\/src\/browser\/media\/templates.png'/g,
175+
"src: './_static/src/browser/media/qbraid-tile.png'",
176+
)
154177
fs.writeFileSync(gsJsPath, gs)
155178
}
156179
}

0 commit comments

Comments
 (0)