Skip to content

Instantly share code, notes, and snippets.

@mhenke
Created September 26, 2010 18:43
Show Gist options
  • Save mhenke/598196 to your computer and use it in GitHub Desktop.
Save mhenke/598196 to your computer and use it in GitHub Desktop.
<!---
Let's generate our default HTML documentation on Wheels:
--->
<cfscript>
version = "1.0.5";
wheels = createObject("component", "ColdDoc").init();
strategy = createObject("component", "colddoc.strategy.api.HTMLAPIStrategy").init(
expandPath("docs"),
"ColdFusion On Wheels #version#");
wheels.setStrategy(strategy);
paths = [
{ inputDir = expandPath("..\controllers")
,inputMapping = "controllers"
},
{
inputDir = expandPath("..\miscellaneous")
,inputMapping = "miscellaneous"
},
{
inputDir = expandPath("..\models")
,inputMapping = "models"
},
{
inputDir = expandPath("..\wheels")
,inputMapping = "wheels"
},
{
inputDir = expandPath("..\")
,inputMapping = "."
}
];
wheels.generate(paths);
</cfscript>
<h1>Done!</h1>
<a href="docs">Documentation</a>
@mhenke
Copy link
Author

mhenke commented Sep 26, 2010

to generate Wheels API:

  1. must replace any cfinclude in cfcs
  2. the copy this file over the run.cfm in the colddoc folder and run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment