chore: mdoc and mdx fixtures

This commit is contained in:
bholmesdev 2023-02-16 14:17:34 -05:00
parent 3c6c841a65
commit add212f9f2
8 changed files with 70 additions and 0 deletions

View file

@ -0,0 +1,7 @@
import { defineConfig } from 'astro/config';
import markdoc from "@astrojs/markdoc";
// https://astro.build/config
export default defineConfig({
integrations: [markdoc()]
});

View 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"
}
}

View file

@ -0,0 +1,2 @@
/// <reference path="../.astro/types.d.ts" />
/// <reference types="astro/client" />

View file

@ -0,0 +1,8 @@
---
import { getCollection } from 'astro:content';
import { RenderContent } from '@performance/utils';
const posts = await getCollection('generated');
---
<RenderContent {posts} />

View file

@ -0,0 +1,7 @@
import { defineConfig } from 'astro/config';
import mdx from "@astrojs/mdx";
// https://astro.build/config
export default defineConfig({
integrations: [mdx()]
});

View 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"
}
}

View file

@ -0,0 +1,2 @@
/// <reference path="../.astro/types.d.ts" />
/// <reference types="astro/client" />

View file

@ -0,0 +1,8 @@
---
import { getCollection } from 'astro:content';
import { RenderContent } from '@performance/utils';
const posts = await getCollection('generated');
---
<RenderContent {posts} />