small design and bug fixes

This commit is contained in:
Aleksey Chichenkov 2019-03-15 10:50:42 +03:00
parent 0f52f78c10
commit cf9e9d9652
5 changed files with 21 additions and 8 deletions

View File

@ -5,9 +5,9 @@
"recurseDepth": 10,
"source": {
"include": ["docfiles"],
"include_2": ["../develop/first/gui/js/providers"],
"include_3": ["../develop/first/gui/js"],
"core": ["../develop/first/core"],
"include_2": ["../../develop/first/gui/js/providers"],
"include_3": ["../../develop/first/gui/js"],
"core": ["../../develop/first/core"],
"includePattern": ".+\\.js(doc|x)?$",
"excludePattern": "(^|\\/|\\\\)_"
},
@ -16,7 +16,7 @@
"encoding": "utf8",
"readme": "",
"recurse": true,
"destination": "../documentation/"
"destination": "../../documentation/"
},
"plugins": [
"plugins/markdown"

View File

@ -23,7 +23,9 @@ var hasOwnProp = Object.prototype.hasOwnProperty;
var data;
var view;
console.log(env.opts.destination)
var outdir = path.normalize(env.opts.destination);
console.log(outdir)
function find(spec) {
return helper.find(data, spec);
@ -239,6 +241,8 @@ function generate(title, docs, filename, resolveLinks) {
};
outpath = path.join(outdir, filename);
// console.log("outdir:", outdir, "outpath:", outpath, "filename:", filename)
// console.log(docData)
html = view.render('container.tmpl', docData);

View File

@ -195,10 +195,12 @@ var generate_files = function(){
var name = node.path.split("/").splice(6).join("_");
// console.log("out_name:", name)
var out_path = output + "/" + name + ".html";
node.link = name + ".html";
// console.log(node.link, node.name);
// console.log(node.link, node.name, node.path);
try {
var source = {
@ -210,7 +212,10 @@ var generate_files = function(){
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);
}
};

View File

@ -172,7 +172,6 @@ h4, h4 a
{
font-size: 18px;
letter-spacing: -0.33px;
color: #4d4e53;
}
.compact-method .param > .name:before {
content: " ";

View File

@ -43,8 +43,13 @@ body
background-color: white;
}
a, a:visited, a:active {
a {
text-decoration: none;
color: #0095dd;
}
a:visited, a:active {
color: #004fdd;
text-decoration: none;
}