Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 514 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 514 Bytes

frankandoak/silo-documentation

Documentation module, comes with the PHP endpoint and the React component. Serves also the none markdown files.

Usage

$app->register(new \Silo\Documentation\Provider([
    '/silo' => './vendor/frankandoak/silo/doc',
    '' => './doc')
]));
## Inside your routing file
const Doc = require('./../vendor-repo/frankandoak/silo-documentation').Doc; 
ReactDOM.render(<Doc page={url.match(/\/doc(.*)$/)[1]}/>, document.getElementById('#doc'));