Closed mygitmansoor closed 6 years ago
Can you try v0.1.127 and let me know?
Its creating file but Node.js control never return back, it just gets hung. HTML is missing 'Try this operation button' by default its coming expanded and hide link is missing
Thanks,
I rolled out a new version. Try it out and let me know.
Thanks it works but still Try This Operation button is missing.
Thanks, Mansoor.
On Mon, Oct 9, 2017 at 11:50 AM tj notifications@github.com wrote:
I rolled out a new version. Try it out and let me know.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/twskj/pretty-swag/issues/43#issuecomment-335199026, or mute the thread https://github.com/notifications/unsubscribe-auth/AfEh3n4MIktlib0-RvFDEc1ogDVl0Viqks5sqkCxgaJpZM4Pw6GW .
--
I don't see it from my side. Can you share how do you generate it again?
Below is my code and html screen print.
Code:
const
prettySwag = require('pretty-swag');
config = {};
config.format = "SingleFile";
config.markdown = true;
config.fixedNav = true;
config.autoTags = true;
config.theme = {
"default" : "blue",
"GET" : "blue",
"POST" : "indigo",
"DELETE" : "red",
"PUT" : "amber"
};
input = "input.json";
output = "doc.html";
prettySwag.run(input, output, config, function(err) {
if (err) {
console.log(err);
} else {
console.log("success");
}
});
var http = require('http'),
fs = require('fs');
http.createServer(function(request, response) {
console.log(request.url);
if (request.url == '/index.html' || request.url == '/') {
fs.readFile('doc.html', function(err, data) {
if (err) {
throw err;
}
response.writeHeader(200, {
"Content-Type" : "text/html"
});
console.log(data);
response.write(data);
response.end();
});
}
}).listen(8000);
Screen print:
[image: Inline image 1]
Thanks,
Mansoor
On Tue, Oct 10, 2017 at 3:40 PM, tj notifications@github.com wrote:
I don't see it from my side. Can you share how you generate it again?
[image: image] https://user-images.githubusercontent.com/25628219/31406959-d5a833c6-adc8-11e7-8192-30328a51bde5.png
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/twskj/pretty-swag/issues/43#issuecomment-335584897, or mute the thread https://github.com/notifications/unsubscribe-auth/AfEh3h9mbcnedsMEGHocMANGXLXINn-Sks5sq8gqgaJpZM4Pw6GW .
-- Regrads, Mansoor.MD, Software Engg, SPI-9844978315, mansoor_711@yahoo.com.
I used the snippet you provided but still cannot reproduce the bug you are seeing. Maybe it is browser related? What browser and what version you are using? Can you also send me the doc.html too and that would help me understand the problem.
Also, could you make sure you are using the latest version? Thanks
Reported fixed.
I keep getting below error when I use the format as "offline". Thanks for your help in advance.
Error:
Thanks,