chore: mdoc and mdx fixtures
This commit is contained in:
parent
3c6c841a65
commit
add212f9f2
8 changed files with 70 additions and 0 deletions
|
@ -0,0 +1,7 @@
|
||||||
|
import { defineConfig } from 'astro/config';
|
||||||
|
import markdoc from "@astrojs/markdoc";
|
||||||
|
|
||||||
|
// https://astro.build/config
|
||||||
|
export default defineConfig({
|
||||||
|
integrations: [markdoc()]
|
||||||
|
});
|
18
packages/astro/performance/fixtures/mdoc/package.json
Normal file
18
packages/astro/performance/fixtures/mdoc/package.json
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
{
|
||||||
|
"name": "@performance/mdoc",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "",
|
||||||
|
"main": "index.js",
|
||||||
|
"private": true,
|
||||||
|
"scripts": {
|
||||||
|
"build": "astro build --perf"
|
||||||
|
},
|
||||||
|
"keywords": [],
|
||||||
|
"author": "",
|
||||||
|
"license": "unlicensed",
|
||||||
|
"dependencies": {
|
||||||
|
"@performance/utils": "^0.0.0",
|
||||||
|
"astro": "^2.0.12",
|
||||||
|
"@astrojs/markdoc": "^0.0.0"
|
||||||
|
}
|
||||||
|
}
|
2
packages/astro/performance/fixtures/mdoc/src/env.d.ts
vendored
Normal file
2
packages/astro/performance/fixtures/mdoc/src/env.d.ts
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
/// <reference path="../.astro/types.d.ts" />
|
||||||
|
/// <reference types="astro/client" />
|
|
@ -0,0 +1,8 @@
|
||||||
|
---
|
||||||
|
import { getCollection } from 'astro:content';
|
||||||
|
import { RenderContent } from '@performance/utils';
|
||||||
|
|
||||||
|
const posts = await getCollection('generated');
|
||||||
|
---
|
||||||
|
|
||||||
|
<RenderContent {posts} />
|
7
packages/astro/performance/fixtures/mdx/astro.config.mjs
Normal file
7
packages/astro/performance/fixtures/mdx/astro.config.mjs
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
import { defineConfig } from 'astro/config';
|
||||||
|
import mdx from "@astrojs/mdx";
|
||||||
|
|
||||||
|
// https://astro.build/config
|
||||||
|
export default defineConfig({
|
||||||
|
integrations: [mdx()]
|
||||||
|
});
|
18
packages/astro/performance/fixtures/mdx/package.json
Normal file
18
packages/astro/performance/fixtures/mdx/package.json
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
{
|
||||||
|
"name": "@performance/mdx",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "",
|
||||||
|
"main": "index.js",
|
||||||
|
"private": true,
|
||||||
|
"scripts": {
|
||||||
|
"build": "astro build --perf"
|
||||||
|
},
|
||||||
|
"keywords": [],
|
||||||
|
"author": "",
|
||||||
|
"license": "unlicensed",
|
||||||
|
"dependencies": {
|
||||||
|
"@astrojs/mdx": "^0.16.2",
|
||||||
|
"@performance/utils": "^0.0.0",
|
||||||
|
"astro": "^2.0.12"
|
||||||
|
}
|
||||||
|
}
|
2
packages/astro/performance/fixtures/mdx/src/env.d.ts
vendored
Normal file
2
packages/astro/performance/fixtures/mdx/src/env.d.ts
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
/// <reference path="../.astro/types.d.ts" />
|
||||||
|
/// <reference types="astro/client" />
|
|
@ -0,0 +1,8 @@
|
||||||
|
---
|
||||||
|
import { getCollection } from 'astro:content';
|
||||||
|
import { RenderContent } from '@performance/utils';
|
||||||
|
|
||||||
|
const posts = await getCollection('generated');
|
||||||
|
---
|
||||||
|
|
||||||
|
<RenderContent {posts} />
|
Loading…
Reference in a new issue