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

fix: hide ripple styling page #1294

Merged
merged 1 commit into from
Nov 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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