Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency astro-expressive-code to ^0.23.0 (docs-v2) #217

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Sep 19, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
astro-expressive-code ^0.22.2 -> ^0.23.0 age adoption passing confidence

⚠ Dependency Lookup Warnings ⚠

Warnings were logged while processing this repo. Please check the Dependency Dashboard for more information.


Release Notes

expressive-code/expressive-code (astro-expressive-code)

v0.23.0

Minor Changes
  • bfed62a: Add config option customizeTheme.

    This optional function is called once per theme during engine initialization with the loaded theme as its only argument.

    It allows customizing the loaded theme and can be used for various purposes:

    • You can change a theme's name property to influence its generated CSS class name (e.g. theme.name = 'dark' will result in code blocks having the class ec-theme-dark).
    • You can create color variations of themes by using theme.applyHueAndChromaAdjustments().
  • bfed62a: Add plugin styles to the styleOverrides config option.

    So far, this object only contained core styles like colors, fonts, paddings and more. Now, plugins also contribute their own style settings to this object.

    For example, if the frames plugin is installed, you can now override its shadowColor by setting styleOverrides.frames.shadowColor to a color value.

  • bfed62a: Add applyHueAndChromaAdjustments function to ExpressiveCodeTheme.

    You can now apply chromatic adjustments to entire groups of theme colors while keeping their relative lightness and alpha components intact. This can be used to quickly create theme variants that fit the color scheme of any website or brand.

    Adjustments can either be defined as hue and chroma values in the OKLCH color space (range 0–360 for hue, 0–0.4 for chroma), or these values can be extracted from hex color strings (e.g. #​3b82f6).

    You can target predefined groups of theme colors (e.g. backgrounds, accents) and/or use the custom property to define your own groups of theme colors to be adjusted.

  • bfed62a: Add outer wrapper when rendering multiple themes.

    When the theme option is set to an array containing multiple themes, the rendered code block groups are now wrapped inside <div class="ec-themes-wrapper">...</div>. This encapsulates all rendered themes in a single element and thereby ensures their consistent positioning on sites that would otherwise add margins between them due to adjacent sibling combinators.

  • bfed62a: Add styleOverrides to ExpressiveCodeTheme.

    Themes can now provide their own styleOverrides, which take precedence over global styleOverrides and the default styles.

Patch Changes

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@vercel
Copy link

vercel bot commented Sep 19, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
dev-docs ❌ Failed (Inspect) Sep 19, 2023 8:49pm

@renovate renovate bot force-pushed the renovate/docs-v2-astro-expressive-code-0.x branch from 2064ab5 to 2554e67 Compare September 19, 2023 20:48
@Sporiff Sporiff merged commit 3210a29 into docs-v2 Sep 19, 2023
@Sporiff Sporiff deleted the renovate/docs-v2-astro-expressive-code-0.x branch September 19, 2023 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant