Skip to content

Commit 4b73aef

Browse files
justin808claude
andauthored
Fix sidebar navigation issues from #2886 review (#2892)
## Summary Addresses 4 remaining review items from #2886: - **Migrating section discoverability**: Added `type: 'ref'` link to `migrating-to-rsc` in the top-level Migrating category so users browsing "Migrating" can find the RSC migration series (previously only nested under React Server Components) - **Migrating generated-index**: Added `link: { type: 'generated-index' }` to the Migrating category for consistency with Getting Started, Core Concepts, and Building Features - **Changelog as in-repo doc**: Replaced the external GitHub link to `CHANGELOG.md` with the in-repo `upgrading/changelog` doc reference, giving readers Docusaurus rendering and search - **Pro ref label**: Added explicit label `"React on Rails Pro (Overview)"` to the `type: 'ref'` entry in Core Concepts so it's clear this links to a Pro feature Fixes #2886 ## Test plan - [ ] Run `npm run prepare && npm run build:full` on site repo to verify sidebar generates correctly - [ ] Verify Migrating section shows the RSC migration entry point - [ ] Verify changelog renders in Docusaurus instead of linking externally 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Low risk because this only adjusts Docusaurus sidebar configuration (navigation labels/links) with no runtime or data/security impact; main risk is broken doc IDs causing missing sidebar entries. > > **Overview** > Improves Docusaurus sidebar navigation by clarifying the `React on Rails Pro` reference label in **Core Concepts**, adding a generated index and top-level entry for `migrating/migrating-to-rsc` under **Migrating**, and switching **Upgrading → Full Changelog** from an external GitHub URL to the in-repo `upgrading/changelog` doc so it renders and is searchable. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 5d8b7ff. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Updated documentation navigation structure for better organization * Full Changelog now accessible directly from documentation instead of external link * Added new guide for migrating to RSC * Improved Pro overview documentation labeling <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2b09b6a commit 4b73aef

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

docs/sidebars.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const sidebars: SidebarsConfig = {
6666
'core-concepts/webpack-configuration',
6767
'core-concepts/execjs-limitations',
6868
'core-concepts/performance-benchmarks',
69-
{ type: 'ref', id: 'pro/react-on-rails-pro' },
69+
{ type: 'ref', id: 'pro/react-on-rails-pro', label: 'React on Rails Pro (Overview)' },
7070
],
7171
},
7272
{
@@ -181,11 +181,7 @@ const sidebars: SidebarsConfig = {
181181
label: 'Upgrading',
182182
items: [
183183
'upgrading/upgrading-react-on-rails',
184-
{
185-
type: 'link',
186-
label: 'Full Changelog',
187-
href: 'https://github.com/shakacode/react_on_rails/blob/main/CHANGELOG.md',
188-
},
184+
{ type: 'doc', id: 'upgrading/changelog', label: 'Full Changelog' },
189185
{
190186
type: 'category',
191187
label: 'Release Notes',
@@ -210,8 +206,10 @@ const sidebars: SidebarsConfig = {
210206
{
211207
type: 'category',
212208
label: 'Migrating',
209+
link: { type: 'generated-index', title: 'Migrating' },
213210
items: [
214211
'migrating/migrating-from-react-rails',
212+
{ type: 'ref', id: 'migrating/migrating-to-rsc' },
215213
'migrating/migrating-from-vite-rails',
216214
'migrating/migrating-from-webpack-to-rspack',
217215
'migrating/babel-to-swc-migration',

0 commit comments

Comments
 (0)