Skip to content

Initialize docusaurus website - #218

Merged
Avni2000 merged 3 commits into
mainfrom
website
Apr 4, 2026
Merged

Avni2000 merged 3 commits into
mainfrom
website

Conversation

@Avni2000

@Avni2000 Avni2000 commented Apr 4, 2026 •

Copy link
Copy Markdown
Owner

Motivation

Take advantage of our monorepo structure to add the scaffolding for a docusaurus website.

Solution

@coderabbitai

coderabbitai Bot commented Apr 4, 2026 •

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

Adds a complete Docusaurus website under apps/website/ (site config, docs, blog, components, styles, package/TS config, gitignore, README) plus a GitHub Actions workflow to build and deploy the site to GitHub Pages.

Changes

Cohort / File(s) Summary
GitHub Actions Deployment
​.github/workflows/deploy-website.yml
New workflow "Deploy Website": manual/main trigger for apps/website/**, Node 22 build job that uploads ./apps/website/build as a Pages artifact, and a deploy job that runs actions/deploy-pages@v5 and records the deployment URL in the github-pages environment.
Site Configuration & Tooling
apps/website/docusaurus.config.ts, apps/website/sidebars.ts, apps/website/tsconfig.json, apps/website/package.json, tsconfig.json, eslint.config.mjs
Adds Docusaurus typed config and sidebar export, package.json scripts/deps/devDeps, local tsconfig for editor support, excludes apps/website from root TS & ESLint scopes.
Documentation Content
apps/website/docs/... (e.g. intro.md, tutorial-basics/*, tutorial-extras/*)
Many new docs pages and category metadata covering intro, tutorials (docs/pages/blog/markdown features/deploy/versioning/i18n) and extras.
Blog Content & Metadata
apps/website/blog/*, apps/website/blog/authors.yml, apps/website/blog/tags.yml
Adds multiple example blog posts (Markdown & MDX), author definitions (yangshun, slorber) and tag metadata (facebook, hello, docusaurus, hola).
Homepage & Components
apps/website/src/pages/index.tsx, apps/website/src/pages/index.module.css, apps/website/src/components/HomepageFeatures/..., apps/website/src/pages/markdown-page.md
Introduces homepage React component and header, HomepageFeatures component (3 items) with CSS modules, and an example standalone Markdown page.
Styling
apps/website/src/css/custom.css, apps/website/src/components/.../styles.module.css
Global custom CSS variables for theme and syntax highlighting plus component-scoped CSS modules.
Project Setup & Metadata
apps/website/.gitignore, apps/website/README.md
Adds .gitignore for web artifacts and a README with installation, dev, build, and deployment instructions.

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
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~22 minutes

Poem

🐰 I hopped through TypeScript and CSS green,

Docs and blogs sprouted, shiny and clean,
A header, three features, posts in a row,
Build ran, then Pages made the site glow,
I twitch my nose — deploys off we go! 🎉

🚥 Pre-merge checks | ✅ 2 | ❌ 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 (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Initialize docusaurus website' accurately and clearly summarizes the primary change—adding a complete new Docusaurus documentation website at apps/website/ with all necessary configuration, documentation pages, blog posts, components, and styling.

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

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch website

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: 4

🧹 Nitpick comments (2)
apps/website/docusaurus.config.ts (1)

49-60: Replace template repository links with project links.

editUrl and navbar/footer GitHub URLs still point to facebook/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.

onClick on 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

📥 Commits

Reviewing files that changed from the base of the PR and between 285e7a9 and 99a2c34.

⛔ Files ignored due to path filters (11)
  • 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/docusaurus-social-card.jpg is excluded by !**/*.jpg
  • apps/website/static/img/docusaurus.png is excluded by !**/*.png
  • apps/website/static/img/favicon.ico is excluded by !**/*.ico
  • 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 (31)
  • .github/workflows/deploy-website.yml
  • apps/website/.gitignore
  • apps/website/README.md
  • 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/intro.md
  • 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/static/.nojekyll
  • apps/website/tsconfig.json

Comment thread apps/website/docusaurus.config.ts Resolved
@Avni2000 Avni2000 changed the title Website Initialize docusaurus website Apr 4, 2026
@Avni2000
Avni2000 merged commit e3d4f05 into main Apr 4, 2026
5 checks passed
@Avni2000
Avni2000 deleted the website branch April 4, 2026 05:24
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