-
Клонировать репозиторий
git clone [email protected]:slimframework-ru/mdReader.git /path/to/project
-
Установить зависимости
composer install
-
Если нет файла
/path/to/project/config/config.php
, скопировать из примераcd /path/to/project/config php -r "file_exists('config.php') || copy('config.example.php', 'config.php');"
-
Настроить конфигурацию приложения (файл
/path/to/project/config/config.php
)return array( 'metrika' => null, // Идентификатор Яндекс.Метрики 'repository' => 'https://github.com/slimframework-ru/slim.ru', // Репозиторий с markdown-файлами документации. Необходим для ссылки "Редактировать страницу". 'website' => 'http://slimframework.ru', // Адрес сайта. Необходим для микроразметки. 'ads' => array( // Рекламные площадки 'google' => array( // Google Ad 'show' => false, // Включить показ рекламы 'format' => '', // Формат (fluid) 'layout' => '', // Layout key 'client' => '', // Google Ad Client 'slot' => '', // Слот ), ), );
-
Настроить вебсервер так, чтобы
DOCUMENT_ROOT
был в/path/to/project/public
и все несуществующие файлы обрабатывались файломindex.php
. Для примера, конфиг nginxserver { listen 80; server_name slimframework.ru; root /path/to/project/public/public; index index.php index.html; location ~* \.(jpg|jpeg|gif|css|png|js|ico|txt)$ { access_log off; expires max; log_not_found off; } location / { try_files $uri $uri/ /index.php?$query_string; } location ~ \.php$ { include fastcgi.conf; fastcgi_pass unix:/run/php/php-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; add_header Cache-Control "no-store"; } location ~ /\.ht { deny all; } }
-
Добавить симлинк для изображений из
md
cd /path/to/project/public/assets/images ln -s ../../../md/images md
-
Добавить файлы документации (в формате markdown) в директорию
/path/to/project/md/v{VER}
, где{VER}
- номер версии фреймворка. Эти файлы можно взять из репозитория -
Оглавление редактируется в файлах
/path/to/project/sidebar/v{VER}.php
, где{VER}
- номер версии фреймворка.
forked from slimframework-ru/mdRender
-
Notifications
You must be signed in to change notification settings - Fork 0
ddrv-fork/slimframework-ru-website
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
core docs slim.ru
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- PHP 100.0%