Skip to content

Commit 90f9f9e

Browse files
authored
Merge branch 'master' into dependabot/github_actions/peter-evans/create-or-update-comment-3
2 parents a12da7c + 7d62c65 commit 90f9f9e

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

docs/.vitepress/config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ export default defineConfig({
129129
title: 'Rollup',
130130
transformPageData,
131131
vite: {
132-
optimizeDeps: { include: ['moment-mini', '@braintree/sanitize-url'] },
133132
plugins: [
134133
renderMermaidGraphsPlugin(),
135134
{

docs/.vitepress/mermaid.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const mermaidRegExp = /^```mermaid\n([\S\s]*?)\n```/gm;
1414
const greaterThanRegExp = />/g;
1515
const styleTagRegExp = /<style>[\S\s]*?<\/style>/gm;
1616
const configFileURL = new URL('mermaid.config.json', import.meta.url);
17+
const puppeteerConfigFileURL = new URL('puppeteer-config.json', import.meta.url);
1718

1819
export function renderMermaidGraphsPlugin(): Plugin {
1920
const existingGraphFileNamesPromise = mkdir(graphsDirectory, { recursive: true })
@@ -28,7 +29,9 @@ export function renderMermaidGraphsPlugin(): Plugin {
2829
const inFileURL = new URL(`${outFile}.mmd`, graphsDirectory);
2930
await writeFile(inFileURL, codeBlock);
3031
const { stdout, stderr } = await execPromise(
31-
`npx mmdc --configFile ${fileURLToPath(configFileURL)} --input ${fileURLToPath(
32+
`npx mmdc --configFile ${fileURLToPath(
33+
configFileURL
34+
)} --puppeteerConfigFile ${fileURLToPath(puppeteerConfigFileURL)} --input ${fileURLToPath(
3235
inFileURL
3336
)} --output ${fileURLToPath(outFileURL)}`
3437
);
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"args": ["--no-sandbox"]
3+
}

0 commit comments

Comments
 (0)