From 93f0874cad9bcbaff4436f47c79b56975ce67197 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner 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. --- material.angular.io/src/app/routes.ts | 3 +++ .../src/app/shared/guide-items/guide-items.ts | 5 ----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/material.angular.io/src/app/routes.ts b/material.angular.io/src/app/routes.ts index 0917cbf15e15..d91e2438d724 100644 --- a/material.angular.io/src/app/routes.ts +++ b/material.angular.io/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/material.angular.io/src/app/shared/guide-items/guide-items.ts b/material.angular.io/src/app/shared/guide-items/guide-items.ts index 31bfc2ea9505..23544401af82 100644 --- a/material.angular.io/src/app/shared/guide-items/guide-items.ts +++ b/material.angular.io/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',