Skip to content

feat(themer): add code highlight theme configuration and tests#1966

Open
m-xim wants to merge 12 commits into
diplodoc-platform:masterfrom
m-xim:master
Open

feat(themer): add code highlight theme configuration and tests#1966
m-xim wants to merge 12 commits into
diplodoc-platform:masterfrom
m-xim:master

Conversation

@m-xim
Copy link
Copy Markdown

@m-xim m-xim commented May 31, 2026

Description

Added support for configurable code highlighting themes.

Now documentation can use different highlight.js themes for light and dark UI modes through .yfm:

codeHighlight:
  light: github
  dark: github-dark

theme.yaml

Existing theme.yaml color overrides continue to work with the selected code highlight themes.

For example:

light:
  code: '#111111'
  code-background: '#ffeeaa'

dark:
  code: '#eeeeee'
  code-background: '#221144'

These values are applied on top of the selected highlight.js theme for .hljs, so users can select a full code theme and still override supported Diplodoc code colors.

@m-xim m-xim requested a review from a team as a code owner May 31, 2026 18:35
@m-xim m-xim requested review from martyanovandrey and removed request for a team May 31, 2026 18:35
@m-xim m-xim changed the title Add highlight theme configuration and tests feat(themer): add code highlight theme configuration and tests May 31, 2026
Comment thread src/commands/build/features/themer/code-highlight.ts
Comment thread src/commands/build/types.ts Outdated
Comment thread tests/package-lock.json
Comment thread src/commands/build/features/themer/types.ts
Comment thread src/commands/build/run.ts Outdated
@m-xim m-xim requested a review from martyanovandrey June 1, 2026 11:02
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.

2 participants