-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.ts
57 lines (52 loc) · 1.74 KB
/
config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import { IDictConf, IFileName } from "./public/interfaces";
export enum DictEnum {
PTS = "pts",
DPPN = "dppn",
NCPED = "ncped",
ABBR = "abbr",
}
type dictionary = Record<DictEnum, IDictConf>;
export const ASSETS_DIR = `${__dirname}/assets`;
export const OUTPUT_DIR = `${__dirname}/output`;
export const FILENAME: IFileName = {
entryTemplate: "entry.html",
json: "dict.json",
css: "dict.css",
icon: "dict.png",
txt: "dict.txt",
title: "title.html",
description: "description.html",
mdx: "dict.mdx",
};
export const DICTIONARY: dictionary = {
[DictEnum.PTS]: {
jsonUrl:
"https://raw.githubusercontent.com/suttacentral/sc-data/master/dictionaries/complex/en/pli2en_pts.json",
fullName: "Pali Text Society Pali-English Dictionary",
shortName: DictEnum.PTS,
assetsDir: `${ASSETS_DIR}/${DictEnum.PTS}`,
outputDir: `${OUTPUT_DIR}/${DictEnum.PTS}`,
},
[DictEnum.DPPN]: {
jsonUrl:
"https://raw.githubusercontent.com/suttacentral/sc-data/master/dictionaries/complex/en/pli2en_dppn.json",
fullName: "Dictionary of Pali Proper Names",
shortName: DictEnum.DPPN,
assetsDir: `${ASSETS_DIR}/${DictEnum.DPPN}`,
outputDir: `${OUTPUT_DIR}/${DictEnum.DPPN}`,
},
[DictEnum.NCPED]: {
jsonUrl:
"https://raw.githubusercontent.com/suttacentral/sc-data/master/dictionaries/simple/en/pli2en_ncped.json",
fullName: "New Concise Pali-English Dictionary",
shortName: DictEnum.NCPED,
assetsDir: `${ASSETS_DIR}/${DictEnum.NCPED}`,
outputDir: `${OUTPUT_DIR}/${DictEnum.NCPED}`,
},
[DictEnum.ABBR]: {
fullName: "New Concise Pali-English Dictionary",
shortName: DictEnum.ABBR,
assetsDir: `${ASSETS_DIR}/${DictEnum.ABBR}`,
outputDir: `${OUTPUT_DIR}/${DictEnum.ABBR}`,
},
};