From 2d63337ed6351f5c5065390f43bacf2395416048 Mon Sep 17 00:00:00 2001 From: Jack Franklin Date: Mon, 17 Jul 2023 11:31:05 +0100 Subject: [PATCH] Fix errors when running component server index Passing an array to `path.join` is not supported, it takes unlimited arguments rather than an array of one. This was introduced in crrev.com/c/4678757, but I think the bots were happy because they do not use the index page and instead navigate directly to examples. This error only triggered on the index page. As a drive-by, I also bumped the font size as otherwise they use the default, rather small, DevTools font size. Bug: none Change-Id: I580c454d62e3ce66065bdb21c2fc7b0349825637 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4685569 Reviewed-by: Andres Olivares Commit-Queue: Andres Olivares Auto-Submit: Jack Franklin --- front_end/ui/components/docs/component_docs_styles.css | 1 + scripts/component_server/server.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/front_end/ui/components/docs/component_docs_styles.css b/front_end/ui/components/docs/component_docs_styles.css index 2d608273e5..e0d3b4cf24 100644 --- a/front_end/ui/components/docs/component_docs_styles.css +++ b/front_end/ui/components/docs/component_docs_styles.css @@ -35,6 +35,7 @@ body { .components-list a { display: block; + font-size: 14px; padding: 10px; } diff --git a/scripts/component_server/server.js b/scripts/component_server/server.js index 07fd19f202..b2cd8c7cc2 100644 --- a/scripts/component_server/server.js +++ b/scripts/component_server/server.js @@ -156,7 +156,7 @@ function createComponentIndexFile(componentPath, componentExamples) { function createServerIndexFile(componentNames) { const linksToStyleSheets = styleSheetPaths - .map(link => ``) + .map(link => ``) .join('\n'); // clang-format off