Skip to content

feat(plugin-content-blog): add getBlogPostBreadcrumbs() helper (AI-as… - #13067

Open
Aryan-Rustagi wants to merge 1 commit into
meta:mainfrom
kalviumcommunity:fix/8635-blog-breadcrumbs
Open

Aryan-Rustagi wants to merge 1 commit into
meta:mainfrom
kalviumcommunity:fix/8635-blog-breadcrumbs

Conversation

@Aryan-Rustagi

@Aryan-Rustagi Aryan-Rustagi commented Nov 17, 2026 •

Copy link
Copy Markdown

…sisted)

Pre-flight checklist

  • I have read the Contributing Guidelines on pull requests.
  • If this is a code change: I have written unit tests and/or added dogfooding pages to fully verify the new behavior.
  • If this is a new API or substantial change: the PR has an accompanying issue (closes #0000) and the maintainers have approved on my working plan.

Motivation

Test Plan

Test links

Deploy preview: https://deploy-preview-_____--docusaurus-2.netlify.app/

Related issues/PRs

Summary by CodeRabbit

  • New Features
    • Added a blog post breadcrumb helper that creates Home, Blog, and post links. It accepts either a post’s title and URL or a post object, and supports custom Home and Blog labels and URLs. Default labels and URLs are provided when custom values aren’t specified.

@meta-cla

meta-cla Bot commented Nov 17, 2026

Copy link
Copy Markdown

Hi @Aryan-Rustagi!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The blog client adds an exported helper that creates Home, Blog, and post breadcrumb items. The helper accepts a post object or a title and URL, with optional label and URL overrides.

Changes: Blog post breadcrumbs

Layer / File(s) Summary
Define and expose the breadcrumb helper
packages/docusaurus-plugin-content-blog/src/client/breadcrumbUtils.ts, packages/docusaurus-plugin-content-blog/src/client/index.tsx, packages/docusaurus-plugin-content-blog/src/client/breadcrumbUtils.test.ts
Adds breadcrumb types and overloads, exports the helper and types from the client entry point, and tests object and positional inputs, URL selection, and custom labels and URLs.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Merge Risk: Minimal · up to 919b3

This adds a new, self-contained breadcrumb helper with tests. No concrete defects were found, and it is low risk to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: adding a getBlogPostBreadcrumbs() helper to plugin-content-blog. The changeset adds exactly this helper, its types, overloads, re-exports, and tests. The title is trun…
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.
Full details: Title check

Explanation

The title names the main change: adding a getBlogPostBreadcrumbs() helper to plugin-content-blog. The changeset adds exactly this helper, its types, overloads, re-exports, and tests. The title is truncated mid-word ("AI-as…") and carries a feat(...) prefix, but the primary change is clear. No unrelated or misleading content was found.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7a79f626-a73b-40aa-b116-057cce24ad08
Commits

Reviewing files that changed from the base of the PR and between 4c4ec4a and 919b3c6.

Files selected for processing: 3

  • packages/docusaurus-plugin-content-blog/src/client/breadcrumbUtils.test.ts
  • packages/docusaurus-plugin-content-blog/src/client/breadcrumbUtils.ts
  • packages/docusaurus-plugin-content-blog/src/client/index.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@netlify

netlify Bot commented Nov 17, 2026

Copy link
Copy Markdown

✅ [V2]

Built without sensitive environment variables

Name Link
🔨 Latest commit 919b3c6
🔍 Latest deploy log https://app.netlify.com/projects/docusaurus-2/deploys/6afc1e015ff012c885fd65b7
😎 Deploy Preview https://deploy-preview-13067--docusaurus-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

This branch has not been deployed

No deployments
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