-
-
Notifications
You must be signed in to change notification settings - Fork 105
Expand file tree
/
Copy pathConfig.hx
More file actions
22 lines (21 loc) · 785 Bytes
/
Config.hx
File metadata and controls
22 lines (21 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import haxe.io.Path;
class Config {
public static final contentPath = "./assets/content/";
public static final outputPath = "./output/";
public static final repositoryUrl = switch (Sys.getEnv("REPO_URL")) {
case null: "https://github.com/HaxeFoundation/code-cookbook/";
case v: v;
};
public static final repositoryBranch = switch (Sys.getEnv("REPO_BRANCH")) {
case null: "master";
case v: v;
};
public static final basePath = switch (Sys.getEnv("BASEPATH")) {
case null: "";
case v: v;
};
public static final titlePostFix = " - Haxe programming language cookbook";
public static final cookbookFolder = Path.addTrailingSlash("cookbook");
public static final assetsFolderName = "assets";
public static final snippetsFolder = Path.addTrailingSlash("snippets");
}