blob: 8abca1ea9967d8a6f61deca27885ea75b903156b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
import { dirname, resolve } from 'node:path';
import { fileURLToPath } from 'node:url';
const FILE_PATH_THIS = dirname(fileURLToPath(import.meta.url));
/**
* 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');
|