Move markdown css import so it doesn't affect Storybook (#1465)

This commit is contained in:
Evan Simkowitz 2024-12-10 12:38:49 -08:00 committed by GitHub
parent f7875bc4f0
commit 9ab7b25aa1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,6 @@ const config: StorybookConfig = {
const { tsImport } = await import("tsx/esm/api");
const electronViteConfig = (await tsImport("../electron.vite.config.ts", import.meta.url))
.default as ElectronViteConfig;
config.base = "/storybook/";
const mergedConfig = mergeConfig(config, electronViteConfig.renderer as UserConfig);
mergedConfig.build.outDir = "storybook-static";
return mergedConfig;

View File

@ -1,6 +1,8 @@
// Copyright 2024, Command Line Inc.
// SPDX-License-Identifier: Apache-2.0
@import url("../../../node_modules/highlight.js/styles/github-dark-dimmed.min.css");
.markdown {
display: flex;
flex-direction: row;

View File

@ -2,7 +2,6 @@
// SPDX-License-Identifier: Apache-2.0
// Used for syntax highlighting in markdown
@import url("../../node_modules/highlight.js/styles/github-dark-dimmed.min.css");
:root {
--main-text-color: #f7f7f7;