From b3e1535ebb264fd6b8fe43ecb2dc0223fd45fb0d Mon Sep 17 00:00:00 2001 From: sailing-dev Date: Wed, 24 Jan 2018 21:26:02 +0100 Subject: [PATCH] chore: update guides to no longer include cdk-table (#375) * The cdk-table guide became the overview document for the cdk table component. Therefore it's no longer a guide. --- src/app/routes.ts | 3 +++ src/app/shared/guide-items/guide-items.ts | 5 ----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/app/routes.ts b/src/app/routes.ts index 0917cbf..d91e243 100644 --- a/src/app/routes.ts +++ b/src/app/routes.ts @@ -19,6 +19,9 @@ export const MATERIAL_DOCS_ROUTES: Routes = [ {path: '', component: Homepage, pathMatch: 'full', data: {}}, {path: 'categories', redirectTo: '/components/categories'}, {path: 'guides', component: GuideList, data: {}}, + // Since https://github.com/angular/material2/pull/9574, the cdk-table guide became the overview + // document for the cdk table. To avoid any dead / broken links, we redirect to the new location. + {path: 'guide/cdk-table', redirectTo: '/cdk/table/overview'}, {path: 'guide/:id', component: GuideViewer, data: {}}, { path: ':section', diff --git a/src/app/shared/guide-items/guide-items.ts b/src/app/shared/guide-items/guide-items.ts index 31bfc2e..2354440 100644 --- a/src/app/shared/guide-items/guide-items.ts +++ b/src/app/shared/guide-items/guide-items.ts @@ -27,11 +27,6 @@ const GUIDES = [ name: `Using Angular Material's Typography`, document: '/assets/documents/guides/material-typography.html', }, - { - id: 'cdk-table', - name: `CDK data-table`, - document: '/assets/documents/guides/material-cdk-table.html', - }, { id: 'customizing-component-styles', name: 'Customizing component styles',