diff --git a/.zealt/.gitkeep b/.zealt/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/zealt.json b/.zealt/config.json similarity index 100% rename from zealt.json rename to .zealt/config.json diff --git a/site/tasks.json b/.zealt/tasks.json similarity index 100% rename from site/tasks.json rename to .zealt/tasks.json diff --git a/site/app/(home)/page.tsx b/site/app/(home)/page.tsx index 5c9f90607e..953e4a2481 100644 --- a/site/app/(home)/page.tsx +++ b/site/app/(home)/page.tsx @@ -1,6 +1,6 @@ import { Github, Terminal } from "lucide-react"; -import tasksData from "../../tasks.json"; -import zealtConfig from "../../../zealt.json"; +import tasksData from "@/zealt/tasks.json"; +import zealtConfig from "@/zealt/config.json"; import LeaderboardTable, { type LeaderboardEntry } from "./components/leaderboard-table"; type TaskTrial = { diff --git a/site/app/tasks/page.tsx b/site/app/tasks/page.tsx index 3f72af0c27..184e42628d 100644 --- a/site/app/tasks/page.tsx +++ b/site/app/tasks/page.tsx @@ -1,4 +1,4 @@ -import tasksDataRaw from "../../tasks.json"; +import tasksDataRaw from "@/zealt/tasks.json"; import { TasksPageClient, type CompactTask, type CompactTrial } from "./components/tasks-page-client"; type RawTaskTrial = { diff --git a/site/scripts/compute-tasks.ts b/site/scripts/compute-tasks.ts index ea9940bfaa..d4caf87880 100644 --- a/site/scripts/compute-tasks.ts +++ b/site/scripts/compute-tasks.ts @@ -218,7 +218,7 @@ async function main() { }); } - const outputPath = path.join(siteRoot, 'tasks.json'); + const outputPath = path.join(siteRoot, '../.zealt/tasks.json'); await fs.writeFile(outputPath, JSON.stringify(tasks, null, 2)); console.log(`Computed ${Object.keys(tasks).length} tasks into ${outputPath}`); diff --git a/site/zealt b/site/zealt new file mode 120000 index 0000000000..5f8aa2b9a1 --- /dev/null +++ b/site/zealt @@ -0,0 +1 @@ +../.zealt \ No newline at end of file