aboutsummaryrefslogtreecommitdiff
path: root/scripts/apidocs/utils/paths.ts
blob: defa10fea1f9627950604b497e3f4473f7952747 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { resolve } from 'node:path';

const FILE_PATH_THIS = import.meta.dirname;
/**
 * The path to the project directory.
 */
// Required for converting the source file paths to relative paths
export const FILE_PATH_PROJECT = resolve(FILE_PATH_THIS, '..', '..', '..');
/**
 * The path to the docs directory.
 */
// Required for writing the api page vitepress config
export const FILE_PATH_DOCS = resolve(FILE_PATH_PROJECT, 'docs');
/**
 * The path to the website's public directory.
 */
// Required for publishing the diff index
export const FILE_PATH_PUBLIC = resolve(FILE_PATH_DOCS, 'public');
/**
 * The path to the api docs directory.
 */
// Required for writing various api docs files
export const FILE_PATH_API_DOCS = resolve(FILE_PATH_DOCS, 'api');