0.0
No commit activity in last 3 years
No release in over 3 years
API documentation engine for Rails 4 with Postgres and Bootstrap
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 4.0.1
~> 2.3.0
~> 5.0.0
< 5, >= 4
~> 3.1.2
~> 4.0.1
~> 2.1.5
~> 1.4.1
~> 2.3.0
~> 2.5.1
 Project Readme

API documentation engine for Rails 4

The ApiDocsEngine provides simple UI to manage API documentation for your application. Documentation stored in db (currently only supports PostgreSQL >= 9.2) with Markdown syntax. UI uses Bootstrap, Turbolinks and Highlight.js.

Currently gem is very raw and needs more documentation.

Installation

Add this line to your application's Gemfile:

gem 'api_docs_engine'

And then execute:

$ bundle

Generate migrations:

$ rails g api_docs_engine docs
$ rake db:migrate

Generate initializer:

$ rails g api_docs_engine:install

Using with BootInquirer

Note: You shouldn't add 'api_docs_engine' to your application's Gemfile.

  • Create new docs engine
  • Add spec.add_dependency 'api_docs_engine' to docs.gemspec
  • Ad following code in your %engines_path%/docs/lib/docs.rb:
require "api_docs_engine/docs"

Docs.setup do |config|
  # config.title = "API documentation"
  # config.root_path = { to: "pages#index", defaults: { page_category_id: "common" }}
  # config.missing_routes_filter = /api\/.*/
  # config.api_docs_prefix = "api"
  # config.auth = Proc.new do |controller|
  #   controller.class_eval do
  #     http_basic_authenticate_with name: "admin", password: "admin", only: nil
  #   end
  # end
end

require "docs/engine"

Usage

TODO: Write usage instructions here

Contributing

  1. Fork it ( https://github.com/[my-github-username]/api_docs_engine/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request