Skip to content

Commit 601c781

Browse files
authored
docs: fix incorrect guide links after recent collision change (#30745)
We recently updated some of the filenames to avoid collisions. This commit fixes the rendering in the doc site. We already this initially with the overviews; but guides apparently are handled separately. We should explore why no tests fail here.
1 parent e9b0157 commit 601c781

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ const DOCS: {[key: string]: DocItem[]} = {
269269
{
270270
id: 'ripple',
271271
name: 'Ripples',
272-
overviewPath: 'material/core/ripple/ripple.html',
272+
overviewPath: 'material/core/ripple/ripple.md.html',
273273
summary: 'Directive for adding Material Design ripple effects',
274274
hasStyling: false, // Ripple styling is documented through `core`.
275275
exampleSpecs: {
@@ -545,7 +545,7 @@ const DOCS: {[key: string]: DocItem[]} = {
545545
exampleSpecs: {
546546
prefix: 'cdk-test-harnesses-',
547547
},
548-
overviewPath: 'cdk/testing/test-harnesses.html',
548+
overviewPath: 'cdk/testing/test-harnesses.md.html',
549549
apiDocId: 'cdk-testing',
550550
additionalApiDocs: [
551551
{

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

+7-7
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ const GUIDES: GuideItem[] = [
1313
{
1414
id: 'getting-started',
1515
name: 'Getting started',
16-
document: '/docs-content/guides/getting-started.html',
16+
document: '/docs-content/guides/getting-started.md.html',
1717
overview: 'Add Angular Material to your project!',
1818
},
1919
{
2020
id: 'schematics',
2121
name: 'Schematics',
22-
document: '/docs-content/guides/schematics.html',
22+
document: '/docs-content/guides/schematics.md.html',
2323
overview: 'Use schematics to quickly generate views with Material Design components.',
2424
},
2525
{
2626
id: 'theming',
2727
name: 'Theming Angular Material',
28-
document: '/docs-content/guides/theming.html',
28+
document: '/docs-content/guides/theming.md.html',
2929
overview: "Customize your application with Angular Material's theming system.",
3030
},
3131
{
@@ -37,25 +37,25 @@ const GUIDES: GuideItem[] = [
3737
{
3838
id: 'creating-a-custom-form-field-control',
3939
name: 'Custom form field control',
40-
document: '/docs-content/guides/creating-a-custom-form-field-control.html',
40+
document: '/docs-content/guides/creating-a-custom-form-field-control.md.html',
4141
overview: 'Build a custom control that integrates with `<mat-form-field>`.',
4242
},
4343
{
4444
id: 'creating-a-custom-stepper-using-the-cdk-stepper',
4545
name: 'Custom stepper using the CdkStepper',
46-
document: '/docs-content/guides/creating-a-custom-stepper-using-the-cdk-stepper.html',
46+
document: '/docs-content/guides/creating-a-custom-stepper-using-the-cdk-stepper.md.html',
4747
overview: 'Create a custom stepper components using Angular CDK.',
4848
},
4949
{
5050
id: 'using-component-harnesses',
5151
name: 'Testing with component harnesses',
52-
document: '/docs-content/guides/using-component-harnesses.html',
52+
document: '/docs-content/guides/using-component-harnesses.md.html',
5353
overview: 'Write tests with component harnesses for convenience and meaningful results.',
5454
},
5555
{
5656
id: 'material-2-theming',
5757
name: 'Theming Angular Material with Material 2',
58-
document: '/docs-content/guides/material-2.html',
58+
document: '/docs-content/guides/material-2.md.html',
5959
overview: "Customize your application with Angular Material's theming system.",
6060
},
6161
];

0 commit comments

Comments
 (0)