Skip to content

Commit 5753ce2

Browse files
authored
remove listings for old theming guides (#1288)
1 parent bd1da42 commit 5753ce2

File tree

2 files changed

+8
-30
lines changed

2 files changed

+8
-30
lines changed

material.angular.io/src/app/routes.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ export const MATERIAL_DOCS_ROUTES: Routes = [
1919
// Since https://github.com/angular/components/pull/9574, the cdk-table guide became the overview
2020
// document for the cdk table. To avoid any dead / broken links, we redirect to the new location.
2121
{path: 'guide/cdk-table', redirectTo: '/cdk/table/overview'},
22+
// In v19, the theming system became based on system variables and the mat.theme mixin.
23+
// The following guides were consolidated into the main theming guide, which redirects
24+
// users to v18 docs if they are looking for this content.
25+
{path: 'guide/theming-your-components', redirectTo: '/guide/theming'},
26+
{path: 'guide/typography', redirectTo: '/guide/theming'},
27+
{path: 'guide/customizing-component-styles', redirectTo: '/guide/theming'},
28+
{path: 'guide/elevation', redirectTo: '/guide/theming'},
29+
{path: 'guide/duplicate-theming-styles', redirectTo: '/guide/theming'},
2230
{
2331
path: 'guide/:id',
2432
loadChildren: () => import('./pages/guide-viewer').then(m => m.GuideViewerModule)

material.angular.io/src/app/shared/guide-items/guide-items.ts

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -34,36 +34,12 @@ const GUIDES: GuideItem[] = [
3434
document: SystemVariables,
3535
overview: 'Understand the system variables available to use in your application.'
3636
},
37-
{
38-
id: 'theming-your-components',
39-
name: 'Theming your own components',
40-
document: '/docs-content/guides/theming-your-components.html',
41-
overview: 'Use Angular Material\'s theming system in your own custom components.'
42-
},
43-
{
44-
id: 'typography',
45-
name: 'Customizing Typography',
46-
document: '/docs-content/guides/typography.html',
47-
overview: 'Configure the typography settings for Angular Material components.'
48-
},
49-
{
50-
id: 'customizing-component-styles',
51-
name: 'Customizing component styles',
52-
document: '/docs-content/guides/customizing-component-styles.html',
53-
overview: 'Understand how to approach style customization with Angular Material components.'
54-
},
5537
{
5638
id: 'creating-a-custom-form-field-control',
5739
name: 'Custom form field control',
5840
document: '/docs-content/guides/creating-a-custom-form-field-control.html',
5941
overview: 'Build a custom control that integrates with `<mat-form-field>`.'
6042
},
61-
{
62-
id: 'elevation',
63-
name: 'Elevation helpers',
64-
document: '/docs-content/guides/elevation.html',
65-
overview: 'Enhance your components with elevation and depth.'
66-
},
6743
{
6844
id: 'creating-a-custom-stepper-using-the-cdk-stepper',
6945
name: 'Custom stepper using the CdkStepper',
@@ -76,12 +52,6 @@ const GUIDES: GuideItem[] = [
7652
document: '/docs-content/guides/using-component-harnesses.html',
7753
overview: 'Write tests with component harnesses for convenience and meaningful results.'
7854
},
79-
{
80-
id: 'duplicate-theming-styles',
81-
name: 'Duplicate theming styles',
82-
document: '/docs-content/guides/duplicate-theming-styles.html',
83-
overview: 'Learn about our new color mixins for Sass that avoid duplicating theming styles.'
84-
},
8555
{
8656
id: 'material-2-theming',
8757
name: 'Theming Angular Material with Material 2',

0 commit comments

Comments
 (0)