File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -8,18 +8,12 @@ import path from 'path';
88const {
99 mkdirp : createDir ,
1010 remove : removeDir ,
11- writeFile,
1211} = fs ;
1312
1413const 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} ( ) ;
You can’t perform that action at this time.
0 commit comments