Skip to content

Commit b6868b8

Browse files
justin808claude
andcommitted
Fix all broken documentation links after file reorganization
Updated 133+ broken internal documentation links across 28 files to reflect the new directory structure: - guides/ → getting-started/, core-concepts/, building-features/, deployment/, upgrading/ - api/ → api-reference/ - javascript/ → building-features/, deployment/, outdated/ - rails/ → building-features/, migrating/ - additional-details/ → getting-started/, advanced-topics/, misc/ - troubleshooting/ → deployment/ - quick-start/ → getting-started/ - release-notes/ → upgrading/release-notes/ - react-on-rails-pro/ → pro/ All links now point to correct locations in the reorganized structure. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 6458bd2 commit b6868b8

28 files changed

+129
-129
lines changed

docs/README.md

Lines changed: 60 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
New to React on Rails? Start here for the fastest path to success:
88

9-
**[15-Minute Quick Start Guide](./quick-start/README.md)**
9+
**[15-Minute Quick Start Guide](./getting-started/quick-start.md)**
1010

11-
Already have Rails + Shakapacker? **[Add to existing app guide](./guides/installation-into-an-existing-rails-app.md)**
11+
Already have Rails + Shakapacker? **[Add to existing app guide](./getting-started/installation-into-an-existing-rails-app.md)**
1212

1313
## 📚 Learning Paths
1414

@@ -18,72 +18,72 @@ Choose your journey based on your experience level:
1818

1919
Perfect if you're new to React on Rails
2020

21-
1. **[Quick Start](./quick-start/README.md)** - Get your first component running
21+
1. **[Quick Start](./getting-started/quick-start.md)** - Get your first component running
2222
2. **[Core Concepts](./getting-started.md)** - Understand the basics
23-
3. **[Tutorial](./guides/tutorial.md)** - Build something useful
23+
3. **[Tutorial](./getting-started/tutorial.md)** - Build something useful
2424

2525
### **Experienced Developer Path**
2626

2727
Jump to what you need
2828

29-
- **[Installation Guide](./guides/installation-into-an-existing-rails-app.md)** - Detailed setup
30-
- **[API Reference](./api/README.md)** - Quick lookup
31-
- **[Advanced Features](./guides/advanced/README.md)** - SSR, Redux, Router
29+
- **[Installation Guide](./getting-started/installation-into-an-existing-rails-app.md)** - Detailed setup
30+
- **[API Reference](./api-reference/README.md)** - Quick lookup
31+
- **[Advanced Features](./advanced-topics/README.md)** - SSR, Redux, Router
3232

3333
### 🏗️ **Migrating from Other Solutions**
3434

35-
- **[From react-rails](./additional-details/migrating-from-react-rails.md)** - Switch from the react-rails gem
36-
- **[Upgrading React on Rails](./guides/upgrading-react-on-rails.md)** - Version upgrade guide
35+
- **[From react-rails](./migrating/migrating-from-react-rails.md)** - Switch from the react-rails gem
36+
- **[Upgrading React on Rails](./upgrading/upgrading-react-on-rails.md)** - Version upgrade guide
3737

3838
## 🎯 Popular Use Cases
3939

4040
Find guidance for your specific scenario:
4141

42-
| I want to... | Go here |
43-
| ----------------------------------- | -------------------------------------------------------------------------- |
44-
| **Add React to existing Rails app** | [Installation Guide](./guides/installation-into-an-existing-rails-app.md) |
45-
| **Enable server-side rendering** | [SSR Guide](./guides/react-server-rendering.md) |
46-
| **Set up hot reloading** | [HMR Setup](./guides/hmr-and-hot-reloading-with-the-webpack-dev-server.md) |
47-
| **Use Redux with Rails** | [Redux Integration](./javascript/react-and-redux.md) |
48-
| **Deploy to production** | [Deployment Guide](./guides/deployment.md) |
49-
| **Troubleshoot issues** | [Troubleshooting](./troubleshooting/README.md) |
42+
| I want to... | Go here |
43+
| ----------------------------------- | ------------------------------------------------------------------------------------- |
44+
| **Add React to existing Rails app** | [Installation Guide](./getting-started/installation-into-an-existing-rails-app.md) |
45+
| **Enable server-side rendering** | [SSR Guide](./core-concepts/react-server-rendering.md) |
46+
| **Set up hot reloading** | [HMR Setup](./building-features/hmr-and-hot-reloading-with-the-webpack-dev-server.md) |
47+
| **Use Redux with Rails** | [Redux Integration](./building-features/react-and-redux.md) |
48+
| **Deploy to production** | [Deployment Guide](./deployment/deployment.md) |
49+
| **Troubleshoot issues** | [Troubleshooting](./deployment/troubleshooting.md) |
5050

5151
## 📖 Complete Documentation
5252

5353
### Core Guides
5454

5555
- **[Getting Started](./getting-started.md)** - Installation and basic setup
56-
- **[Tutorial](./guides/tutorial.md)** - Complete walkthrough with examples
57-
- **[Configuration](./guides/configuration.md)** - All configuration options
58-
- **[View Helpers](./api/view-helpers-api.md)** - Using `react_component` method
56+
- **[Tutorial](./getting-started/tutorial.md)** - Complete walkthrough with examples
57+
- **[Configuration](./api-reference/configuration.md)** - All configuration options
58+
- **[View Helpers](./api-reference/view-helpers-api.md)** - Using `react_component` method
5959

6060
### Features
6161

62-
- **[Server-Side Rendering](./guides/react-server-rendering.md)** - SSR setup and optimization
63-
- **[Auto-Bundling](./guides/auto-bundling-file-system-based-automated-bundle-generation.md)** - Automatic bundle generation
64-
- **[Redux Integration](./javascript/react-and-redux.md)** - State management with Redux
65-
- **[React Router](./javascript/react-router.md)** - Client-side routing
66-
- **[Internationalization](./guides/i18n.md)** - I18n support
62+
- **[Server-Side Rendering](./core-concepts/react-server-rendering.md)** - SSR setup and optimization
63+
- **[Auto-Bundling](./core-concepts/auto-bundling-file-system-based-automated-bundle-generation.md)** - Automatic bundle generation
64+
- **[Redux Integration](./building-features/react-and-redux.md)** - State management with Redux
65+
- **[React Router](./building-features/react-router.md)** - Client-side routing
66+
- **[Internationalization](./building-features/i18n.md)** - I18n support
6767

6868
### Development
6969

70-
- **[Hot Module Replacement](./guides/hmr-and-hot-reloading-with-the-webpack-dev-server.md)** - Fast development workflow
71-
- **[Testing](./guides/rspec-configuration.md)** - Testing React components
72-
- **[Debugging](./javascript/troubleshooting-build-errors.md)** - Common debugging techniques
70+
- **[Hot Module Replacement](./building-features/hmr-and-hot-reloading-with-the-webpack-dev-server.md)** - Fast development workflow
71+
- **[Testing](./building-features/rspec-configuration.md)** - Testing React components
72+
- **[Debugging](./deployment/troubleshooting-build-errors.md)** - Common debugging techniques
7373

7474
### Deployment & Performance
7575

76-
- **[Deployment](./guides/deployment.md)** - Production deployment guide
77-
- **[Performance](./guides/webpack-configuration.md)** - Optimization techniques
78-
- **[Bundle Optimization](./guides/webpack-configuration.md)** - Reduce bundle size
76+
- **[Deployment](./deployment/deployment.md)** - Production deployment guide
77+
- **[Performance](./core-concepts/webpack-configuration.md)** - Optimization techniques
78+
- **[Bundle Optimization](./core-concepts/webpack-configuration.md)** - Reduce bundle size
7979

8080
## 🆘 Need Help?
8181

8282
### Quick Solutions
8383

84-
- **[Troubleshooting Guide](./troubleshooting/README.md)** - Common issues and solutions
85-
- **[FAQ](./troubleshooting/README.md)** - Frequently asked questions
86-
- **[Error Messages](./javascript/troubleshooting-build-errors.md)** - Decode error messages
84+
- **[Troubleshooting Guide](./deployment/troubleshooting.md)** - Common issues and solutions
85+
- **[FAQ](./deployment/troubleshooting.md)** - Frequently asked questions
86+
- **[Error Messages](./deployment/troubleshooting-build-errors.md)** - Decode error messages
8787

8888
### Community Support
8989

@@ -108,62 +108,62 @@ Find guidance for your specific scenario:
108108

109109
### API Reference
110110

111-
- [View Helpers API](./api/view-helpers-api.md)
112-
- [Redux Store API](./api/redux-store-api.md)
113-
- [JavaScript API](./api/javascript-api.md)
111+
- [View Helpers API](./api-reference/view-helpers-api.md)
112+
- [Redux Store API](./api-reference/redux-store-api.md)
113+
- [JavaScript API](./api-reference/javascript-api.md)
114114

115115
### Guides
116116

117117
#### Getting Started
118118

119119
- [Installation](./getting-started.md)
120-
- [Tutorial](./guides/tutorial.md)
121-
- [Basic Configuration](./guides/configuration.md)
120+
- [Tutorial](./getting-started/tutorial.md)
121+
- [Basic Configuration](./api-reference/configuration.md)
122122

123123
#### Core Features
124124

125-
- [Server-Side Rendering](./guides/react-server-rendering.md)
126-
- [Component Registration](./guides/render-functions-and-railscontext.md)
127-
- [Props and RailsContext](./guides/render-functions-and-railscontext.md)
125+
- [Server-Side Rendering](./core-concepts/react-server-rendering.md)
126+
- [Component Registration](./core-concepts/render-functions-and-railscontext.md)
127+
- [Props and RailsContext](./core-concepts/render-functions-and-railscontext.md)
128128

129129
#### State Management
130130

131-
- [Redux Integration](./javascript/react-and-redux.md)
132-
- [Context API](./guides/render-functions-and-railscontext.md)
131+
- [Redux Integration](./building-features/react-and-redux.md)
132+
- [Context API](./core-concepts/render-functions-and-railscontext.md)
133133

134134
#### Routing
135135

136-
- [React Router Setup](./javascript/react-router.md)
137-
- [Server-Side Routing](./guides/react-server-rendering.md)
136+
- [React Router Setup](./building-features/react-router.md)
137+
- [Server-Side Routing](./core-concepts/react-server-rendering.md)
138138

139139
#### Advanced Topics
140140

141-
- [Webpack Configuration](./guides/webpack-configuration.md)
142-
- [Code Splitting](./javascript/code-splitting.md)
143-
- [Performance Optimization](./guides/webpack-configuration.md)
141+
- [Webpack Configuration](./core-concepts/webpack-configuration.md)
142+
- [Code Splitting](./building-features/code-splitting.md)
143+
- [Performance Optimization](./core-concepts/webpack-configuration.md)
144144

145145
#### Development
146146

147-
- [Hot Module Replacement](./guides/hmr-and-hot-reloading-with-the-webpack-dev-server.md)
148-
- [Testing Components](./guides/rspec-configuration.md)
149-
- [Debugging](./javascript/troubleshooting-build-errors.md)
147+
- [Hot Module Replacement](./building-features/hmr-and-hot-reloading-with-the-webpack-dev-server.md)
148+
- [Testing Components](./building-features/rspec-configuration.md)
149+
- [Debugging](./deployment/troubleshooting-build-errors.md)
150150

151151
#### Deployment
152152

153-
- [Production Setup](./guides/deployment.md)
154-
- [Heroku Deployment](./guides/deployment.md)
155-
- [Docker Setup](./guides/deployment.md)
153+
- [Production Setup](./deployment/deployment.md)
154+
- [Heroku Deployment](./deployment/deployment.md)
155+
- [Docker Setup](./deployment/deployment.md)
156156

157157
### Migration Guides
158158

159-
- [Upgrading React on Rails](./guides/upgrading-react-on-rails.md)
160-
- [From react-rails gem](./additional-details/migrating-from-react-rails.md)
159+
- [Upgrading React on Rails](./upgrading/upgrading-react-on-rails.md)
160+
- [From react-rails gem](./migrating/migrating-from-react-rails.md)
161161

162162
### Troubleshooting
163163

164-
- [Common Issues](./troubleshooting/README.md)
165-
- [Error Messages](./javascript/troubleshooting-build-errors.md)
166-
- [Performance Issues](./javascript/troubleshooting-build-errors.md)
164+
- [Common Issues](./deployment/troubleshooting.md)
165+
- [Error Messages](./deployment/troubleshooting-build-errors.md)
166+
- [Performance Issues](./deployment/troubleshooting-build-errors.md)
167167

168168
### Contributing
169169

docs/advanced-topics/manual-installation-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The only requirements within this directory for basic React on Rails integration
1313
1. Your Webpack configuration files:
1414
1. Create outputs in a directory like `/public/webpack`, which is customizable in your `config/initializers/react_on_rails.rb`.
1515
1. Provide server rendering if you wish to use that feature.
16-
1. Your JavaScript code "registers" any components and stores per the ReactOnRails APIs of ReactOnRails.register(components) and ReactOnRails.registerStore(stores). See [our JavaScript API docs](../api/javascript-api.md) and the [React on Rails source](https://github.com/shakacode/react_on_rails/tree/master/packages/react-on-rails/src/ReactOnRails.client.ts).
16+
1. Your JavaScript code "registers" any components and stores per the ReactOnRails APIs of ReactOnRails.register(components) and ReactOnRails.registerStore(stores). See [our JavaScript API docs](../api-reference/javascript-api.md) and the [React on Rails source](https://github.com/shakacode/react_on_rails/tree/master/packages/react-on-rails/src/ReactOnRails.client.ts).
1717
1. Set your registration file as an "entry" point in your Webpack configs.
1818
1. Configure scripts in `client/package.json` as shown in the example apps. These are used for building your Webpack assets. Also do this for your top-level `package.json`.
1919

docs/api-reference/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
Complete API documentation for React on Rails.
44

5-
- [View Helpers API](./view-helpers-api.md)
6-
- [Redux Store API](./redux-store-api.md)
7-
- [JavaScript API](./javascript-api.md)
5+
- [View Helpers API](../api-reference/view-helpers-api.md)
6+
- [Redux Store API](../api-reference/redux-store-api.md)
7+
- [JavaScript API](../api-reference/javascript-api.md)

docs/api-reference/generator-details.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Then you may run
3737
`rails s`
3838
```
3939

40-
Another good option is to create a simple test app per the [Tutorial](../guides/tutorial.md).
40+
Another good option is to create a simple test app per the [Tutorial](../getting-started/tutorial.md).
4141

4242
# Understanding the Organization of the Generated Client Code
4343

docs/api-reference/view-helpers-api.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Uncommonly used options:
2525
```
2626

2727
- **component_name:** Can be a React component, created using a React Function Component, an ES6 class or a Render-Function that returns a React component (or, only on the server side, an object with shape `{ redirectLocation, error, renderedHtml }`), or a "renderer function" that manually renders a React component to the dom (client side only). Note, a "renderer function" is a special type of "Render-Function." A "renderer function" takes a 3rd param of a DOM ID.
28-
All options except `props, id, html_options` will inherit from your `react_on_rails.rb` initializer, as described [here](../guides/configuration.md).
28+
All options except `props, id, html_options` will inherit from your `react_on_rails.rb` initializer, as described [here](../api-reference/configuration.md).
2929
- **general options:**
3030
- **props:** Ruby Hash which contains the properties to pass to the React object, or a JSON string. If you pass a string, we'll escape it for you.
3131
- **prerender:** enable server-side rendering of a component. Set to false when debugging!
@@ -105,7 +105,7 @@ You can call `rails_context` or `rails_context(server_side: true|false)` from yo
105105

106106
A "renderer function" is a Render-Function that accepts three arguments (rather than 2): `(props, railsContext, domNodeId) => { ... }`. Instead of returning a React component, a renderer is responsible for installing a callback that will call `ReactDOM.render` (in React 16+, `ReactDOM.hydrate`) to render a React component into the DOM. The "renderer function" is called at the same time the document ready event would instantiate the React components into the DOM.
107107

108-
Why would you want to call `ReactDOM.hydrate` yourself? One possible use case is [code splitting](../javascript/code-splitting.md). In a nutshell, you don't want to load the React component on the DOM node yet. So you want to install some handler that will call `ReactDOM.hydrate` at a later time. In the case of code splitting with server rendering, the server rendered code has any async code loaded and used to server render. Thus, the client code must also fully load any asynch code before server rendering. Otherwise, the client code would first render partially, not matching the server rendering, and then a second later, the full code would render, resulting in an unpleasant flashing on the screen.
108+
Why would you want to call `ReactDOM.hydrate` yourself? One possible use case is [code splitting](../building-features/code-splitting.md). In a nutshell, you don't want to load the React component on the DOM node yet. So you want to install some handler that will call `ReactDOM.hydrate` at a later time. In the case of code splitting with server rendering, the server rendered code has any async code loaded and used to server render. Thus, the client code must also fully load any asynch code before server rendering. Otherwise, the client code would first render partially, not matching the server rendering, and then a second later, the full code would render, resulting in an unpleasant flashing on the screen.
109109

110110
Renderer functions are not meant to be used on the server since there's no DOM on the server. Instead, use a Render-Function. Attempting to server render with a renderer function will throw an error.
111111

@@ -115,9 +115,9 @@ Renderer functions are not meant to be used on the server since there's no DOM o
115115

116116
[React Router](https://reactrouter.com/) is supported, including server-side rendering! See:
117117

118-
1. [React on Rails docs for React Router](../javascript/react-router.md)
118+
1. [React on Rails docs for React Router](../building-features/react-router.md)
119119
2. Examples in [spec/dummy/app/views/react_router](https://github.com/shakacode/react_on_rails/tree/master/spec/dummy/app/views/react_router) and follow to the JavaScript code in the [spec/dummy/client/app/startup/RouterApp.server.jsx](https://github.com/shakacode/react_on_rails/tree/master/spec/dummy/client/app/startup/RouterApp.server.jsx).
120-
3. [Code Splitting docs](../javascript/code-splitting.md) for information about how to set up code splitting for server rendered routes.
120+
3. [Code Splitting docs](../building-features/code-splitting.md) for information about how to set up code splitting for server rendered routes.
121121

122122
---
123123

docs/building-features/code-splitting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ ReactOnRails.register({
7171
});
7272
```
7373

74-
Note that you should not register a renderer on the server, since there won't be a domNodeId when we're server rendering. Note that the `RouterApp` imported by `serverRegistration.js` is from a different file. For an example of how to set up an app for server rendering, see the [react router docs](./react-router.md).
74+
Note that you should not register a renderer on the server, since there won't be a domNodeId when we're server rendering. Note that the `RouterApp` imported by `serverRegistration.js` is from a different file. For an example of how to set up an app for server rendering, see the [react router docs](../building-features/react-router.md).
7575

7676
#### RouterAppRenderer.jsx
7777

docs/building-features/how-to-conditionally-server-render-based-on-device-type.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ end
3737

3838
Note, full details of the React on Rails configuration are [here in docs/basics/configuration.md](https://shakacode.com/react-on-rails/docs/guides/configuration/).
3939

40-
See the doc file [render-functions-and-railscontext.md](./render-functions-and-railscontext.md#rails-context) for how your client-side code uses the device information
40+
See the doc file [render-functions-and-railscontext.md](../core-concepts/render-functions-and-railscontext.md#rails-context) for how your client-side code uses the device information

docs/building-features/rspec-configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# RSpec Configuration
22

3-
_Click [here for minitest](./minitest-configuration.md)_
3+
_Click [here for minitest](../building-features/minitest-configuration.md)_
44

55
# If your Webpack configurations correspond to Shakapacker's default setup
66

@@ -11,7 +11,7 @@ compiled by Webpack before running tests and during production deployment:
1111
1. **Use Shakapacker's compile option**: Configure your `config/shakapacker.yml` so that `compile: true` is for `test` and `production`
1212
environments. Ensure that your `source_path` is correct, or else `Shakapacker` won't correctly
1313
detect changes.
14-
2. **Use the React on Rails settings and helpers**. Use the settings in `config/initializers/react_on_rails.rb`. Refer to [docs/configuration](./configuration.md).
14+
2. **Use the React on Rails settings and helpers**. Use the settings in `config/initializers/react_on_rails.rb`. Refer to [docs/configuration](../api-reference/configuration.md).
1515

1616
```yml
1717
config.build_test_command = "NODE_ENV=test RAILS_ENV=test bin/shakapacker"

0 commit comments

Comments
 (0)