feat: update content

This commit is contained in:
ryanchristo 2026-11-16 08:46:37 -08:00
parent 011a964256
commit 5aef42e16f
No known key found for this signature in database
7 changed files with 8 additions and 10 deletions

6
.gitmodules vendored
View file

@ -1,3 +1,3 @@
[submodule "research"] [submodule "artifacts"]
path = research path = artifacts
url = https://github.com/chora-studio/research url = https://github.com/chora-studio/artifacts

View file

@ -14,7 +14,6 @@ export const generateStaticParams = () => {
const ArtifactPage = async ({ params }: any) => { const ArtifactPage = async ({ params }: any) => {
const artifact = await getArtifact('concepts', params.id) const artifact = await getArtifact('concepts', params.id)
return ( return (
<div className={styles.page}> <div className={styles.page}>
<div className={styles.banner}> <div className={styles.banner}>

View file

@ -9,7 +9,7 @@ export const metadata: Metadata = {
title: 'chora studio | research', title: 'chora studio | research',
} }
async function getResearch() { async function getResearchArtifacts() {
return [ return [
{ group: 'about', items: getArtifacts('about') }, { group: 'about', items: getArtifacts('about') },
{ group: 'concepts', items: getArtifacts('concepts') }, { group: 'concepts', items: getArtifacts('concepts') },
@ -17,8 +17,7 @@ async function getResearch() {
} }
const ResearchPage = async () => { const ResearchPage = async () => {
const artifacts = await getResearch() const artifacts = await getResearchArtifacts()
return ( return (
<div className={styles.page}> <div className={styles.page}>
<div className={styles.banner}> <div className={styles.banner}>

1
artifacts Submodule

@ -0,0 +1 @@
Subproject commit 9e1988ceec80250b0e9ca6c940ebf9d37d276cb3

@ -1 +0,0 @@
Subproject commit 727d8dc4c06736055a2ad516769539f68532ceb6

View file

@ -4,7 +4,7 @@ import matter from 'gray-matter'
import { remark } from 'remark' import { remark } from 'remark'
import html from 'remark-html' 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) { export async function getArtifact(dir: string, id: string) {
const fullPath = path.join(root, dir, `${id}.md`) const fullPath = path.join(root, dir, `${id}.md`)

View file

@ -2,7 +2,7 @@ import fs from 'fs'
import path from 'path' import path from 'path'
import matter from 'gray-matter' import matter from 'gray-matter'
const root = path.join(process.cwd(), 'research') const root = path.join(process.cwd(), 'artifacts')
export const getArtifacts = (dir: string) => { export const getArtifacts = (dir: string) => {
const fileNames = fs.readdirSync(root + '/' + dir) const fileNames = fs.readdirSync(root + '/' + dir)