small design and bug fixes
This commit is contained in:
parent
0f52f78c10
commit
cf9e9d9652
@ -5,9 +5,9 @@
|
|||||||
"recurseDepth": 10,
|
"recurseDepth": 10,
|
||||||
"source": {
|
"source": {
|
||||||
"include": ["docfiles"],
|
"include": ["docfiles"],
|
||||||
"include_2": ["../develop/first/gui/js/providers"],
|
"include_2": ["../../develop/first/gui/js/providers"],
|
||||||
"include_3": ["../develop/first/gui/js"],
|
"include_3": ["../../develop/first/gui/js"],
|
||||||
"core": ["../develop/first/core"],
|
"core": ["../../develop/first/core"],
|
||||||
"includePattern": ".+\\.js(doc|x)?$",
|
"includePattern": ".+\\.js(doc|x)?$",
|
||||||
"excludePattern": "(^|\\/|\\\\)_"
|
"excludePattern": "(^|\\/|\\\\)_"
|
||||||
},
|
},
|
||||||
@ -16,7 +16,7 @@
|
|||||||
"encoding": "utf8",
|
"encoding": "utf8",
|
||||||
"readme": "",
|
"readme": "",
|
||||||
"recurse": true,
|
"recurse": true,
|
||||||
"destination": "../documentation/"
|
"destination": "../../documentation/"
|
||||||
},
|
},
|
||||||
"plugins": [
|
"plugins": [
|
||||||
"plugins/markdown"
|
"plugins/markdown"
|
||||||
|
@ -23,7 +23,9 @@ var hasOwnProp = Object.prototype.hasOwnProperty;
|
|||||||
var data;
|
var data;
|
||||||
var view;
|
var view;
|
||||||
|
|
||||||
|
console.log(env.opts.destination)
|
||||||
var outdir = path.normalize(env.opts.destination);
|
var outdir = path.normalize(env.opts.destination);
|
||||||
|
console.log(outdir)
|
||||||
|
|
||||||
function find(spec) {
|
function find(spec) {
|
||||||
return helper.find(data, spec);
|
return helper.find(data, spec);
|
||||||
@ -239,6 +241,8 @@ function generate(title, docs, filename, resolveLinks) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
outpath = path.join(outdir, filename);
|
outpath = path.join(outdir, filename);
|
||||||
|
// console.log("outdir:", outdir, "outpath:", outpath, "filename:", filename)
|
||||||
|
|
||||||
// console.log(docData)
|
// console.log(docData)
|
||||||
html = view.render('container.tmpl', docData);
|
html = view.render('container.tmpl', docData);
|
||||||
|
|
||||||
|
@ -195,10 +195,12 @@ var generate_files = function(){
|
|||||||
|
|
||||||
|
|
||||||
var name = node.path.split("/").splice(6).join("_");
|
var name = node.path.split("/").splice(6).join("_");
|
||||||
|
// console.log("out_name:", name)
|
||||||
|
|
||||||
var out_path = output + "/" + name + ".html";
|
var out_path = output + "/" + name + ".html";
|
||||||
node.link = name + ".html";
|
node.link = name + ".html";
|
||||||
|
|
||||||
// console.log(node.link, node.name);
|
// console.log(node.link, node.name, node.path);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
var source = {
|
var source = {
|
||||||
@ -210,7 +212,10 @@ var generate_files = function(){
|
|||||||
logger.error('Error while generating source file %s: %s', name, e.message);
|
logger.error('Error while generating source file %s: %s', name, e.message);
|
||||||
}
|
}
|
||||||
|
|
||||||
generate('Source: ' + node.name, [source], out_path, false);
|
|
||||||
|
// out_path = out_path.replace("//", "/");
|
||||||
|
// console.log("out_path:", out_path);
|
||||||
|
generate('Source: ' + node.name, [source], node.link, false);
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -172,7 +172,6 @@ h4, h4 a
|
|||||||
{
|
{
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
letter-spacing: -0.33px;
|
letter-spacing: -0.33px;
|
||||||
color: #4d4e53;
|
|
||||||
}
|
}
|
||||||
.compact-method .param > .name:before {
|
.compact-method .param > .name:before {
|
||||||
content: " ";
|
content: " ";
|
||||||
|
@ -43,8 +43,13 @@ body
|
|||||||
background-color: white;
|
background-color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
a, a:visited, a:active {
|
a {
|
||||||
|
text-decoration: none;
|
||||||
color: #0095dd;
|
color: #0095dd;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:visited, a:active {
|
||||||
|
color: #004fdd;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user