frankandoak / silo-documentation
Documentation module for Silo
Installs: 167
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Language:JavaScript
This package is not auto-updated.
Last update: 2024-11-19 18:21:21 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'));