projects
/
gnome.introspection-doc-generator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
45a172f
)
JSDOC/BuildDocs.js
author
Alan Knowles
<alan@akbkhome.com>
Tue, 29 Jun 2010 10:13:11 +0000
(18:13 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Tue, 29 Jun 2010 10:13:11 +0000
(18:13 +0800)
JSDOC/BuildDocs.js
patch
|
blob
|
history
diff --git
a/JSDOC/BuildDocs.js
b/JSDOC/BuildDocs.js
index
2ecaea0
..
5a7690b
100644
(file)
--- a/
JSDOC/BuildDocs.js
+++ b/
JSDOC/BuildDocs.js
@@
-340,18
+340,23
@@
BuildDocs = {
},
},
- makeSrcFile: function(sourceFile
, targetDir, name
)
+ makeSrcFile: function(sourceFile)
{
{
- if (Options.outputSource) return;
-
+
if (!name) {
name = sourceFile.replace(/\.\.?[\\\/]/g, "").replace(/[\\\/]/g, "_");
name = name.replace(/\:/g, "_");
}
if (!name) {
name = sourceFile.replace(/\.\.?[\\\/]/g, "").replace(/[\\\/]/g, "_");
name = name.replace(/\:/g, "_");
}
- var pretty = PrettyPrint.toPretty(sourceFile);
-
+ var pretty = PrettyPrint.toPretty(File.read(sourceFile));
+ File.write(Options.target+"/symbols/src" + prettyfile,
+ '<html><head>' +
+ '<title>' + files[i].substr(spath.length+1) + '</title>' +
+ '<link rel="stylesheet" type="text/css" href="../../../css/highlight-js.css"/>' +
+ '</head><body class="highlightpage">' +
+ pretty +
+ '</body></html>');
}
}