Skip to content

Commit

Permalink
Generate API doc inside container. Fixes #22
Browse files Browse the repository at this point in the history
  • Loading branch information
mlowicki committed Nov 18, 2018
1 parent c9542d7 commit 8814130
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions docs/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# https://github.com/danielgtaylor/aglio/blob/master/Dockerfile
FROM node:0.12.7

RUN npm install -g aglio

ENTRYPOINT ["aglio"]
4 changes: 2 additions & 2 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# https://github.com/danielgtaylor/aglio
all:
aglio -i api.apib -o api.html
docker build -t aglio .
docker run -v $(CURDIR):/tmp -t aglio -i /tmp/api.apib -o /tmp/api.html
2 changes: 1 addition & 1 deletion docs/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ <h4>Example URI</h4><div class="definition"><span class="method get">GET</span>&
"<span class="hljs-attribute">ServerTime</span>": <span class="hljs-value"><span class="hljs-string">"Wed Oct 24 20:54:08 CEST 2018"</span></span>,
"<span class="hljs-attribute">Version</span>": <span class="hljs-value"><span class="hljs-string">"0.2"</span></span>,
"<span class="hljs-attribute">Leader</span>": <span class="hljs-value"><span class="hljs-literal">true</span>
</span>}</code></pre><div style="height: 1px;"></div></div></div></div></div></section></div></div></div><p style="text-align: center;" class="text-muted">Generated by&nbsp;<a href="https://github.com/danielgtaylor/aglio" class="aglio">aglio</a>&nbsp;on 08 Nov 2018</p><script>/* eslint-env browser */
</span>}</code></pre><div style="height: 1px;"></div></div></div></div></div></section></div></div></div><p style="text-align: center;" class="text-muted">Generated by&nbsp;<a href="https://github.com/danielgtaylor/aglio" class="aglio">aglio</a>&nbsp;on 18 Nov 2018</p><script>/* eslint-env browser */
/* eslint quotes: [2, "single"] */
'use strict';

Expand Down

0 comments on commit 8814130

Please sign in to comment.