danielgtaylor / atom-api-blueprint-preview

Live preview API Blueprint in Atom
MIT License
43 stars 19 forks source link

Styles #53

Open curtisblackwell opened 8 years ago

curtisblackwell commented 8 years ago

Are you planning to include any of the themes' styles? Maybe that's something users can automatically add themselves and I'm just unaware?

Loving this package, thanks for writing it!

arypbatista commented 5 years ago

Anyone know if there is a way to customize styling? Or modify the command line used to compile?

trishantpahwa commented 5 years ago

Styling might be useful. This was on line 35:

exec "aglio -i #{tempFile} -t #{template} -n #{includePath} -o -", {env, options}, (err, stdout, stderr) =>

I tried this in the repo I cloned:

exec "aglio -i #{tempFile} --theme-variable slate --theme-template triple -o -", {env, options}, (err, stdout, stderr) =>

This was on line 36. I tried this to allow it to parse the document and convert it to html. Though the issue arises when I tried to add theme-variable and theme-template, but it gives an error that a promise is not resolved, and that a variable document is not found. According to me, the error is due to the resolveImagePaths function is not able to properly parse the the pipelined stdoutput.