Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to export Apiary Blueprint as PDF, stand-alone HTML or similar "deliverable"?

We need to export our Apiary Blueprint for task assignment purposes as a self containing "deliverable" like PDF or ZIP or similar. I'm aware of the feature request and the discussion below. Is it possible to "hack" something better than the poor html exporter? Maybe by injecting some css style into the page with chrome? Has somebody found a "good-enough" solution?

like image 512
Rodja Avatar asked Dec 02 '14 12:12

Rodja


1 Answers

Ján Sáreník mentioned aglio, you can make it work locally by the following steps.

  • Save your API definition markdown (e.g. myfile.md)
  • Install aglio npm install aglio -g
  • Start aglio server aglio -i myfile.md -s
  • Open localhost:3000 and download the HTML file
  • Hack the HTML by commenting out the <div id="localFile" ...>...</div> warning
  • Hack the HTML by replacing http://localhost:3000/ with empty string everywhere

Aaand it's done.

like image 50
Gábor Imre Avatar answered Oct 02 '22 15:10

Gábor Imre