- Notifications
You must be signed in to change notification settings - Fork 172
/
Copy pathcachebox.cfm
executable file
·27 lines (23 loc) · 830 Bytes
/
cachebox.cfm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<cfparamname="url.version"default="0">
<cfparamname="url.path"default="#expandPath( "./CacheBox-APIDocs" )#">
<cfscript>
docName="CacheBox-APIDocs";
base=expandPath( "/cachebox/system" );
// Create the output directory if it doesn't exist
if ( !directoryExists( url.path ) ) {
directoryCreate( url.path );
}
docbox=newdocbox.DocBox( properties = {
projectTitle ="CacheBox v#url.version#",
outputDir =url.path
} );
docbox.generate( source=base, mapping="cachebox.system" );
</cfscript>
<!---
<cfzip action="zip" file="#expandPath('.')#/#docname#.zip" source="#expandPath( docName )#" overwrite="true" recurse="yes">
<cffile action="move" source="#expandPath('.')#/#docname#.zip" destination="#url.path#">
--->
<cfoutput>
<h1>Done!</h1>
<ahref="#docName#/index.html">Go to Docs!</a>
</cfoutput>