From 8620bb631ed58df12ddb9ab640c6dd926b1ae087 Mon Sep 17 00:00:00 2001 From: delucis Date: Mon, 20 Nov 2023 21:44:17 +0000 Subject: [ci] format --- docs/src/content/docs/guides/authoring-content.md | 6 +- .../integrations/expressive-code/index.ts | 12 +- .../expressive-code/themes/night-owl-dark.jsonc | 3576 ++++++++++---------- .../expressive-code/themes/night-owl-light.jsonc | 3371 +++++++++--------- .../integrations/expressive-code/theming.ts | 13 +- packages/starlight/schemas/expressiveCode.ts | 4 +- 6 files changed, 3457 insertions(+), 3525 deletions(-) diff --git a/docs/src/content/docs/guides/authoring-content.md b/docs/src/content/docs/guides/authoring-content.md index 37ddc2ba..a3d65fbb 100644 --- a/docs/src/content/docs/guides/authoring-content.md +++ b/docs/src/content/docs/guides/authoring-content.md @@ -211,15 +211,15 @@ Code block rendering can be configured using Starlight’s [`expressiveCode` con #### Text markers You can highlight specific lines or parts of your code blocks using [Expressive Code text markers](https://github.com/expressive-code/expressive-code/blob/main/packages/%40expressive-code/plugin-text-markers/README.md#usage-in-markdown--mdx-documents) on the opening line of your code block. -Use curly braces (`{ }`) to highlight entire lines, and quotation marks to highlight strings of text. +Use curly braces (`{ }`) to highlight entire lines, and quotation marks to highlight strings of text. There are three highlighting styles: neutral for calling attention to code, green for indicating inserted code, and red for indicating deleted code. Both text and entire lines can be marked using the default marker, or in combination with `ins=` and `del=` to produce the desired highlighting. -Expressive Code provides several options for customizing the visual appearance of your code samples. +Expressive Code provides several options for customizing the visual appearance of your code samples. Many of these can be combined, for highly illustrative code samples. Please explore the [Expressive Code documentation](https://github.com/expressive-code/expressive-code/blob/main/packages/%40expressive-code/plugin-text-markers/README.md) for the extensive options available. -Some of the most common examples are shown below: +Some of the most common examples are shown below: - [Mark entire lines & line ranges using the `{ }` marker](https://github.com/expressive-code/expressive-code/blob/main/packages/%40expressive-code/plugin-text-markers/README.md#marking-entire-lines--line-ranges): diff --git a/packages/starlight/integrations/expressive-code/index.ts b/packages/starlight/integrations/expressive-code/index.ts index bbe2fdf6..13495b45 100644 --- a/packages/starlight/integrations/expressive-code/index.ts +++ b/packages/starlight/integrations/expressive-code/index.ts @@ -7,7 +7,11 @@ import type { AstroConfig, AstroIntegration } from 'astro'; import type { StarlightConfig } from '../../types'; import type { createTranslationSystemFromFs } from '../../utils/translations-fs'; import { pathToLocale } from '../shared/pathToLocale'; -import { applyStarlightUiThemeColors, preprocessThemes, type ThemeObjectOrBundledThemeName } from './theming'; +import { + applyStarlightUiThemeColors, + preprocessThemes, + type ThemeObjectOrBundledThemeName, +} from './theming'; import { addTranslations } from './translations'; export type StarlightExpressiveCodeOptions = Omit & { @@ -26,7 +30,7 @@ export type StarlightExpressiveCodeOptions = Omit z.custom((value) => typeof value === 'object' && value), z.boolean(), ]) - .describe('Define how code blocks are rendered by passing options to Expressive Code, or disable the integration by passing `false`.') + .describe( + 'Define how code blocks are rendered by passing options to Expressive Code, or disable the integration by passing `false`.' + ) .optional(); -- cgit