Skip to content

Commit

Permalink
Replace __filename with import.meta.url in metadata files
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed Dec 20, 2024
1 parent b7c7549 commit 43e47fe
Show file tree
Hide file tree
Showing 269 changed files with 268 additions and 270 deletions.
2 changes: 1 addition & 1 deletion site/app/[locale]/blog/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const metadata = define({
title: 'Blog',
description: 'The latest Master CSS things',
unfinished: true,
filename: __filename
fileURL: import.meta.url
})

export default metadata
2 changes: 1 addition & 1 deletion site/app/[locale]/blog/v2/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const metadata = define({
{ name: 'Joy' }
],
date: '2023-12-19T15:04:56.712Z',
filename: __filename
fileURL: import.meta.url
})

export default metadata
2 changes: 1 addition & 1 deletion site/app/[locale]/guide/animations/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const metadata = define({
title: 'Animations',
description: 'Customizing animation keyframes for your design system.',
category: 'Customization',
filename: __filename
fileURL: import.meta.url
})

export default metadata
2 changes: 1 addition & 1 deletion site/app/[locale]/guide/applying-conditionally/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const metadata = define({
category: 'Syntax Tutorial',
order: 3,
disabled: true,
filename: __filename
fileURL: import.meta.url
})

export default metadata
2 changes: 1 addition & 1 deletion site/app/[locale]/guide/browser-support/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const metadata = define({
title: 'Browser Support',
description: 'The core engine of Master CSS hardly affects CSS support for browsers.',
category: 'Fundamentals',
filename: __filename
fileURL: import.meta.url
})

export default metadata
2 changes: 1 addition & 1 deletion site/app/[locale]/guide/code-linting/angular/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const metadata = define({
description: 'Guide to installing Master CSS ESLint in your Angular project.',
category: 'Code Linting',
vercelOG: true,
filename: __filename
fileURL: import.meta.url
})

export default metadata
2 changes: 1 addition & 1 deletion site/app/[locale]/guide/code-linting/html/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const metadata = define({
description: 'Guide to installing Master CSS ESLint in your HTML project.',
category: 'Code Linting',
vercelOG: true,
filename: __filename
fileURL: import.meta.url
})

export default metadata
2 changes: 1 addition & 1 deletion site/app/[locale]/guide/code-linting/laravel/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const metadata = define({
description: 'Guide to installing Master CSS ESLint in your Laravel project.',
category: 'Code Linting',
vercelOG: true,
filename: __filename
fileURL: import.meta.url
})

export default metadata
2 changes: 1 addition & 1 deletion site/app/[locale]/guide/code-linting/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const metadata = define({
description: 'An ESLint plugin enforcing a consistent coding style for Master CSS.'
},
vercelOG: true,
filename: __filename
fileURL: import.meta.url
})

export default metadata
2 changes: 1 addition & 1 deletion site/app/[locale]/guide/code-linting/react/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const metadata = define({
description: 'Guide to installing Master CSS ESLint in your React project.',
category: 'Code Linting',
vercelOG: true,
filename: __filename
fileURL: import.meta.url
})

export default metadata
2 changes: 1 addition & 1 deletion site/app/[locale]/guide/code-linting/svelte/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const metadata = define({
description: 'Guide to installing Master CSS ESLint in your Svelte project.',
category: 'Code Linting',
vercelOG: true,
filename: __filename
fileURL: import.meta.url
})

export default metadata
2 changes: 1 addition & 1 deletion site/app/[locale]/guide/code-linting/vscode/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const metadata = define({
description: 'Guide to installing Master CSS ESLint in your Visual Studio Code.',
category: 'Code Linting',
vercelOG: true,
filename: __filename
fileURL: import.meta.url
})

export default metadata
2 changes: 1 addition & 1 deletion site/app/[locale]/guide/code-linting/vuejs/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const metadata = define({
description: 'Guide to installing Master CSS ESLint in your Vue.js project.',
category: 'Code Linting',
vercelOG: true,
filename: __filename
fileURL: import.meta.url
})

export default metadata
2 changes: 1 addition & 1 deletion site/app/[locale]/guide/configuration/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const metadata = define({
description: 'Implement your design system using the configuration API.',
category: 'Customization',
order: 1,
filename: __filename
fileURL: import.meta.url
})

export default metadata
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const metadata = define({
other: {
subject: 'Unstyled Content'
},
filename: __filename
fileURL: import.meta.url
})

export default metadata
2 changes: 1 addition & 1 deletion site/app/[locale]/guide/global-styles/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const metadata = define({
description: 'Normalize browser and preset global styles for more concise-style programming.',
category: 'Customization',
order: 1,
filename: __filename
fileURL: import.meta.url
})

export default metadata
1 change: 0 additions & 1 deletion site/app/[locale]/guide/global-styles/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export async function generateMetadata(props: any, parent: any) {
import pageCategories from '~/site/.categories/guide.json'

export default async function Page(props: any) {
console.log(__dirname)
return (
<Layout {...props} $type="prose" pageCategories={pageCategories} pageDirname={__dirname} metadata={metadata} toc={toc} h2Big>
<Content />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const metadata = define({
title: 'Using CDNs',
description: 'Copy and paste CDNs to instantly launch the runtime engine in your browser out of the box.',
category: 'Getting Started',
filename: __filename
fileURL: import.meta.url
})

export default metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const metadata = define({
title: 'General Installation',
description: 'The easiest way to use Master CSS from scratch is to initialize the runtime engine directly in the entry file.',
category: 'Getting Started',
filename: __filename
fileURL: import.meta.url
})

export default metadata
2 changes: 1 addition & 1 deletion site/app/[locale]/guide/installation/(tabs)/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const metadata = define({
subject: 'Installation'
},
order: 2,
filename: __filename
fileURL: import.meta.url
})

export default metadata
2 changes: 1 addition & 1 deletion site/app/[locale]/guide/installation/angular/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const metadata = define({
description: 'Guide to setting up Master CSS progressive rendering in your Angular project.',
category: 'Installation',
vercelOG: true,
filename: __filename
fileURL: import.meta.url
})

export default metadata
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const metadata = define({
description: 'Guide to setting up Master CSS runtime rendering in your Angular project.',
category: 'Installation',
vercelOG: true,
filename: __filename
fileURL: import.meta.url
})

export default metadata
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const metadata = define({
description: 'Guide to setting up Master CSS static extraction in your Angular project.',
category: 'Installation',
vercelOG: true,
filename: __filename
fileURL: import.meta.url
})

export default metadata
2 changes: 1 addition & 1 deletion site/app/[locale]/guide/installation/astro/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const metadata = define({
description: 'Guide to setting up Master CSS runtime rendering in your Astro project.',
category: 'Installation',
vercelOG: true,
filename: __filename
fileURL: import.meta.url
})

export default metadata
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const metadata = define({
description: 'Guide to setting up Master CSS static extraction in your Astro project.',
category: 'Installation',
vercelOG: true,
filename: __filename
fileURL: import.meta.url
})

export default metadata
2 changes: 1 addition & 1 deletion site/app/[locale]/guide/installation/blazor/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const metadata = define({
description: 'Guide to setting up Master CSS runtime rendering in your Blazor project.',
category: 'Installation',
vercelOG: true,
filename: __filename
fileURL: import.meta.url
})

export default metadata
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const metadata = define({
description: 'Guide to setting up Master CSS static extraction in your Blazor project.',
category: 'Installation',
vercelOG: true,
filename: __filename
fileURL: import.meta.url
})

export default metadata
2 changes: 1 addition & 1 deletion site/app/[locale]/guide/installation/esm-sh/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const metadata = define({
description: 'Paste the esm.sh CDN to instantly launch the Master CSS runtime engine.',
category: 'Installation',
vercelOG: true,
filename: __filename
fileURL: import.meta.url
})

export default metadata
2 changes: 1 addition & 1 deletion site/app/[locale]/guide/installation/laravel/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const metadata = define({
description: 'Guide to setting up Master CSS runtime rendering in your Laravel project.',
category: 'Installation',
vercelOG: true,
filename: __filename
fileURL: import.meta.url
})

export default metadata
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const metadata = define({
description: 'Guide to setting up Master CSS static extraction in your Laravel project.',
category: 'Installation',
vercelOG: true,
filename: __filename
fileURL: import.meta.url
})

export default metadata
2 changes: 1 addition & 1 deletion site/app/[locale]/guide/installation/nextjs/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const metadata = define({
description: 'Guide to setting up Master CSS progressive rendering in your Next.js project.',
category: 'Installation',
vercelOG: true,
filename: __filename
fileURL: import.meta.url
})

export default metadata
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const metadata = define({
description: 'Guide to setting up Master CSS runtime rendering in your Next.js project.',
category: 'Installation',
vercelOG: true,
filename: __filename
fileURL: import.meta.url
})

export default metadata
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const metadata = define({
description: 'Guide to setting up Master CSS static extraction in your Next.js project.',
category: 'Installation',
vercelOG: true,
filename: __filename
fileURL: import.meta.url
})

export default metadata
2 changes: 1 addition & 1 deletion site/app/[locale]/guide/installation/nuxtjs/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const metadata = define({
description: 'Guide to setting up Master CSS progressive rendering in your Nuxt.js project.',
category: 'Installation',
vercelOG: true,
filename: __filename
fileURL: import.meta.url
})

export default metadata
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const metadata = define({
description: 'Guide to setting up Master CSS runtime rendering in your Nuxt.js project.',
category: 'Installation',
vercelOG: true,
filename: __filename
fileURL: import.meta.url
})

export default metadata
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const metadata = define({
description: 'Guide to setting up Master CSS static extraction in your Nuxt.js project.',
category: 'Installation',
vercelOG: true,
filename: __filename
fileURL: import.meta.url
})

export default metadata
2 changes: 1 addition & 1 deletion site/app/[locale]/guide/installation/react/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const metadata = define({
description: 'Guide to setting up Master CSS runtime rendering in your React project.',
category: 'Installation',
vercelOG: true,
filename: __filename
fileURL: import.meta.url
})

export default metadata
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const metadata = define({
description: 'Guide to setting up Master CSS static extraction in your React project.',
category: 'Installation',
vercelOG: true,
filename: __filename
fileURL: import.meta.url
})

export default metadata
2 changes: 1 addition & 1 deletion site/app/[locale]/guide/installation/svelte/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const metadata = define({
description: 'Guide to setting up Master CSS progressive rendering in your Svelte project.',
category: 'Installation',
vercelOG: true,
filename: __filename
fileURL: import.meta.url
})

export default metadata
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const metadata = define({
description: 'Guide to setting up Master CSS runtime rendering in your Svelte project.',
category: 'Installation',
vercelOG: true,
filename: __filename
fileURL: import.meta.url
})

export default metadata
Loading

0 comments on commit 43e47fe

Please sign in to comment.