mirror of
https://github.com/cloudflare/cloudflare-docs.git
synced 2026-01-16 23:11:06 +00:00
* Integrating with GraphQL API Explorer * updated CONTRIBUTING.md * Apply suggestions from code review Co-authored-by: Jun Lee <junlee@cloudflare.com> --------- Co-authored-by: Jun Lee <junlee@cloudflare.com>
38 lines
1.1 KiB
JavaScript
38 lines
1.1 KiB
JavaScript
// @ts-check
|
|
import { defineEcConfig } from "astro-expressive-code";
|
|
|
|
import darkTheme from "solarflare-theme/themes/cloudflare-dark-color-theme.json" with { type: "json" };
|
|
import lightTheme from "solarflare-theme/themes/cloudflare-light-color-theme.json" with { type: "json" };
|
|
|
|
import pluginWorkersPlayground from "./src/plugins/expressive-code/workers-playground.js";
|
|
import pluginOutputFrame from "./src/plugins/expressive-code/output-frame.js";
|
|
import pluginDefaultTitles from "./src/plugins/expressive-code/default-titles.js";
|
|
import pluginGraphqlApiExplorer from "./src/plugins/expressive-code/graphql-api-explorer.js";
|
|
|
|
import { pluginCollapsibleSections } from "@expressive-code/plugin-collapsible-sections";
|
|
|
|
export default defineEcConfig({
|
|
plugins: [
|
|
pluginWorkersPlayground(),
|
|
pluginOutputFrame(),
|
|
pluginDefaultTitles(),
|
|
pluginCollapsibleSections(),
|
|
pluginGraphqlApiExplorer(),
|
|
],
|
|
themes: [darkTheme, lightTheme],
|
|
styleOverrides: {
|
|
borderWidth: "1px",
|
|
borderRadius: "0.25rem",
|
|
textMarkers: {
|
|
defaultLuminance: ["32%", "88%"],
|
|
},
|
|
},
|
|
frames: {
|
|
extractFileNameFromCode: false,
|
|
},
|
|
shiki: {
|
|
langAlias: {
|
|
curl: "sh",
|
|
},
|
|
},
|
|
});
|