Skip to content

Conversation

@thgaskell
Copy link
Collaborator

Problem

Displaying line numbers alongside code diffs was causing alignment issues in the documentation.

Alignment Issue:

image

Solution

  • Updated @docusaurus/* modules to the canary version.
    • This version introduces support for showLineNumbers=N, allowing the starting line number for a code block to be specified.
  • Update css to always output the ::before content for every line to ensure every row has same number of "columns".

Light Theme:

image

Dark Theme:

image

Default: No line numbers or diffs

image

@thgaskell thgaskell requested review from jaygiang and theangchen May 8, 2025 22:18
Copy link
Collaborator

@jaygiang jaygiang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ✅

@thgaskell thgaskell merged commit 140d9c7 into main May 9, 2025
1 check passed
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.

3 participants