1. Go to this page and download the library: Download motor-cms/motor-docs library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
motor-cms / motor-docs example snippets
return [
'route' => 'documentation',
'name' => 'Motor-Docs',
'logo' => 'images/motor-logo-white-cropped.png',
'copyright' => 'Reza Esmaili',
'packages' => [
'motor-docs' => [ // this should match with your package name. use 'local' for the main app
'position' => 1, // sets the sorting position for this package
'name' => 'Motor-Docs',
'navigation' => '_navigation' // name of your sidebar navigation markdown file
]
]
];
return [
'packages' => [
'second-package' => [ // this should match with your package name. use 'local' for the main app
'position' => 2, // sets the sorting position for this package
'name' => 'Second package',
'navigation' => '_navigation' // name of your sidebar navigation markdown file
]
]
];