You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I do jake docs in a Cappuccino directory which is cloned from GitHub and it is the node version... I get this error:
ReferenceError: FILE is not defined.
I think the FILE is a Narwhal object and the documentation building process is not worked on yet to do it with Node.js...
I modified the jakefile to try my luck and the edited code seems like working but doing jake docs again throws another set of errors which I currently don't know how to solve them:
Using path_to_doxygen for doxygen binary.
Pre-processing source files...
Tools/Documentation/preprocess/001.markdown_readme.sh
Tools/Documentation/preprocess/001.markdown_readme.sh: line 12: /support/processor_setup.sh: No such file or directory
Tools/Documentation/preprocess/001.markdown_readme.sh: line 17: processor_msg: command not found
Tools/Documentation/preprocess/001.markdown_readme.sh: line 18: /README.html: Read-only file system
Build took 51 millseconds
The new Node.js code for the jakefile
I hope that it helps to gain some time when the right time comes to work on this issue:
task("docset",function(){generateDocs(true);constdocumentationDir=path.resolve(path.join("Tools","Documentation"));constdocsetShell=path.join(documentationDir,"support","docset.sh");try{childProcess.execSync(`${docsetShell} "${documentationDir}"`,{stdio: 'inherit'});}catch(error){console.error("Error occurred while creating docset:",error.message);}});functiongenerateDocs(noFrame){letdoxygen=null;try{// Check if doxygen executable exists in PATHdoxygen=childProcess.execSync('which doxygen').toString().trim();}catch(error){// Error occurred or doxygen not found}// If Doxygen not found and on macOS, try to find it using mdfindif(!doxygen&&process.platform==='darwin'){try{constmdfindResult=childProcess.execSync('mdfind "kMDItemContentType == \'com.apple.application-bundle\' && kMDItemCFBundleIdentifier == \'org.doxygen\'"').toString().trim();constdoxygenApps=mdfindResult.split("\n");if(doxygenApps[0]){doxygen=path.join(doxygenApps[0],"Contents/Resources/doxygen");}}catch(error){// Error occurred or doxygen app not found}}if(!doxygen){console.log("Doxygen not installed, skipping documentation generation.");return;}console.log("Using "+doxygen+" for doxygen binary.");console.log("Pre-processing source files...");constdocumentationDir=path.join("Tools","Documentation");constpreprocessors=fs.readdirSync(path.join(documentationDir,"preprocess"));for(constprocessorofpreprocessors){constprocessorPath=path.join(documentationDir,"preprocess",processor);console.info(processorPath);try{childProcess.execSync(processorPath,[documentationDir]);}catch(error){// Error occurred during pre-processingreturn;}}if(noFrame){// Back up the default settings, turn off the treeviewtry{childProcess.execSync(`sed -i '.bak' 's/GENERATE_TREEVIEW.*=.*YES/GENERATE_TREEVIEW = NO/' "${path.join(documentationDir,"Cappuccino.doxygen")}"`);}catch(error){// Error occurred during sed commandreturn;}}elseif(fs.existsSync(path.join(documentationDir,"Cappuccino.doxygen.bak"))){fs.renameSync(path.join(documentationDir,"Cappuccino.doxygen.bak"),path.join(documentationDir,"Cappuccino.doxygen"));}constdoxygenDidSucceed=!childProcess.execSync(`${doxygen} "${path.join(documentationDir,"Cappuccino.doxygen")}"`);// Restore the original doxygen settingsif(fs.existsSync(path.join(documentationDir,"Cappuccino.doxygen.bak"))){fs.renameSync(path.join(documentationDir,"Cappuccino.doxygen.bak"),path.join(documentationDir,"Cappuccino.doxygen"));}console.log("Post-processing generated documentation...");constpostprocessors=fs.readdirSync(path.join(documentationDir,"postprocess"));for(constprocessorofpostprocessors){constprocessorPath=path.join(documentationDir,"postprocess",processor);try{childProcess.execSync(processorPath,[documentationDir,"Documentation/html"]);}catch(error){// Error occurred during post-processingfs.rmSync("Documentation",{recursive: true,force: true});return;}}if(doxygenDidSucceed){if(!fs.existsSync($BUILD_DIR)){fs.mkdirSync($BUILD_DIR,{recursive: true});}fs.rmSync($DOCUMENTATION_BUILD,{recursive: true,force: true});fs.renameSync("debug.txt",path.join("Documentation","debug.txt"));fs.renameSync("Documentation",$DOCUMENTATION_BUILD);// There is a bug in doxygen 1.7.x preventing loading correctly the custom CSS// So let's do it manuallyfs.copyFileSync(path.join(documentationDir,"doxygen.css"),path.join($DOCUMENTATION_BUILD,"html","doxygen.css"));}}
The text was updated successfully, but these errors were encountered:
When I do
jake docs
in a Cappuccino directory which is cloned from GitHub and it is the node version... I get this error:I think the FILE is a Narwhal object and the documentation building process is not worked on yet to do it with Node.js...
I modified the
jakefile
to try my luck and the edited code seems like working but doingjake docs
again throws another set of errors which I currently don't know how to solve them:The new Node.js code for the
jakefile
I hope that it helps to gain some time when the right time comes to work on this issue:
The text was updated successfully, but these errors were encountered: