2025-06-06 23:38:02 -07:00
|
|
|
// This file defines the different "Sections" of the website. The sections act
|
|
|
|
// as separate codebases, but hosted as one. This allows me to have
|
|
|
|
// sub-projects like the file viewer in 'file', or the question answer system
|
|
|
|
// in 'q+a'. Each section can define configuration, pages, backend routes, and
|
|
|
|
// contain other files.
|
|
|
|
const join = (...paths: string[]) => path.join(import.meta.dirname, ...paths);
|
|
|
|
|
|
|
|
export const siteSections: Section[] = [
|
2025-06-15 11:35:28 -07:00
|
|
|
{ root: join(".") },
|
2025-06-06 23:38:02 -07:00
|
|
|
{ root: join("q+a/") },
|
|
|
|
{ root: join("file-viewer/") },
|
|
|
|
{ root: join("friends/") },
|
2025-06-15 11:35:28 -07:00
|
|
|
// { root: join("blog/"), pageBase: "/blog" },
|
|
|
|
// { root: join("fiction/"), pageBase: "/fiction" },
|
2025-06-06 23:38:02 -07:00
|
|
|
];
|
|
|
|
|
2025-07-08 23:10:41 -07:00
|
|
|
export const backends: string[] = [
|
|
|
|
join("backend.ts"),
|
|
|
|
join("source-of-truth.ts"),
|
|
|
|
];
|
|
|
|
|
2025-06-06 23:38:02 -07:00
|
|
|
import * as path from "node:path";
|
2025-06-15 23:42:10 -07:00
|
|
|
import type { Section } from "#sitegen";
|