Skip to content

Commit 12aff13

Browse files
committed
docs: revise and consolidate server rendering guides
This commit updates the server rendering documentation and merges the prerendering, hybrid, and SSR sections for better clarity and organization. Closes angular#52884 and angular#60079.
1 parent 79b2ce4 commit 12aff13

File tree

8 files changed

+331
-464
lines changed

8 files changed

+331
-464
lines changed

adev/src/app/routes.ts

+8
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,14 @@ const REDIRECT_ROUTES: Route[] = [
214214
path: 'guide/components/anatomy-of-components',
215215
redirectTo: '/guide/components',
216216
},
217+
{
218+
path: 'guide/hybrid-rendering',
219+
redirectTo: '/guide/ssr',
220+
},
221+
{
222+
path: 'guide/prerendering',
223+
redirectTo: '/guide/ssr',
224+
},
217225
{
218226
path: 'guide',
219227
children: [

adev/src/app/sub-navigation-data.ts

+1-11
Original file line numberDiff line numberDiff line change
@@ -427,20 +427,10 @@ const DOCS_SUB_NAVIGATION_DATA: NavigationItem[] = [
427427
contentPath: 'guide/performance/overview',
428428
},
429429
{
430-
label: 'Server-side rendering',
430+
label: 'Server-side and hybrid-rendering',
431431
path: 'guide/ssr',
432432
contentPath: 'guide/ssr',
433433
},
434-
{
435-
label: 'Build-time prerendering',
436-
path: 'guide/prerendering',
437-
contentPath: 'guide/prerendering',
438-
},
439-
{
440-
label: 'Hybrid rendering with server routing',
441-
path: 'guide/hybrid-rendering',
442-
contentPath: 'guide/hybrid-rendering',
443-
},
444434
{
445435
label: 'Hydration',
446436
path: 'guide/hydration',

adev/src/content/guide/hybrid-rendering.md

-379
This file was deleted.

adev/src/content/guide/i18n/deploy.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The change of subdirectory often occurs using a menu implemented in the applicat
2121

2222
For more information on how to deploy apps to a remote server, see [Deployment][GuideDeployment].
2323

24-
IMPORTANT: If you are using [Hybrid rendering](guide/hybrid-rendering) with `outputMode` set to `server`, Angular automatically handles redirection dynamically based on the `Accept-Language` HTTP header. This simplifies deployment by eliminating the need for manual server or configuration adjustments.
24+
IMPORTANT: If you are using [Server rendering](guide/ssr) with `outputMode` set to `server`, Angular automatically handles redirection dynamically based on the `Accept-Language` HTTP header. This simplifies deployment by eliminating the need for manual server or configuration adjustments.
2525

2626
### Nginx example
2727

adev/src/content/guide/performance/overview.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ One of the top priorities of any developer is ensuring that their application is
66

77
| Guides Types | Description |
88
| :---------------------------------------- | :--------------------------------------------------------------------------------------------------------- |
9-
| [Server-side rendering](/guide/ssr) | Learn how to leverage rendering pages on the server to improve load times. |
10-
| [Build-time prerendering](/guide/prerendering) | Also known as static-site generation (SSG), is an alternate rendering method to improve load times. |
11-
| [Hydration](/guide/hydration) | A process to improve application performance by restoring its state after server-side rendering and reusing existing DOM structure as much as possible. |
9+
| [Server and hybrid rendering](/guide/ssr) | Learn how to leverage rendering pages on the server to improve load times. |
10+
| [Hydration](/guide/hydration) | A process to improve application performance by restoring its state after server-side rendering and reusing existing DOM structure as much as possible. |
11+
| [Incremental Hydration](/guide/incremental-hydration) | Incremental hydration is an advanced type of hydration that can leave sections of your application dehydrated and incrementally trigger hydration of those sections as they are needed. |

adev/src/content/guide/prerendering.md

-33
This file was deleted.

0 commit comments

Comments
 (0)