Skip to content

Comprehensive set of documentation; Website styling - #231

Merged
Avni2000 merged 36 commits into
mainfrom
better-docs
Apr 27, 2026
Merged

Avni2000 merged 36 commits into
mainfrom
better-docs

Conversation

@Avni2000

@Avni2000 Avni2000 commented Apr 22, 2026 •

Copy link
Copy Markdown
Owner

Motivation

MergeNB is an incredibly complex tool, with tons of moving parts. This PR aims to:
(a) Remove Docusaurus template scaffolding
(b) Create absolutely necessary, high value documentation.
(c) Fulfill a class project :)

Summary by CodeRabbit

  • New Features

    • Comprehensive product documentation (Installation, Architecture, Settings, Testing) and image-zoom support.
    • New logo component and updated playground demo theme.
  • Documentation

    • Reorganized docs navigation and added many MergeNB-specific guides.
    • Removed legacy tutorial pages and old blog content.
  • Style

    • Overhauled website design, color scheme, layout, and global styles.
  • Chores

    • Disabled blog functionality and updated site configuration and homepage routing.

Avni2000 added 19 commits April 18, 2026 16:18
- packages/[core/web-client/web-server]
- apps/[vscode-extension/website]
- testing/[playwright/vscode-host/fixtures]
  - fixtures should probably just be a general overview of test fixtures. TBD
- architecture (probably not important)
- settings
…avigation

- wires index.tsx => overview.mdx instead of two redundant "overview" style pages
- AI generated styling
- mostly just cli commands and warnings about compile-test
- lists settings in order of precedence, as well as all possible settings
  - JSON example
- Very, very intricate view of the whole merge lifecycle.
- (kinda redundant) design philosophy notes.
- State Management and IPC is a heavy WIP.
- the merge lifecycle takes care of a lot of these.
@coderabbitai

coderabbitai Bot commented Apr 22, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Rate limit exceeded

@Avni2000 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 8 minutes and 26 seconds before requesting another review.

To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: cc605e2b-24f7-4b2a-8e1f-fb7cb97a7684

📥 Commits

Reviewing files that changed from the base of the PR and between 843796a and 525a504.

⛔ Files ignored due to path filters (1)
  • apps/website/static/img/auto-resolution.svg is excluded by !**/*.svg
📒 Files selected for processing (5)
  • apps/website/docs/auto-resolution.tex
  • apps/website/docs/settings.mdx
  • apps/website/docs/testing/playwright.mdx
  • apps/website/docusaurus.config.ts
  • apps/website/src/pages/index.tsx
📝 Walkthrough

Walkthrough

This PR converts the site from a generic Docusaurus template to a MergeNB product site: removes blog/tutorial content and related metadata, adds comprehensive product docs (architecture, testing, installation, settings, overview), redesigns homepage and theme, updates site config/sidebars, introduces a new logo, and adjusts playground fixtures and styles.

Changes

Cohort / File(s) Summary
Blog & Author Metadata Removal
apps/website/blog/*, apps/website/blog/authors.yml, apps/website/blog/tags.yml
Deleted all blog posts and blog metadata (authors/tags) and removed blog-related frontmatter/truncate markers.
Tutorial Content Removal
apps/website/docs/intro.md, apps/website/docs/tutorial-basics/*, apps/website/docs/tutorial-extras/*
Removed tutorial pages and category metadata that came from the generic template.
Architecture Docs
apps/website/docs/architecture/index.mdx, .../merge-lifecycle.mdx, .../state-management-and-ipc.mdx, .../design-philosophy.mdx
Added detailed architecture docs covering merge lifecycle, IPC/message contract, and design principles.
Product & User Docs
apps/website/docs/overview.mdx, apps/website/docs/installation.mdx, apps/website/docs/settings.mdx, apps/website/docs/apps/website.mdx
Added overview, installation, settings, and site/app documentation (hero component, commands, build/deploy notes).
Testing Docs
apps/website/docs/testing/index.mdx, .../playwright.mdx, .../vscode-host.mdx
Added testing guidance for Playwright, VS Code host, E2E flows, scripts, and runner patterns.
Site Configuration & Sidebar
apps/website/docusaurus.config.ts, apps/website/sidebars.ts, apps/website/package.json
Updated Docusaurus config (title, plugins, theme, disabled blog), replaced autogenerated sidebar with explicit docsSidebar, and added image-zoom dependency.
Homepage & Layout Changes
apps/website/src/pages/index.tsx, apps/website/src/pages/index.module.css, apps/website/src/css/custom.css, apps/website/src/components/HomepageFeatures/*
Removed previous homepage components and features, replaced homepage with redirect to docs, rewrote global/site CSS and homepage styles, removed HomepageFeatures.
Logo & Navbar Integration
apps/website/src/components/Logo.tsx, apps/website/src/components/Logo.module.css, apps/website/src/theme/Navbar/Logo/index.tsx
Added a new Logo component, CSS module, and a navbar logo wrapper to replace the default theme logo rendering.
Playground & Fixtures
apps/website/src/pages/playground.tsx, test-fixtures/demo/{base,current,incoming}.ipynb
Playground now loads demo notebooks from nested test-fixtures/demo/{base,current,incoming}.ipynb and switches resolver/theme injection from dark → light.
Styles & Assets
apps/website/src/css/custom.css, apps/website/src/pages/index.module.css, apps/website/src/components/Logo.module.css, apps/website/src/components/HomepageFeatures/styles.module.css
Large CSS overhaul: new theme tokens, layout, hero/sections, responsive rules, and logo styling; removed old feature CSS.
Misc / LaTeX Diagrams & Pages
apps/website/docs/cell-reordering.tex, apps/website/docs/auto-resolution.tex, apps/website/src/pages/markdown-page.md
Added TikZ diagrams (cell reordering, auto-resolution); removed example markdown page.

Sequence Diagram(s)

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~50 minutes

Possibly related PRs

Poem

🐰 I hopped through files with ears held high,
I cleared the blog and taught the docs to fly,
New logo stitched and homepage sent to roam,
MergeNB’s docs now have a proper home,
A nibble, a hop — the site is snug and spry! 🎉

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately reflects the main changes: removal of template scaffolding, addition of comprehensive documentation, and website styling updates.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch better-docs

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 17

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@apps/website/docs/apps/website.mdx`:
- Line 16: Replace the typo "usecase" with the correct two-word phrase "use
case" in the sentence that begins "The primary usecase was going to be for
showcasing the resolver..." so the text reads "The primary use case was going to
be for showcasing the resolver..." ensuring spacing is fixed and punctuation
remains unchanged.
- Around line 20-26: The docs show an inconsistent install sequence: the command
sequence includes "cd apps/website" but the comment says "from the root"; fix
the ordering and comment so it's accurate by moving the "npm install" to run at
the repo root before "cd apps/website" (or alternatively remove the misleading
comment), updating the commands around "npm install" and "cd apps/website" in
the code block so it clearly indicates that "npm install" runs at repo root and
then you change to the app directory before running "npm start", "npm run
build", and "npm run serve".

In `@apps/website/docs/architecture/merge-lifecycle.mdx`:
- Around line 10-12: The sentence in the "Discovery" section is a run-on: split
the sentence after "(see status codes below)" so the two thoughts are separated
into two sentences; update the paragraph mentioning merge-nb.findConflicts and
the extension calling `git status --porcelain` to end with "(see status codes
below)." and start a new sentence for "Simple cases (add-only,
delete-vs-modify)..." to improve clarity.
- Around line 107-118: Remove or rephrase the informal editorial note in the
prose describing buildResolvedNotebookFromRows (the sentence beginning "This
could be cleaner, since we're computing which cell to take twice..."). Either
delete that sentence entirely or replace it with a concise, user-facing
rationale explaining the architectural tradeoff (e.g., "We intentionally apply
the three-way rule twice to provide fallbacks and handle row-shape changes when
reconstructing ResolvedRow[] into notebook cells using
selectNonConflictMergedCell"), keeping references to
buildResolvedNotebookFromRows and selectNonConflictMergedCell so readers
understand the design decision.

In `@apps/website/docs/architecture/state-management-and-ipc.mdx`:
- Line 26: Remove the informal apology line "I'll finish up these docs soon
enough, sorry about leaving it incomplete!" from the block quote in
state-management-and-ipc.mdx and either delete the block entirely or replace it
with a neutral WIP admonition (e.g., "This section is a work in progress. See
tracking issue: <link-to-issue>") so published docs do not contain personal
apologies; update the text in the block quote to the neutral admonition and add
a link to an issue or TODO for follow-up.

In `@apps/website/docs/installation.mdx`:
- Around line 18-19: The docs contain a hardcoded asset URL pointing to
"merge-nb-0.3.0.vsix" which will break on version bumps; update the docs and
release workflow so the direct download link uses a stable asset name (e.g.,
"merge-nb.vsix") or remove the direct link entirely until the release action is
changed; specifically, adjust the release GitHub Action that uploads the VSIX to
publish it as "merge-nb.vsix" (or change the docs to only link to the releases
page) and replace the inline "merge-nb-0.3.0.vsix" URL in installation.mdx (see
the existing TODO comment) accordingly.
- Line 63: Remove the leading "$ " prompt from the fenced code block so the
command is copyable and runnable; locate the snippet containing "`$ npm run
compile && code --extensionDevelopmentPath=. --new-window <folder to open
extension in>`" in apps/website/docs/installation.mdx and change it to "npm run
compile && code --extensionDevelopmentPath=. --new-window <folder to open
extension in>" inside the code fence.

In `@apps/website/docs/overview.mdx`:
- Around line 38-86: The MDX headings inside the raw JSX (<main> and <section
className={styles.features}>) are fragile and may be skipped by remark plugins;
remove the raw JSX wrappers or replace them with standard MDX structure so
headings like "Core Logic", "Conflict Resolution UI", etc. are top-level MDX
headings (or move the content into a real React component that returns JSX with
proper MDX-aware rendering), and instead apply styling via a page-level CSS
class or a wrapper component to preserve TOC/anchor generation.
- Line 47: The image path in the MDX (the line containing "![MergeNB Dark
Theme](../static/img/dark-theme.png#featureImage)") uses a relative path into
the static folder and will not resolve at build/runtime; update the reference to
use the static root (e.g. replace "../static/img/dark-theme.png#featureImage"
with "/img/dark-theme.png#featureImage") or use Docusaurus's useBaseUrl helper
to generate a baseUrl-aware path so the image resolves correctly in production.

In `@apps/website/docs/settings.mdx`:
- Around line 11-18: The intro incorrectly states "three places" while the list
contains four sources; update the sentence to accurately reflect the list (e.g.,
change "three places" to "four places" or rephrase to "four sources") so the
count matches the numbered entries in the docs content that enumerate workspace
settings, user settings, a config file, and hardcoded defaults (refer to the
paragraph introducing the list and the four items that follow).

In `@apps/website/docs/testing/index.mdx`:
- Around line 66-69: Fix the typos in the docs: change the phrase "Browser and
launch **Manual Sandboxes**" to "Browse and launch **Manual Sandboxes**" and
rewrite the following sentence starting "since this opens a VS Code window,
there's a bit more info about manual sandboxes there." to be a complete,
capitalized sentence (e.g., "This opens a VS Code window, so you'll find more
information about manual sandboxes there."). Update the text fragments "Browser
and launch **Manual Sandboxes**" and the subsequent sentence accordingly in the
same paragraph.
- Around line 14-29: In the bash snippet in docs/testing/index.mdx update the
comment string "#everything" to include a space ("# everything") so it matches
the formatting of the other comments; locate the code block containing the npm
run commands and change the single token comment "#everything" to "#
everything".

In `@apps/website/docs/testing/playwright.mdx`:
- Around line 23-29: The warning text misleadingly describes the compile target
for `npm run compile-tests` as "tsc to out/ for the VS Code host", which is
incorrect for this Playwright browser-level testing doc; update the message to
accurately state that `npm run compile-tests` compiles the Playwright test
helpers and test files for Node/browser integration tests (e.g., transpile
TypeScript test code to the test output directory) so both the app and the tests
are built before running `npx`/`node`-invoked tests; specifically edit the block
containing the two commands and replace the VS Code-specific phrase with a brief
accurate description referencing `npm run compile-tests` and its role in
preparing Playwright/Node test artifacts.

In `@apps/website/docs/testing/vscode-host.mdx`:
- Around line 15-21: Extract the duplicated admonition block into a shared
partial named _compile-before-testing.mdx containing the warning and the two
commands, then replace the verbatim blocks in both pages with an MDX
include/import of that partial; update docs/testing/index.mdx and
docs/testing/vscode-host.mdx to import or reference _compile-before-testing.mdx
(instead of duplicating the text) so the warning is authored in one place and
reused.
- Around line 46-49: The examples show running the test script with flags but
omit the required separator, so npm swallows the arguments; update the docs to
instruct using the npm run separator (add `--` before script flags) when
invoking the script via npm (e.g., use `npm run test -- --manual ...`), and
mention the same `--` rule if the first example is intended to be run through
npm rather than node; ensure the README text explicitly shows the `--` separator
so `--manual general/conflict_11` is forwarded to the test script.

In `@apps/website/docusaurus.config.ts`:
- Around line 101-104: The colorMode block currently sets defaultMode: 'light'
but leaves respectPrefersColorScheme: true, which still flips to dark for users
with dark OS preferences; update the colorMode configuration
(colorMode.defaultMode and colorMode.respectPrefersColorScheme) to set
respectPrefersColorScheme: false so OS preferences are ignored, and also disable
the color mode switcher (e.g., set colorMode.disableSwitch or the themeConfig
option that disables the switch) to enforce a light-only experience; touch the
colorMode object to make both changes together.

In `@apps/website/src/pages/index.tsx`:
- Around line 2-6: The Redirect in Home currently uses a hardcoded
"/MergeNB/docs"; instead import and use Docusaurus' useBaseUrl hook and call
useBaseUrl('/MergeNB/docs') inside the Home component to compute the target path
dynamically, then pass that computed value to <Redirect to={...}>; update the
imports to include useBaseUrl and remove the hardcoded string so the redirect
follows the configured baseUrl.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: aaea68b6-8eee-4722-b661-c117c8fddc9f

📥 Commits

Reviewing files that changed from the base of the PR and between 4b3c221 and 75aa828.

⛔ Files ignored due to path filters (14)
  • apps/website/blog/2021-08-26-welcome/docusaurus-plushie-banner.jpeg is excluded by !**/*.jpeg
  • apps/website/docs/tutorial-extras/img/docsVersionDropdown.png is excluded by !**/*.png
  • apps/website/docs/tutorial-extras/img/localeDropdown.png is excluded by !**/*.png
  • apps/website/package-lock.json is excluded by !**/package-lock.json
  • apps/website/static/img/dark-theme.png is excluded by !**/*.png
  • apps/website/static/img/demo_walkthrough.gif is excluded by !**/*.gif
  • apps/website/static/img/docusaurus-social-card.jpg is excluded by !**/*.jpg
  • apps/website/static/img/docusaurus.png is excluded by !**/*.png
  • apps/website/static/img/light-theme.png is excluded by !**/*.png
  • apps/website/static/img/logo.png is excluded by !**/*.png
  • apps/website/static/img/logo.svg is excluded by !**/*.svg
  • apps/website/static/img/undraw_docusaurus_mountain.svg is excluded by !**/*.svg
  • apps/website/static/img/undraw_docusaurus_react.svg is excluded by !**/*.svg
  • apps/website/static/img/undraw_docusaurus_tree.svg is excluded by !**/*.svg
📒 Files selected for processing (38)
  • apps/website/blog/2019-05-28-first-blog-post.md
  • apps/website/blog/2019-05-29-long-blog-post.md
  • apps/website/blog/2021-08-01-mdx-blog-post.mdx
  • apps/website/blog/2021-08-26-welcome/index.md
  • apps/website/blog/authors.yml
  • apps/website/blog/tags.yml
  • apps/website/docs/apps/website.mdx
  • apps/website/docs/architecture/design-philosophy.mdx
  • apps/website/docs/architecture/index.mdx
  • apps/website/docs/architecture/merge-lifecycle.mdx
  • apps/website/docs/architecture/state-management-and-ipc.mdx
  • apps/website/docs/installation.mdx
  • apps/website/docs/intro.md
  • apps/website/docs/overview.mdx
  • apps/website/docs/settings.mdx
  • apps/website/docs/testing/index.mdx
  • apps/website/docs/testing/playwright.mdx
  • apps/website/docs/testing/vscode-host.mdx
  • apps/website/docs/tutorial-basics/_category_.json
  • apps/website/docs/tutorial-basics/congratulations.md
  • apps/website/docs/tutorial-basics/create-a-blog-post.md
  • apps/website/docs/tutorial-basics/create-a-document.md
  • apps/website/docs/tutorial-basics/create-a-page.md
  • apps/website/docs/tutorial-basics/deploy-your-site.md
  • apps/website/docs/tutorial-basics/markdown-features.mdx
  • apps/website/docs/tutorial-extras/_category_.json
  • apps/website/docs/tutorial-extras/manage-docs-versions.md
  • apps/website/docs/tutorial-extras/translate-your-site.md
  • apps/website/docusaurus.config.ts
  • apps/website/package.json
  • apps/website/sidebars.ts
  • apps/website/src/components/HomepageFeatures/index.tsx
  • apps/website/src/components/HomepageFeatures/styles.module.css
  • apps/website/src/css/custom.css
  • apps/website/src/pages/index.module.css
  • apps/website/src/pages/index.tsx
  • apps/website/src/pages/markdown-page.md
  • apps/website/src/pages/playground.tsx
💤 Files with no reviewable changes (20)
  • apps/website/blog/2021-08-26-welcome/index.md
  • apps/website/src/pages/markdown-page.md
  • apps/website/src/components/HomepageFeatures/styles.module.css
  • apps/website/docs/tutorial-basics/category.json
  • apps/website/docs/tutorial-extras/category.json
  • apps/website/docs/tutorial-basics/create-a-document.md
  • apps/website/docs/tutorial-basics/congratulations.md
  • apps/website/docs/intro.md
  • apps/website/docs/tutorial-basics/create-a-page.md
  • apps/website/docs/tutorial-basics/markdown-features.mdx
  • apps/website/docs/tutorial-basics/create-a-blog-post.md
  • apps/website/blog/2019-05-28-first-blog-post.md
  • apps/website/blog/2021-08-01-mdx-blog-post.mdx
  • apps/website/docs/tutorial-extras/manage-docs-versions.md
  • apps/website/blog/authors.yml
  • apps/website/docs/tutorial-extras/translate-your-site.md
  • apps/website/blog/2019-05-29-long-blog-post.md
  • apps/website/docs/tutorial-basics/deploy-your-site.md
  • apps/website/blog/tags.yml
  • apps/website/src/components/HomepageFeatures/index.tsx

Comment thread apps/website/docs/apps/website.mdx Resolved
Comment thread apps/website/docs/apps/website.mdx Resolved
Comment thread apps/website/docusaurus.config.ts Resolved
Comment thread apps/website/src/pages/index.tsx Resolved
@Avni2000

Copy link
Copy Markdown
Owner Author

I'm going to deploy the site from this branch for the class project, but I'll leave this PR open until I have time (probably in ~2 weeks?) to address all of coderabbit's comments.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 8

♻️ Duplicate comments (2)
apps/website/docs/overview.mdx (2)

46-46: ⚠️ Potential issue | 🟠 Major

Use Docusaurus static-root paths for these images.

../static/... is a filesystem path, not a deployed asset path, so both image references will break in the built site. Point them at the static root instead.

Suggested fix
-  ![MergeNB Light Theme](../static/img/light-theme.png)
+  ![MergeNB Light Theme](/img/light-theme.png)
...
-  ![Cell reordering: before merge and conflict resolver panel](../static/img/cell-reordering.svg)
+  ![Cell reordering: before merge and conflict resolver panel](/img/cell-reordering.svg)

Also applies to: 69-69

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@apps/website/docs/overview.mdx` at line 46, Replace filesystem-relative image
paths that use "../static/..." with Docusaurus static-root asset paths so they
resolve after build; specifically update the markdown image references like
"![MergeNB Light Theme](../static/img/light-theme.png)" (and the other at line
69) to use the static root (for example "/img/light-theme.png") so the images
are served from the deployed site rather than the repository filesystem.

39-125: 🛠️ Refactor suggestion | 🟠 Major

Keep the narrative content out of raw JSX wrappers.

The headings and markdown blocks here sit inside <main> / <section>, which makes Docusaurus TOC/anchor generation brittle for the page’s primary structure. This should be top-level MDX/Markdown content, or moved into a dedicated React component that renders the whole section.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@apps/website/docs/overview.mdx` around lines 39 - 125, The page places
top-level markdown headings and narrative inside JSX wrappers (<main> and
<section className={styles.features}>) which breaks Docusaurus TOC/anchor
generation; move the headings and markdown blocks (e.g. the "# Core Logic", "##
Conflict Resolution UI", "## Reordered Cell Handling", and other MD sections)
out of the JSX wrappers into top-level MDX/Markdown content, or alternatively
wrap the entire feature block in a dedicated React component (e.g.
FeatureSection) that renders the section content as proper MDX/Markdown (keeping
style classes like styles.featureContainer, styles.featureImage,
styles.featureText applied via props) so that Docusaurus can generate anchors
correctly.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@apps/website/docs/architecture/merge-lifecycle.mdx`:
- Line 8: Update the sentence in merge-lifecycle.mdx that reads "I want this to
be a high value document" to hyphenate "high-value" so it reads "I want this to
be a high-value document"; locate the string in the document (occurs in the
paragraph starting with "I want this to be") and replace "high value document"
with "high-value document" to match project style.
- Around line 93-103: Replace the phrase "almost never" with the shorter word
"rarely" in the description for the Execution counts item
(autoResolveExecutionCount) to improve concision; update the text near the list
entry that reads "**Execution counts** (`autoResolveExecutionCount`): set to
`null`. These change on every notebook run and almost never carry meaning." to
use "rarely" instead of "almost never".
- Around line 95-96: Clarify that the behavior applies specifically to the
outputs-changed conflict classification: update the sentence referencing
"Outputs (`stripOutputs`): cleared entirely when the underlying source is
identical" so it explicitly states that outputs are cleared in the
outputs-changed (or stripOutputs) case — e.g., "Outputs (`stripOutputs`) are
cleared entirely only for the outputs-changed conflict classification when the
underlying source is identical," ensuring the terms outputs-changed and
stripOutputs are both mentioned to avoid ambiguity.

In `@apps/website/docs/overview.mdx`:
- Around line 110-113: The "Unmatching cells" section currently describes the
old banner-and-undo interaction; update that section to reflect the current UX
contract: replace the banner/undo wording with a description of the simplified
arrow-based flow, explicitly state that reordered cells support arrow navigation
plus unmatch/rematch actions, and note that performing "unmatch" splits the row
for manual selection/deletion; remove any sentences about showing a banner on
top of the reordered cell and "undo our computed reordering" and instead
describe the arrows + unmatch/rematch behavior and row-splitting after unmatch.

In `@apps/website/docs/testing/playwright.mdx`:
- Around line 95-97: The docs currently reference a different helper name than
the fixture API; update this section to use the canonical helper name
`assertMatches` consistently (replace `assertNotebookMatches(...)` with
`assertMatches(...)`) and ensure the surrounding guidance still points readers
to `collectExpectedCellsFromUI(...)` in
`test-fixtures/shared/integrationUtils.ts` as the starting point before calling
`assertMatches(...)` against the final notebook so the docs match the fixture
API.

In `@apps/website/docusaurus.config.ts`:
- Around line 24-27: The config currently masks broken markdown links by setting
markdown.hooks.onBrokenMarkdownLinks='warn'—either revert this to 'throw' in
docusaurus.config.ts to fail the build when links are incorrect, or update the
image references in docs/overview.mdx from filesystem-relative paths (e.g.,
../static/img/light-theme.png) to Docusaurus asset paths (/img/light-theme.png);
locate the onBrokenMarkdownLinks setting in docusaurus.config.ts and change it
to 'throw' if you prefer enforcement, or edit overview.mdx to replace
../static/img/... with /img/... so the links resolve correctly.

In `@apps/website/src/components/Logo.module.css`:
- Around line 12-15: Add a blank line after the opening brace in the .large rule
so it satisfies the declaration-empty-line-before rule; e.g., update the .large
block containing --logo-scale and gap to have an empty line between "{" and the
first declaration (so the declarations for --logo-scale and gap remain unchanged
but start after one empty line).

In `@apps/website/src/theme/Navbar/Logo/index.tsx`:
- Line 2: Remove the unused wrapper import and parameter: delete the import Logo
from '@theme-original/Navbar/Logo' and remove the unused props parameter from
the wrapper function (and replace the wrapper by re-exporting the original
component). Specifically, eliminate the dead symbol "Logo" imported at top and
stop declaring "props" in the default export wrapper; instead directly re-export
the original default component (export { default } from
'@theme-original/Navbar/Logo') so there are no unused identifiers.

---

Duplicate comments:
In `@apps/website/docs/overview.mdx`:
- Line 46: Replace filesystem-relative image paths that use "../static/..." with
Docusaurus static-root asset paths so they resolve after build; specifically
update the markdown image references like "![MergeNB Light
Theme](../static/img/light-theme.png)" (and the other at line 69) to use the
static root (for example "/img/light-theme.png") so the images are served from
the deployed site rather than the repository filesystem.
- Around line 39-125: The page places top-level markdown headings and narrative
inside JSX wrappers (<main> and <section className={styles.features}>) which
breaks Docusaurus TOC/anchor generation; move the headings and markdown blocks
(e.g. the "# Core Logic", "## Conflict Resolution UI", "## Reordered Cell
Handling", and other MD sections) out of the JSX wrappers into top-level
MDX/Markdown content, or alternatively wrap the entire feature block in a
dedicated React component (e.g. FeatureSection) that renders the section content
as proper MDX/Markdown (keeping style classes like styles.featureContainer,
styles.featureImage, styles.featureText applied via props) so that Docusaurus
can generate anchors correctly.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: a1ce5f73-b2f9-4229-9860-ca1e8debaaaf

📥 Commits

Reviewing files that changed from the base of the PR and between 75aa828 and 7c010fd.

⛔ Files ignored due to path filters (1)
  • apps/website/static/img/cell-reordering.svg is excluded by !**/*.svg
📒 Files selected for processing (14)
  • apps/website/docs/architecture/merge-lifecycle.mdx
  • apps/website/docs/cell-reordering.tex
  • apps/website/docs/installation.mdx
  • apps/website/docs/overview.mdx
  • apps/website/docs/testing/index.mdx
  • apps/website/docs/testing/playwright.mdx
  • apps/website/docs/testing/vscode-host.mdx
  • apps/website/docusaurus.config.ts
  • apps/website/src/components/Logo.module.css
  • apps/website/src/components/Logo.tsx
  • apps/website/src/css/custom.css
  • apps/website/src/pages/index.module.css
  • apps/website/src/pages/playground.tsx
  • apps/website/src/theme/Navbar/Logo/index.tsx

Comment thread apps/website/docs/overview.mdx Resolved
Comment thread apps/website/docusaurus.config.ts Resolved
- rm unmatching section, it's too detailed for a very broad overview.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 3

♻️ Duplicate comments (2)
apps/website/docs/overview.mdx (2)

46-46: ⚠️ Potential issue | 🟠 Major

Image paths still use ../static/img/... in four places — none will resolve at build time.

A previous review flagged this for the dark-theme image (now replaced by light-theme.png at L46), but the same broken pattern is now repeated for cell-reordering.svg (L69), auto-resolution.svg (L109) and history.png (L116). With onBrokenLinks: 'throw' configured in docusaurus.config.ts, the build will fail. Docusaurus serves static/ from the site root, so these must be absolute paths (or use useBaseUrl).

🛠️ Proposed fix
-  ![MergeNB Light Theme](../static/img/light-theme.png)
+  ![MergeNB Light Theme](/img/light-theme.png)
@@
-  ![Cell reordering: before merge and conflict resolver panel](../static/img/cell-reordering.svg)
+  ![Cell reordering: before merge and conflict resolver panel](/img/cell-reordering.svg)
@@
-    ![Auto Resolution](../static/img/auto-resolution.svg)
+    ![Auto Resolution](/img/auto-resolution.svg)
@@
-      ![History panel](../static/img/history.png)
+      ![History panel](/img/history.png)

Also applies to: 69-69, 109-109, 116-116

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@apps/website/docs/overview.mdx` at line 46, The image paths in
apps/website/docs/overview.mdx still use "../static/img/..." which will not
resolve at build time; update each image reference (light-theme.png,
cell-reordering.svg, auto-resolution.svg, history.png) to use Docusaurus static
asset paths (e.g., change "../static/img/xyz" to "/img/xyz" or wrap with
useBaseUrl('/img/xyz')) so the assets are served from the site root and
onBrokenLinks won't fail; locate the img markdown entries in overview.mdx and
replace the path for each image accordingly.

54-54: ⚠️ Potential issue | 🟡 Minor

Minor wording cleanups flagged by LanguageTool.

  • L54: "with regard to" → "regarding" / "respecting" reads cleaner.
  • L130: "stands on the shoulders of all of the hardworking maintainers" — drop the redundant "of the"; also hyphenate "open-source" when used adjectivally.
✏️ Proposed wording
-  At the end of the day, users should be able to resolve merge conflicts intuitively, and with regard to the cell structure of their notebooks.
+  At the end of the day, users should be able to resolve merge conflicts intuitively, respecting the cell structure of their notebooks.
@@
-  **MergeNB stands on the shoulders of all of the hardworking maintainers that came before it. Here are a few open source projects that made it possible:**
+  **MergeNB stands on the shoulders of all the hardworking maintainers that came before it. Here are a few open-source projects that made it possible:**

Also applies to: 130-130

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@apps/website/docs/overview.mdx` at line 54, Replace the phrase "with regard
to the cell structure of their notebooks" with a cleaner alternative like
"regarding the cell structure of their notebooks" (or "respecting the cell
structure...") in the sentence that ends "resolve merge conflicts intuitively,
and with regard to the cell structure of their notebooks"; also update the
sentence containing "stands on the shoulders of all of the hardworking
maintainers" by removing the redundant "of the" (becoming "stands on the
shoulders of all the hardworking maintainers") and hyphenate "open source" when
used adjectivally to "open-source" wherever that adjective appears.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@apps/website/docs/auto-resolution.tex`:
- Around line 130-142: The "Conflicted" node (the \node[font=\sffamily\small,
text=errRed] at (6.1, -1.2) {Conflicted};) is ambiguously placed under only the
whitespace row while arrows such as \draw[->, ...] (8.4, 0.0) to[out=0, in=180]
(9.8, 1.6); still route the whitespace into the Auto Resolved column; fix by
either removing that \node entirely, or move it upward so it clearly labels all
input rows as the pre-resolution "Conflicted" state (place it above the topmost
input row), or alternatively remove/adjust the specific arrow(s) for the
whitespace row (e.g., change/remove the \draw from (8.4, 0.0) ...) so whitespace
is not sent to the Auto Resolved column if the intent is to leave whitespace
unresolved.
- Around line 98-115: The diagram row shows two source cells that look different
but are drawn as auto-resolved—update the drawing so it matches the documented
rule: either make the Current and Incoming source cell shapes and code lines
identical (adjust the \draw[fill=curBg!40, draw=curBdr!80] rectangle and its
\codeline positions to match the \draw[fill=incBg!40, draw=incBdr!80] rectangle
and its \codeline positions), or add a clear text label near the row (e.g., a
small \node or text element adjacent to the output boxes) stating “only output
auto-cleared; sources differ” so the figure explicitly indicates only the output
region is being auto-cleared. Ensure the change references the existing
elements: the two source rectangles and \codeline lines plus the output boxes
drawn with errRed.

In `@apps/website/docs/overview.mdx`:
- Around line 114-124: The MDX in the feature block mixes JSX and block-level
Markdown without blank lines, causing the image and headings to be emitted as
literal text; update the block around the <div
className={styles.featureContainer}>, <div className={styles.featureImage}> and
the <div className={styles.featureText}> so there is a blank line before and
after the image markdown (![History panel](...)) and a blank line between the
closing </div> of the feature block and the "## Undo/Redo" and "## Syntax
highlighting" headings, ensuring MDX treats the image and headings as Markdown
rather than plain text.

---

Duplicate comments:
In `@apps/website/docs/overview.mdx`:
- Line 46: The image paths in apps/website/docs/overview.mdx still use
"../static/img/..." which will not resolve at build time; update each image
reference (light-theme.png, cell-reordering.svg, auto-resolution.svg,
history.png) to use Docusaurus static asset paths (e.g., change
"../static/img/xyz" to "/img/xyz" or wrap with useBaseUrl('/img/xyz')) so the
assets are served from the site root and onBrokenLinks won't fail; locate the
img markdown entries in overview.mdx and replace the path for each image
accordingly.
- Line 54: Replace the phrase "with regard to the cell structure of their
notebooks" with a cleaner alternative like "regarding the cell structure of
their notebooks" (or "respecting the cell structure...") in the sentence that
ends "resolve merge conflicts intuitively, and with regard to the cell structure
of their notebooks"; also update the sentence containing "stands on the
shoulders of all of the hardworking maintainers" by removing the redundant "of
the" (becoming "stands on the shoulders of all the hardworking maintainers") and
hyphenate "open source" when used adjectivally to "open-source" wherever that
adjective appears.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: b79a0e62-84f8-4623-a1ca-3ea737634b8b

📥 Commits

Reviewing files that changed from the base of the PR and between 7c010fd and 843796a.

⛔ Files ignored due to path filters (2)
  • apps/website/static/img/auto-resolution.svg is excluded by !**/*.svg
  • apps/website/static/img/history.png is excluded by !**/*.png
📒 Files selected for processing (2)
  • apps/website/docs/auto-resolution.tex
  • apps/website/docs/overview.mdx

Comment thread apps/website/docs/auto-resolution.tex Resolved
Comment thread apps/website/docs/auto-resolution.tex Resolved
Comment thread apps/website/docs/overview.mdx Resolved
Avni2000 and others added 6 commits April 27, 2026 16:06
- non-overlapping arrows
- red/green boxes
- forgot to remove before.
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
@Avni2000
Avni2000 enabled auto-merge April 27, 2026 21:30
@sonarqubecloud

Copy link
Copy Markdown

@Avni2000
Avni2000 merged commit 5687c85 into main Apr 27, 2026
7 checks passed
@Avni2000
Avni2000 deleted the better-docs branch April 27, 2026 21:36
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