Repository navigation
Conversation
📝 WalkthroughWalkthroughAdds a complete Docusaurus website under Changes
Sequence Diagram(s)sequenceDiagram
participant Dev as Developer
participant GH as GitHub (Push / Workflow Dispatch)
participant Actions as GitHub Actions Runner
participant Builder as Node.js (npm ci / npm run build)
participant Artifact as Actions Artifact Storage
participant Pages as GitHub Pages (actions/deploy-pages)
Dev->>GH: push to main or manual workflow_dispatch\n(affecting apps/website/**)
GH->>Actions: trigger deploy-website workflow
Actions->>Builder: checkout, setup-node (22), npm ci, npm run build (./apps/website)
Builder-->>Artifact: upload ./apps/website/build as pages artifact
Actions->>Pages: deploy artifact via actions/deploy-pages@v5
Pages-->>GH: set deployment URL in github-pages environment
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 4
🧹 Nitpick comments (2)
apps/website/docusaurus.config.ts (1)
49-60: Replace template repository links with project links.
editUrland navbar/footer GitHub URLs still point tofacebook/docusaurus, which sends users to the wrong repo.🔗 Suggested URL updates
- editUrl: - 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/', + editUrl: + 'https://github.com/Avni2000/MergeNB/tree/main/apps/website/', ... - editUrl: - 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/', + editUrl: + 'https://github.com/Avni2000/MergeNB/tree/main/apps/website/', ... - href: 'https://github.com/facebook/docusaurus', + href: 'https://github.com/Avni2000/MergeNB', ... - href: 'https://github.com/facebook/docusaurus', + href: 'https://github.com/Avni2000/MergeNB',Also applies to: 94-95, 137-139
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@apps/website/docusaurus.config.ts` around lines 49 - 60, Replace the placeholder Docusaurus template GitHub links with the project repository links: update the blog.editUrl value and any navbar/footer GitHub URL strings (the occurrences shown in the config for editUrl and the navbar/footer GitHub entries) so they no longer point to 'facebook/docusaurus' but to your project's GitHub URL; search for the string 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/' and replace each occurrence (including the instances around blog.editUrl and the navbar/footer GitHub links referenced) with the correct project repo URL.apps/website/docs/tutorial-basics/markdown-features.mdx (1)
134-147: Use a semantic control for the interactive highlight.
onClickon a<span>is not keyboard-friendly. Prefer a<button type="button">for accessibility.♿ Suggested accessibility refactor
export const Highlight = ({children, color}) => ( - <span + <button + type="button" style={{ backgroundColor: color, borderRadius: '20px', color: '#fff', padding: '10px', cursor: 'pointer', + border: 'none', }} onClick={() => { alert(`You clicked the color ${color} with label ${children}`); }}> {children} - </span> + </button> );🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@apps/website/docs/tutorial-basics/markdown-features.mdx` around lines 134 - 147, The Highlight component uses a clickable <span> which is not keyboard-accessible; change the root element in the Highlight component to a <button type="button">, move the onClick handler to that button, preserve the existing inline styles (add styles to remove default button border/background if necessary) and keep rendering {children} and using the color prop for backgroundColor; ensure the button remains semantically focusable and behaves identically to the previous onClick behavior.
🤖 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/tutorial-basics/congratulations.md`:
- Line 18: Update the documentation text that references the config filename so
it matches the TypeScript config used in the project: replace the link label
"docusaurus.config.js" with "docusaurus.config.ts" in the line that currently
reads 'Modify your site configuration with [`docusaurus.config.js`]...',
ensuring the visible filename matches the actual config file while leaving the
URL to the Docusaurus config docs unchanged.
In `@apps/website/docs/tutorial-basics/create-a-document.md`:
- Around line 42-57: Update the code block so it reflects the TypeScript config
file: change the code fence language from `js` to `ts` and update the displayed
title from `sidebars.js` to `sidebars.ts`; keep the exported default object and
the `tutorialSidebar` array (including 'intro', 'hello', and the category with
items ['tutorial-basics/create-a-document']) identical so the snippet still
shows the same configuration but correctly identifies it as a TypeScript file.
In `@apps/website/docs/tutorial-extras/translate-your-site.md`:
- Around line 11-14: Update the documentation to reference the repository's
actual Docusaurus config filename: change all occurrences and code block titles
from docusaurus.config.js to docusaurus.config.ts (including the code block
language hint from js to ts and the file title in the first example that shows
"export default"). Ensure both places noted in the comment (the initial example
around the export and the later section at lines 54-57) are updated so the
instructions and code block titles match the repo's docusaurus.config.ts.
In `@apps/website/docusaurus.config.ts`:
- Around line 1-3: CI type-check is failing because root tsconfig.json includes
apps/**/*.ts(x) which pulls in apps/website/docusaurus.config.ts that imports
`@docusaurus/types`, `@docusaurus/preset-classic` and prism-react-renderer not
installed at root; fix by either removing/excluding apps/website (or the
apps/**/*.ts(x) pattern) from the root tsconfig.json so docusaurus.config.ts is
not compiled by the root tsc, or enable npm workspaces in the root package.json
(e.g., add a "workspaces" entry covering apps/*) so root npm ci installs website
deps; update the appropriate file (tsconfig.json to add an "exclude" for
apps/website or package.json to add workspaces) and keep deploy-website.yml’s
isolated website build intact.
---
Nitpick comments:
In `@apps/website/docs/tutorial-basics/markdown-features.mdx`:
- Around line 134-147: The Highlight component uses a clickable <span> which is
not keyboard-accessible; change the root element in the Highlight component to a
<button type="button">, move the onClick handler to that button, preserve the
existing inline styles (add styles to remove default button border/background if
necessary) and keep rendering {children} and using the color prop for
backgroundColor; ensure the button remains semantically focusable and behaves
identically to the previous onClick behavior.
In `@apps/website/docusaurus.config.ts`:
- Around line 49-60: Replace the placeholder Docusaurus template GitHub links
with the project repository links: update the blog.editUrl value and any
navbar/footer GitHub URL strings (the occurrences shown in the config for
editUrl and the navbar/footer GitHub entries) so they no longer point to
'facebook/docusaurus' but to your project's GitHub URL; search for the string
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/'
and replace each occurrence (including the instances around blog.editUrl and the
navbar/footer GitHub links referenced) with the correct project repo URL.
🪄 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: CHILL
Plan: Pro
Run ID: 324f77df-0ee5-47b6-a4e6-3349cb748577
⛔ Files ignored due to path filters (11)
apps/website/blog/2021-08-26-welcome/docusaurus-plushie-banner.jpegis excluded by!**/*.jpegapps/website/docs/tutorial-extras/img/docsVersionDropdown.pngis excluded by!**/*.pngapps/website/docs/tutorial-extras/img/localeDropdown.pngis excluded by!**/*.pngapps/website/package-lock.jsonis excluded by!**/package-lock.jsonapps/website/static/img/docusaurus-social-card.jpgis excluded by!**/*.jpgapps/website/static/img/docusaurus.pngis excluded by!**/*.pngapps/website/static/img/favicon.icois excluded by!**/*.icoapps/website/static/img/logo.svgis excluded by!**/*.svgapps/website/static/img/undraw_docusaurus_mountain.svgis excluded by!**/*.svgapps/website/static/img/undraw_docusaurus_react.svgis excluded by!**/*.svgapps/website/static/img/undraw_docusaurus_tree.svgis excluded by!**/*.svg
📒 Files selected for processing (31)
.github/workflows/deploy-website.ymlapps/website/.gitignoreapps/website/README.mdapps/website/blog/2019-05-28-first-blog-post.mdapps/website/blog/2019-05-29-long-blog-post.mdapps/website/blog/2021-08-01-mdx-blog-post.mdxapps/website/blog/2021-08-26-welcome/index.mdapps/website/blog/authors.ymlapps/website/blog/tags.ymlapps/website/docs/intro.mdapps/website/docs/tutorial-basics/_category_.jsonapps/website/docs/tutorial-basics/congratulations.mdapps/website/docs/tutorial-basics/create-a-blog-post.mdapps/website/docs/tutorial-basics/create-a-document.mdapps/website/docs/tutorial-basics/create-a-page.mdapps/website/docs/tutorial-basics/deploy-your-site.mdapps/website/docs/tutorial-basics/markdown-features.mdxapps/website/docs/tutorial-extras/_category_.jsonapps/website/docs/tutorial-extras/manage-docs-versions.mdapps/website/docs/tutorial-extras/translate-your-site.mdapps/website/docusaurus.config.tsapps/website/package.jsonapps/website/sidebars.tsapps/website/src/components/HomepageFeatures/index.tsxapps/website/src/components/HomepageFeatures/styles.module.cssapps/website/src/css/custom.cssapps/website/src/pages/index.module.cssapps/website/src/pages/index.tsxapps/website/src/pages/markdown-page.mdapps/website/static/.nojekyllapps/website/tsconfig.json
Motivation
Take advantage of our monorepo structure to add the scaffolding for a docusaurus website.
Solution