2017 © Pedro Pelรกez
 

library doru-doc

Automatic documentor for APIs

image

punarinta/doru-doc

Automatic documentor for APIs

  • Wednesday, April 19, 2017
  • by punarinta
  • Repository
  • 1 Watchers
  • 0 Stars
  • 43 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Doru Documentor

An automatic documentor for APIs., (*1)

Markup

Please see 'example' directory for better understanding., (*2)

Data types: * "int" โ€” creates an input limited to integers * "date" โ€” creates a date picker * "bool" โ€” creates a drop down box with "true" and "false" * "enum" โ€” creates a date down box with alternatives * anything else โ€” simply generates an text input field, (*3)

Format, (*4)

* @doc-var (int=42) foo!  - An obligatory integer named "foo" with default of 42.

* @doc-var (string) bar   - Just a string named "bar".

Configuration file

Example:, (*5)

{
  "input":
  {
    "dirs":
    [
      "../../App/Controller"
    ]
  },
  "output":
  {
    "dir": "../../public/docs",
    "filename": "index.html",
    "rootUrl":  "/api"
  },
  "exclude":
  [
    "Generic.php",
    "Upload.php"
  ],
  "templates":
  {
    "dir": "templates",
    "overwrite": ["header", "footer", "layout"]
  }
}

input.dirs โ€” an array of relative paths to scan for files, (*6)

output.dir โ€” a relative path to the output directory output.filename โ€” name of the resulting HTML file output.rootUrl โ€” a root URL to use in in-page API calls, (*7)

exclude โ€” a list of files to exclude while scanning, (*8)

templates.dir โ€” a relative path to the directory with templates replacements templates.overwrite โ€” a list of templates to overwrite, (*9)

The Versions

19/04 2017

dev-master

9999999-dev

Automatic documentor for APIs

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Vladimir Osipov

api apidoc documentor