Skip to content

Commit

Permalink
[docs-infra] Fix flex-shrink pro-plan
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Apr 21, 2024
1 parent 0f4db80 commit edf9882
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 10 deletions.
43 changes: 39 additions & 4 deletions docs/data/docs-infra/pages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const pages: readonly MuiPage[] = [
children: [
{ pathname: '/experiments/docs/headers' },
{ pathname: '/experiments/docs/markdown' },
{ pathname: '/experiments/docs/og-card' },
{ pathname: '/experiments/docs/og-card', title: 'OG Image' },
],
},
{
Expand All @@ -22,7 +22,7 @@ const pages: readonly MuiPage[] = [
},
{
pathname: '/experiments/docs/main-parent',
title: 'Main parent',
title: 'Test: pages.js',
children: [
{
pathname: '/experiments/docs/first-level-child-1',
Expand Down Expand Up @@ -53,11 +53,46 @@ const pages: readonly MuiPage[] = [
},
],
},
{
pathname: '/experiments/docs/first-level-child-3',
title: 'Pro plan',
plan: 'pro',
},
{
pathname: '/experiments/docs/first-level-child-4',
title: 'New feature',
newFeature: true,
},
{
pathname: '/experiments/docs/first-level-child-5',
title: 'Planned feature',
planned: true,
},
{
pathname: '/experiments/docs/first-level-child-6',
title: 'Unstable feature',
unstable: true,
},
{
pathname: '/experiments/docs/first-level-child-7',
title: 'Beta feature',
beta: true,
},
{
pathname: '/experiments/docs/first-level-child-8',
title: 'Legacy feature',
legacy: true,
},
{
pathname: '/experiments/docs/first-level-child-9',
title: 'OverflowWithLongApiComponent',
plan: 'pro',
},
],
},
{
pathname: '/x/react-data-grid-group',
title: 'Data Grid',
title: 'Test: Data Grid e2e',
children: [
{ pathname: '/x/react-data-grid', title: 'Overview' },
{ pathname: '/x/react-data-grid/demo' },
Expand Down Expand Up @@ -169,7 +204,7 @@ const pages: readonly MuiPage[] = [
},
{
pathname: '/x/migration-group',
title: 'Migration',
title: 'Test: Migration',
children: [
{
pathname: '/x/migration-v6',
Expand Down
1 change: 1 addition & 0 deletions docs/pages/_document.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ export default class MyDocument extends Document {
marginBottom: '0.08em',
backgroundSize: 'contain',
backgroundRepeat: 'no-repeat',
flexShrink: 0,
},
'.plan-pro': {
backgroundImage: 'url(/static/x/pro.svg)',
Expand Down
7 changes: 1 addition & 6 deletions docs/pages/experiments/docs/og-card.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
---
title: OG card generation
cardDescription: A quick overview of available options.
---

# OG card
# OG Image

<p class="description">How the docs platform generate Open Graph card images</p>

Expand Down

0 comments on commit edf9882

Please sign in to comment.