Skip to content
Open
Show file tree
Hide file tree
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
108 changes: 108 additions & 0 deletions .contentlayer/.cache/v0.3.4/compiled-contentlayer-config-BLLLZBRR.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
// contentlayer.config.ts
import { defineDocumentType, makeSource } from "contentlayer/source-files";
var Page = defineDocumentType(() => ({
name: "Page",
filePathPattern: "pages/**/*.mdx",
contentType: "mdx",
fields: {
title: { type: "string", required: true },
description: { type: "string", required: true }
}
}));
var Article = defineDocumentType(() => ({
name: "Article",
filePathPattern: "articles/**/*.mdx",
contentType: "mdx",
fields: {
title: { type: "string", required: true },
tags: { type: "list", of: { type: "string" }, required: true },
description: { type: "string", required: true },
image: { type: "string", required: false },
publishedAt: { type: "date", required: false }
}
}));
var Project = defineDocumentType(() => ({
name: "Project",
filePathPattern: "projects/**/*.mdx",
contentType: "mdx",
fields: {
title: { type: "string", required: true },
order: { type: "number", required: true },
tags: { type: "list", of: { type: "string" }, required: true },
description: { type: "string", required: true },
image: { type: "string", required: false }
}
}));
var Book = defineDocumentType(() => ({
name: "Book",
filePathPattern: "books/**/*.mdx",
contentType: "mdx",
fields: {
title: { type: "string", required: true },
rating: { type: "number", required: true },
author: { type: "string", required: true },
url: { type: "string", required: true },
category: { type: "string", required: true },
description: { type: "string", required: true },
tags: { type: "list", of: { type: "string" }, required: true },
cover: { type: "string", required: true },
year: { type: "number", required: true }
}
}));
var Film = defineDocumentType(() => ({
name: "Film",
filePathPattern: "films/**/*.mdx",
contentType: "mdx",
fields: {
title: { type: "string", required: true },
rating: { type: "number", required: true },
image: { type: "string", required: false },
url: { type: "string", required: true }
}
}));
var Show = defineDocumentType(() => ({
name: "Show",
filePathPattern: "shows/**/*.mdx",
contentType: "mdx",
fields: {
title: { type: "string", required: true },
rating: { type: "number", required: true },
image: { type: "string", required: false },
url: { type: "string", required: true }
}
}));
var Musician = defineDocumentType(() => ({
name: "Musician",
filePathPattern: "musicians/**/*.mdx",
contentType: "mdx",
fields: {
name: { type: "string", required: true },
url: { type: "string", required: true },
image: { type: "string", required: false }
}
}));
var Quote = defineDocumentType(() => ({
name: "Quote",
filePathPattern: "quotes/**/*.mdx",
contentType: "mdx",
fields: {
text: { type: "string", required: true },
author: { type: "string", required: true }
}
}));
var contentlayer_config_default = makeSource({
contentDirPath: "content",
documentTypes: [Page, Article, Project, Book, Film, Show, Musician, Quote]
});
export {
Article,
Book,
Film,
Musician,
Page,
Project,
Quote,
Show,
contentlayer_config_default as default
};
//# sourceMappingURL=compiled-contentlayer-config-BLLLZBRR.mjs.map
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../contentlayer.config.ts"],
"sourcesContent": ["import { defineDocumentType, makeSource } from \"contentlayer/source-files\";\nimport { z } from \"zod\";\n\nexport const Page = defineDocumentType(() => ({\n name: \"Page\",\n filePathPattern: \"pages/**/*.mdx\",\n contentType: \"mdx\",\n fields: {\n title: { type: \"string\", required: true },\n description: { type: \"string\", required: true },\n },\n}));\n\nexport const Article = defineDocumentType(() => ({\n name: \"Article\",\n filePathPattern: \"articles/**/*.mdx\",\n contentType: \"mdx\",\n fields: {\n title: { type: \"string\", required: true },\n tags: { type: \"list\", of: { type: \"string\" }, required: true },\n description: { type: \"string\", required: true },\n image: { type: \"string\", required: false },\n publishedAt: { type: \"date\", required: false },\n },\n}));\n\nexport const Project = defineDocumentType(() => ({\n name: \"Project\",\n filePathPattern: \"projects/**/*.mdx\",\n contentType: \"mdx\",\n fields: {\n title: { type: \"string\", required: true },\n order: { type: \"number\", required: true },\n tags: { type: \"list\", of: { type: \"string\" }, required: true },\n description: { type: \"string\", required: true },\n image: { type: \"string\", required: false },\n },\n}));\n\nexport const Book = defineDocumentType(() => ({\n name: \"Book\",\n filePathPattern: \"books/**/*.mdx\",\n contentType: \"mdx\",\n fields: {\n title: { type: \"string\", required: true },\n rating: { type: \"number\", required: true },\n author: { type: \"string\", required: true },\n url: { type: \"string\", required: true },\n category: { type: \"string\", required: true },\n description: { type: \"string\", required: true },\n tags: { type: \"list\", of: { type: \"string\" }, required: true },\n cover: { type: \"string\", required: true },\n year: { type: \"number\", required: true },\n },\n}));\n\nexport const Film = defineDocumentType(() => ({\n name: \"Film\",\n filePathPattern: \"films/**/*.mdx\",\n contentType: \"mdx\",\n fields: {\n title: { type: \"string\", required: true },\n rating: { type: \"number\", required: true },\n image: { type: \"string\", required: false },\n url: { type: \"string\", required: true },\n },\n}));\n\nexport const Show = defineDocumentType(() => ({\n name: \"Show\",\n filePathPattern: \"shows/**/*.mdx\",\n contentType: \"mdx\",\n fields: {\n title: { type: \"string\", required: true },\n rating: { type: \"number\", required: true },\n image: { type: \"string\", required: false },\n url: { type: \"string\", required: true },\n },\n}));\n\nexport const Musician = defineDocumentType(() => ({\n name: \"Musician\",\n filePathPattern: \"musicians/**/*.mdx\",\n contentType: \"mdx\",\n fields: {\n name: { type: \"string\", required: true },\n url: { type: \"string\", required: true },\n image: { type: \"string\", required: false },\n },\n}));\n\nexport const Quote = defineDocumentType(() => ({\n name: \"Quote\",\n filePathPattern: \"quotes/**/*.mdx\",\n contentType: \"mdx\",\n fields: {\n text: { type: \"string\", required: true },\n author: { type: \"string\", required: true },\n },\n}));\n\nexport default makeSource({\n contentDirPath: \"content\",\n documentTypes: [Page, Article, Project, Book, Film, Show, Musician, Quote],\n});\n"],
"mappings": ";AAAA,SAAS,oBAAoB,kBAAkB;AAGxC,IAAM,OAAO,mBAAmB,OAAO;AAAA,EAC5C,MAAM;AAAA,EACN,iBAAiB;AAAA,EACjB,aAAa;AAAA,EACb,QAAQ;AAAA,IACN,OAAO,EAAE,MAAM,UAAU,UAAU,KAAK;AAAA,IACxC,aAAa,EAAE,MAAM,UAAU,UAAU,KAAK;AAAA,EAChD;AACF,EAAE;AAEK,IAAM,UAAU,mBAAmB,OAAO;AAAA,EAC/C,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AM,UAAU,UAAU,KAAK;AAAA,EAC3C;AACF,EAAE;AAEF,IAAO,8BAAQ,WAAW;AAAA,EACxB,gBAAgB;AAAA,EAChB,eAAe,CAAC,MAAM,SAAS,SAAS,MAAM,MAAM,MAAM,UAAU,KAAK;AAC3E,CAAC;",
"names": []
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
// contentlayer.config.ts
import { defineDocumentType, makeSource } from "contentlayer/source-files";
import rehypeSlug from "rehype-slug";
import remarkGfm from "remark-gfm";
var Article = defineDocumentType(() => ({
name: "Article",
filePathPattern: "articles/**/*.mdx",
contentType: "mdx",
fields: {
title: { type: "string", required: true },
description: { type: "string", required: true },
date: { type: "date", required: true },
tags: { type: "list", of: { type: "string" }, required: true }
},
computedFields: {
slug: {
type: "string",
resolve: (doc) => doc._raw.sourceFileName.replace(/\.mdx$/, "")
}
}
}));
var Project = defineDocumentType(() => ({
name: "Project",
filePathPattern: "projects/**/*.mdx",
contentType: "mdx",
fields: {
title: { type: "string", required: true },
description: { type: "string", required: true },
date: { type: "date", required: true },
tags: { type: "list", of: { type: "string" }, required: true },
url: { type: "string", required: false }
},
computedFields: {
slug: {
type: "string",
resolve: (doc) => doc._raw.sourceFileName.replace(/\.mdx$/, "")
}
}
}));
var Book = defineDocumentType(() => ({
name: "Book",
filePathPattern: "books/**/*.mdx",
contentType: "mdx",
fields: {
title: { type: "string", required: true },
description: { type: "string", required: true },
author: { type: "string", required: true },
rating: { type: "number", required: true },
date: { type: "date", required: true },
tags: { type: "list", of: { type: "string" }, required: true },
cover: { type: "string", required: true }
},
computedFields: {
slug: {
type: "string",
resolve: (doc) => doc._raw.sourceFileName.replace(/\.mdx$/, "")
}
}
}));
var contentlayer_config_default = makeSource({
contentDirPath: "content",
documentTypes: [Article, Project, Book],
mdx: {
remarkPlugins: [remarkGfm],
rehypePlugins: [rehypeSlug]
}
});
export {
contentlayer_config_default as default
};
//# sourceMappingURL=compiled-contentlayer-config-H3R7XACO.mjs.map
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../contentlayer.config.ts"],
"sourcesContent": ["import { defineDocumentType, makeSource } from \"contentlayer/source-files\";\nimport rehypeSlug from \"rehype-slug\";\nimport remarkGfm from \"remark-gfm\";\n\nconst Article = defineDocumentType(() => ({\n name: \"Article\",\n filePathPattern: \"articles/**/*.mdx\",\n contentType: \"mdx\",\n fields: {\n title: { type: \"string\", required: true },\n description: { type: \"string\", required: true },\n date: { type: \"date\", required: true },\n tags: { type: \"list\", of: { type: \"string\" }, required: true },\n },\n computedFields: {\n slug: {\n type: \"string\",\n resolve: (doc) => doc._raw.sourceFileName.replace(/\\.mdx$/, \"\"),\n },\n },\n}));\n\nconst Project = defineDocumentType(() => ({\n name: \"Project\",\n filePathPattern: \"projects/**/*.mdx\",\n contentType: \"mdx\",\n fields: {\n title: { type: \"string\", required: true },\n description: { type: \"string\", required: true },\n date: { type: \"date\", required: true },\n tags: { type: \"list\", of: { type: \"string\" }, required: true },\n url: { type: \"string\", required: false },\n },\n computedFields: {\n slug: {\n type: \"string\",\n resolve: (doc) => doc._raw.sourceFileName.replace(/\\.mdx$/, \"\"),\n },\n },\n}));\n\nconst Book = defineDocumentType(() => ({\n name: \"Book\",\n filePathPattern: \"books/**/*.mdx\",\n contentType: \"mdx\",\n fields: {\n title: { type: \"string\", required: true },\n description: { type: \"string\", required: true },\n author: { type: \"string\", required: true },\n rating: { type: \"number\", required: true },\n date: { type: \"date\", required: true },\n tags: { type: \"list\", of: { type: \"string\" }, required: true },\n cover: { type: \"string\", required: true },\n },\n computedFields: {\n slug: {\n type: \"string\",\n resolve: (doc) => doc._raw.sourceFileName.replace(/\\.mdx$/, \"\"),\n },\n },\n}));\n\nexport default makeSource({\n contentDirPath: \"content\",\n documentTypes: [Article, Project, Book],\n mdx: {\n remarkPlugins: [remarkGfm],\n rehypePlugins: [rehypeSlug],\n },\n});\n"],
"mappings": ";AAAA,SAAS,oBAAoB,kBAAkB;AAC/C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K;AAAA,IACxC,aAAa,EAAE,MAAM,UAAU,UAAU,KAAK;AAAA,IAC9C,QAAQ,EAAE,MAAM,UAAU,UAAU,KAAK;AAAA,IACzC,QAAQ,EAAE,MAAM,UAAU,UAAU,KAAK;AAAA,IACzC,MAAM,EAAE,MAAM,QAAQ,UAAU,KAAK;AAAA,IACrC,MAAM,EAAE,MAAM,QAAQ,IAAI,EAAE,MAAM,SAAS,GAAG,UAAU,KAAK;AAAA,IAC7D,OAAO,EAAE,MAAM,UAAU,UAAU,KAAK;AAAA,EAC1C;AAAA,EACA,gBAAgB;AAAA,IACd,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,SAAS,CAAC,QAAQ,IAAI,KAAK,eAAe,QAAQ,UAAU,EAAE;AAAA,IAChE;AAAA,EACF;AACF,EAAE;AAEF,IAAO,8BAAQ,WAAW;AAAA,EACxB,gBAAgB;AAAA,EAChB,eAAe,CAAC,SAAS,SAAS,IAAI;AAAA,EACtC,KAAK;AAAA,IACH,eAAe,CAAC,SAAS;AAAA,IACzB,eAAe,CAAC,UAAU;AAAA,EAC5B;AACF,CAAC;",
"names": []
}
32 changes: 32 additions & 0 deletions .contentlayer/.cache/v0.3.4/data-H3R7XACO.json

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions .contentlayer/generated/Article/_index.json

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions .contentlayer/generated/Article/_index.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// NOTE This file is auto-generated by Contentlayer

import articles__helloWorldMdx from './articles__hello-world.mdx.json' assert { type: 'json' }

export const allArticles = [articles__helloWorldMdx]
Loading