Skip to content

Use API Blueprint for documentation and include aglio generation#14

Merged
ArthurHoaro merged 1 commit into
masterfrom
api
Jul 21, 2016
Merged

Use API Blueprint for documentation and include aglio generation#14
ArthurHoaro merged 1 commit into
masterfrom
api

Conversation

@ArthurHoaro
Copy link
Copy Markdown
Member

@ArthurHoaro ArthurHoaro commented Jul 16, 2016

I've rewritten the API doc using the API Blueprint specification, including @nodiscc proposition from #1.

I've also added the aglio HTML generation for more readability.
Note that the HTML generation is a piece of cake, and could easily be added in the makefile later:

npm install -g aglio
aglio -i api-documentation.md -o api-documentation.html

Any feedback appreciated.

@virtualtam
Copy link
Copy Markdown
Member

Is it possible to automate HTML generation and hosting? This could be as simple as creating a GH Pages project site for the API and switching to a gh-pages branch on this repo.

@virtualtam virtualtam changed the title Use API Blueprint for documentation and include algio generation Use API Blueprint for documentation and include aglio generation Jul 16, 2016
@ArthurHoaro
Copy link
Copy Markdown
Member Author

I never used GH pages, but Travis supports NodeJS, so I guess it is possible.

@virtualtam
Copy link
Copy Markdown
Member

Yup, this way we can:

  • push Markdown API docs to master
  • let Travis generate the static HTML and push it to gh-pages
  • profit!

@kalvn
Copy link
Copy Markdown

kalvn commented Jul 18, 2016

I didn't know this API Blueprint + aglio process but it looks good.

I already used RAML + raml2html generators but I don't know which one can be considered as the most "standard".

@ArthurHoaro
Copy link
Copy Markdown
Member Author

I've used swagger which looks similar (YAML syntax). However, I was looking for something based on Markdown, to be coherent with Shaarli's documentation.

@ArthurHoaro ArthurHoaro merged commit f787212 into master Jul 21, 2016
@nodiscc nodiscc deleted the api branch August 19, 2023 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants