|
|
@@ -102,13 +102,14 @@ block content
|
|
|
"paths" : {
|
|
|
"mathjax": "#{buildJsPath('/libs/mathjax/MathJax.js', {cdn:false, fingerprint:false, qs:{config:'TeX-AMS_HTML'}})}",
|
|
|
"moment": "libs/moment-2.7.0",
|
|
|
- "libs/pdf": "libs/pdfjs-1.3.91p1/pdf",
|
|
|
+ "libs/pdf": "libs/#{lib('pdfjs')}/pdf",
|
|
|
+ "ace": "#{lib('ace')}"
|
|
|
},
|
|
|
"urlArgs" : "fingerprint=#{fingerprint(jsPath + 'ide.js')}-#{fingerprint(jsPath + 'libs.js')}",
|
|
|
"waitSeconds": 0,
|
|
|
"shim": {
|
|
|
"libs/pdf": {
|
|
|
- deps: ["libs/pdfjs-1.3.91p1/compatibility"]
|
|
|
+ deps: ["libs/#{lib('pdfjs')}/compatibility"]
|
|
|
},
|
|
|
"ace/ext-searchbox": {
|
|
|
deps: ["ace/ace"]
|
|
|
@@ -123,14 +124,14 @@ block content
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
- window.aceFingerprint = "#{fingerprint(jsPath + 'ace/ace.js')}"
|
|
|
+ window.aceFingerprint = "#{fingerprint(jsPath + lib('ace') + '/ace.js')}"
|
|
|
|
|
|
- locals.suppressDefaultJs = true
|
|
|
|
|
|
- - var pdfPath = 'libs/pdfjs-1.3.91p1/pdf.worker.js'
|
|
|
+ - var pdfPath = "libs/" + lib('pdfjs') + "/pdf.worker.js"
|
|
|
- var fingerprintedPath = fingerprint(jsPath+pdfPath)
|
|
|
- var pdfJsWorkerPath = buildJsPath(pdfPath, {cdn:false,qs:{fingerprint:fingerprintedPath}}) // don't use worker for cdn
|
|
|
- - var aceWorkerPath = user.betaProgram ? buildJsPath("ace", {cdn:false,fingerprint:false}) : "" // don't use worker for cdn
|
|
|
+ - var aceWorkerPath = user.betaProgram ? buildJsPath(lib('ace'), {cdn:false,fingerprint:false}) : "" // don't use worker for cdn
|
|
|
|
|
|
script(type='text/javascript').
|
|
|
window.pdfJsWorkerPath = "#{pdfJsWorkerPath}";
|
|
|
@@ -139,7 +140,7 @@ block content
|
|
|
script(
|
|
|
data-main=buildJsPath("ide.js", {fingerprint:false}),
|
|
|
baseurl=fullJsPath,
|
|
|
- data-ace-base=buildJsPath('ace', {fingerprint:false}),
|
|
|
+ data-ace-base=buildJsPath(lib('ace'), {fingerprint:false}),
|
|
|
src=buildJsPath('libs/require.js')
|
|
|
)
|
|
|
|