An open API service indexing awesome lists of open source software.

https://github.com/drewmoore/memorygame


https://github.com/drewmoore/memorygame

Last synced: 11 months ago
JSON representation

Awesome Lists containing this project

README

          

# Docdown v1.0.0

## `docdown`
* [`docdown`](#docdown$optionsarray)

## `docdown`

### `docdown([$options=array()])`
# [Ⓢ](https://github.com/jdalton/docdown/blob/master/docdown.php#L34 "View in source") [Ⓣ][1]

Generates Markdown from JSDoc entries in a given file.

#### Arguments
1. `[$options=array()]` *(Array)*: The options array.

#### Returns
*(String)*: The generated Markdown.

#### Example
```php
// specify a file path
$markdown = docdown(array(
// path to js file
'path' => $filepath,
// url used to reference line numbers in code
'url' => 'https://github.com/username/project/blob/master/my.js'
));

// or pass raw js
$markdown = docdown(array(
// raw JavaScript source
'source' => $rawJS,
// documentation title
'title' => 'My API Documentation',
// url used to reference line numbers in code
'url' => 'https://github.com/username/project/blob/master/my.js'
));
```

* * *

[1]: #docdown "Jump back to the TOC."