File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ const runCmd = async (cmd, path) => {
67
67
ensureFileSync ( destination )
68
68
const projYuiDocFile = destination ;
69
69
removeSync ( projYuiDocFile )
70
- removeSync ( `tmp /json-docs/${ project } /${ version } ` )
70
+ removeSync ( `${ docsPath } /json-docs/${ project } /${ version } ` )
71
71
72
72
mkdirpSync ( `tmp/s3-docs/v${ version } ` )
73
73
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export default function readDocs(
16
16
let prevValue = await prevPromise
17
17
let prevIndexedVersions = [ ]
18
18
19
- let projectFile = `tmp /json-docs/${ projectName } /projects/${ projectName } .json`
19
+ let projectFile = `${ docsPath } /json-docs/${ projectName } /projects/${ projectName } .json`
20
20
21
21
console . log ( projectFile , await fs . pathExists ( projectFile ) )
22
22
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ const docsPath = '../ember-api-docs-data';
12
12
13
13
function revProjVersionFiles ( project , ver ) {
14
14
let opProgress = ora ( `Revving ${ project } :${ ver } files` ) . start ( )
15
- const projDocsDir = path . resolve ( `tmp /json-docs/${ project } ` )
15
+ const projDocsDir = path . resolve ( `${ docsPath } /json-docs/${ project } ` )
16
16
const revIndexFolder = path . resolve ( `${ docsPath } /rev-index` ) ;
17
17
18
18
fs . mkdirpSync ( revIndexFolder )
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ export async function apiDocsProcessor(
49
49
let docVersion = doc . version
50
50
console . log ( `Starting to process ${ projectName } -${ docVersion } ` )
51
51
52
- const existingFolder = `tmp /json-docs/${ projectName } /${ docVersion } `
52
+ const existingFolder = `${ docsPath } /json-docs/${ projectName } /${ docVersion } `
53
53
if ( fs . existsSync ( existingFolder ) ) {
54
54
// delete the folder
55
55
rimraf . sync ( existingFolder )
@@ -83,7 +83,7 @@ export async function apiDocsProcessor(
83
83
return Promise . resolve ( )
84
84
}
85
85
86
- let existingDoc = `tmp /json-docs/${ projectName } /projects/${ projectName } .json`
86
+ let existingDoc = `${ docsPath } /json-docs/${ projectName } /projects/${ projectName } .json`
87
87
if ( fs . existsSync ( existingDoc ) ) {
88
88
existingDoc = fs . readJsonSync ( existingDoc )
89
89
docToSave . data . relationships [ 'project-versions' ] . data = docToSave . data . relationships [
@@ -104,7 +104,7 @@ export async function apiDocsProcessor(
104
104
[ 'ember' , 'ember-data' ] . map ( project => {
105
105
const projRevFile = `${ docsPath } /rev-index/${ project } .json`
106
106
let projRevFileContent = fs . readJsonSync (
107
- `tmp /json-docs/${ project } /projects/${ project } .json`
107
+ `${ docsPath } /json-docs/${ project } /projects/${ project } .json`
108
108
)
109
109
projRevFileContent . meta = {
110
110
availableVersions : [ ] ,
You can’t perform that action at this time.
0 commit comments