frankandoak/silo-documentation

There is no license information available for the latest version (v0.1.0) of this package.

Documentation module for Silo

v0.1.0 2017-06-21 18:42 UTC

This package is not auto-updated.

Last update: 2024-11-05 18:06:22 UTC


README

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'));