documentation's theme that output markdown.
Install with npm:
npm install documentation-markdown-api-theme
Convert example.js
to Markdown API reference
$ documentation build --access public --theme documentation-markdown-api-theme -f html -o out.md example.js
Simulate documentation readme
command using add-text-to-markdown:
npm i -g add-text-to-markdown
documentation build --access public --theme documentation-markdown-api-theme -f html -o out.md example.js
echo out.md | add-text-to-markdown path/to/file.md --section "section name" --write
We want to create updatable API Usage to README.md
Install devDependencies:
npm install documentation-markdown-api-theme documentation add-text-to-markdown -D
Add npm run-script for updating ## Usage
section
...
"scripts": {
"docs": "documentation build --access public --theme ./node_modules/documentation-markdown-api-theme/lib/index -f html -o out.md src/index.js && cat out.md | add-text-to-markdown README.md --section \"Usage\" --write; rm out.md",
"prepublish": "npm run --if-present build && npm run docs"
},
"devDependencies": {
"add-text-to-markdown": "^1.0.3",
"documentation": "^4.0.0-beta11",
"documentation-markdown-api-theme": "^1.0.2"
},
...
Update ## Usage
section
npm run docs
See documentationjs/documentation#550
See
- https://almin.js.org/docs/api/
- azu/ui-event-observer: Provide performant way to subscribe to browser UI Events.
hello with destructuring params
Parameters
Parameters
text
: string
Returns: string - echo text
Given a hierarchy-nested set of comments
, generate an remark-compatible
Abstract Syntax Tree usable for generating Markdown output
Parameters
comments
: Array<Object> - nested commentopts
: Object - currently none acceptedcallback
: Function - called with AST
Returns: undefined
Person class
Parameters
name
: string - Person name
get person name
Returns: string
See Releases page.
Install devDependencies and Run npm test
:
npm i -d && npm test
Pull requests and stars are always welcome.
For bugs and feature requests, please create an issue.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
MIT © azu