library silo-documentation
Documentation module for Silo
frankandoak/silo-documentation
Documentation module for Silo
- Thursday, August 10, 2017
- by dav-m85
- Repository
- 1 Watchers
- 0 Stars
- 158 Installations
- JavaScript
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 0 % Grown
frankandoak/silo-documentation
Documentation module, comes with the PHP endpoint and the React component. Serves also the none markdown files., (*1)
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'));