flightphp / core

An extensible micro-framework for PHP
https://docs.flightphp.com
MIT License
2.61k stars 408 forks source link

Question: Good documentation language/tool for rest apis? #319

Closed pascalBokBok closed 7 years ago

pascalBokBok commented 7 years ago

I've done some projects ind Flight and have really enjoyed it. Each time I've written the api doc in a txt format - while that works it requires working very structured and is not particularly great for navigating (no hyperlinks). What tool do you suggest to create api docs? Simple but competent is good.

ghost commented 7 years ago

I'm not sure that this is the best forum for the discussion of general API documentation software (perhaps stackoverflow would be a better choice), but I can provide information about the specific documentation used for http://flightphp.com (the repository is also open source and may be found here: https://github.com/mikecao/flightphp.com)

The documentation is built using Jeckyl (https://jekyllrb.com/docs/home/), a static site generator which takes HTML, CSS and an unprocessed markup language (such as Markdown) and transforms it in to flat HTML.

As http://flightphp.com is a relatively simple website, it's repository makes for a great example / intro to the Jeckyl platform and I would advise taking a look at the code to gain a foundational understanding, in particular the following files: