Skip to content

Commit fb62d5f

Browse files
authored
DEV: remove CNAME file (#373)
1 parent ce281c8 commit fb62d5f

2 files changed

Lines changed: 0 additions & 21 deletions

File tree

CNAME

Lines changed: 0 additions & 1 deletion
This file was deleted.

build/docs.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,12 @@ import path from 'path';
88
const {
99
mkdirp: createDir,
1010
remove: removeDir,
11-
writeFile,
1211
} = fs;
1312

1413
const currentDir = path.dirname(fileURLToPath(import.meta.url));
1514

1615
// VARIABLES
1716

18-
/**
19-
* The contents of the CNAME file
20-
*/
21-
const CNAME = `format.digitallinguistics.io`;
22-
2317
/**
2418
* The path to the /docs folder
2519
*/
@@ -34,19 +28,6 @@ const jschemerOptions = {
3428
schemas: path.join(currentDir, `../schemas/json`),
3529
};
3630

37-
// METHODS
38-
39-
/**
40-
* Generates the CNAME file used for GitHub pages in the /docs folder
41-
* @return {Promise}
42-
*/
43-
async function generateCNAME() {
44-
const cnamePath = path.join(docsDir, `CNAME`);
45-
await writeFile(cnamePath, CNAME, `utf8`);
46-
}
47-
48-
// TOP-LEVEL SCRIPT
49-
5031
/**
5132
* Builds the project documentation in the /docs folder
5233
* - deletes the /docs folder and recreates it
@@ -58,5 +39,4 @@ void async function buildDocs() {
5839
await removeDir(docsDir);
5940
await createDir(docsDir);
6041
await generateDocs(jschemerOptions);
61-
await generateCNAME();
6242
}();

0 commit comments

Comments
 (0)