frankandoak / silo-documentation
There is no license information available for the latest version (v0.1.0) of this package.
Documentation module for Silo
Package info
github.com/frankandoak/silo-documentation
Language:JavaScript
pkg:composer/frankandoak/silo-documentation
v0.1.0
2017-06-21 18:42 UTC
This package is not auto-updated.
Last update: 2026-03-11 00:27:44 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'));