diff --git a/.gitmodules b/.gitmodules index 1020fa1..10cdf98 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ -[submodule "research"] - path = research - url = https://github.com/chora-studio/research +[submodule "artifacts"] + path = artifacts + url = https://github.com/chora-studio/artifacts diff --git a/app/research/concepts/[id]/page.tsx b/app/research/concepts/[id]/page.tsx index bb7cc54..572cfba 100644 --- a/app/research/concepts/[id]/page.tsx +++ b/app/research/concepts/[id]/page.tsx @@ -14,7 +14,6 @@ export const generateStaticParams = () => { const ArtifactPage = async ({ params }: any) => { const artifact = await getArtifact('concepts', params.id) - return (
diff --git a/app/research/page.tsx b/app/research/page.tsx index fd96750..861d6b8 100644 --- a/app/research/page.tsx +++ b/app/research/page.tsx @@ -9,7 +9,7 @@ export const metadata: Metadata = { title: 'chora studio | research', } -async function getResearch() { +async function getResearchArtifacts() { return [ { group: 'about', items: getArtifacts('about') }, { group: 'concepts', items: getArtifacts('concepts') }, @@ -17,8 +17,7 @@ async function getResearch() { } const ResearchPage = async () => { - const artifacts = await getResearch() - + const artifacts = await getResearchArtifacts() return (
diff --git a/artifacts b/artifacts new file mode 160000 index 0000000..9e1988c --- /dev/null +++ b/artifacts @@ -0,0 +1 @@ +Subproject commit 9e1988ceec80250b0e9ca6c940ebf9d37d276cb3 diff --git a/research b/research deleted file mode 160000 index 727d8dc..0000000 --- a/research +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 727d8dc4c06736055a2ad516769539f68532ceb6 diff --git a/utils/getArtifact.ts b/utils/getArtifact.ts index c4ede08..faf1e2d 100644 --- a/utils/getArtifact.ts +++ b/utils/getArtifact.ts @@ -4,7 +4,7 @@ import matter from 'gray-matter' import { remark } from 'remark' import html from 'remark-html' -const root = path.join(process.cwd(), 'research') +const root = path.join(process.cwd(), 'artifacts') export async function getArtifact(dir: string, id: string) { const fullPath = path.join(root, dir, `${id}.md`) diff --git a/utils/getArtifacts.ts b/utils/getArtifacts.ts index 33f3d80..55bf388 100644 --- a/utils/getArtifacts.ts +++ b/utils/getArtifacts.ts @@ -2,7 +2,7 @@ import fs from 'fs' import path from 'path' import matter from 'gray-matter' -const root = path.join(process.cwd(), 'research') +const root = path.join(process.cwd(), 'artifacts') export const getArtifacts = (dir: string) => { const fileNames = fs.readdirSync(root + '/' + dir)