Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
fix: hide ripple styling page
Browse files Browse the repository at this point in the history
Hides the styling page for the ripple since it's part of `core`.

Fixes angular/components#30098.
  • Loading branch information
crisbeto committed Nov 28, 2024
1 parent a968abb commit 768fa1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/shared/documentation-items/documentation-items.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ const DOCS: { [key: string]: DocItem[] } = {
name: 'Ripples',
overviewPath: 'material/core/ripple/ripple.html',
summary: 'Directive for adding Material Design ripple effects',
hasStyling: false, // Ripple styling is documented through `core`.
exampleSpecs: {
prefix: 'ripple-',
},
Expand Down Expand Up @@ -607,7 +608,7 @@ export class DocumentationItems {
function processDocs(packageName: string, docs: DocItem[]): DocItem[] {
for (const doc of docs) {
doc.packageName = packageName;
doc.hasStyling = packageName === 'material';
doc.hasStyling ??= packageName === 'material';
doc.examples = exampleNames.filter(key =>
key.match(RegExp(`^${doc.exampleSpecs.prefix}`)) &&
!doc.exampleSpecs.exclude?.some(excludeName => key.indexOf(excludeName) === 0));
Expand Down

0 comments on commit 768fa1b

Please sign in to comment.