Skip to content

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#30098.
  • Loading branch information
crisbeto committed Nov 28, 2024
1 parent eee7d1e commit 1b0ca6a
Showing 1 changed file with 2 additions and 1 deletion.
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 1b0ca6a

Please sign in to comment.