about mk

mk 是基于php+markedjs+jquery-treeview开发,可以在线浏览Markdown文档的工具 README.md 目前只支持三层目录,更深层目录暂不支持

Mk is developed based on PHP +markedjs+jquery-treeview, which can browse Markdown documents online The README. Md Currently only three levels of directory support, deeper directory temporarily not supported

install

git clone git@github.com:saiye/mk.git 在App/CCOntroller/Index 指定md目录 Specify md directory $dir = '/mnt/web/mk'; nginx: 因为项目是单入口,nginx 需要配置 Because the project is a single entry, nginx needs to be configured location / { try_files $uri $uri/ /index.php?$query_string; } demo server { listen 80; server_name www.mk.com; index index.html index.htm index.php; root /mnt/web/mk/public; include enable-php.conf; location / { try_files $uri $uri/ /index.php?$query_string; } location /nginx_status { stub_status on; access_log off; } location ~ /. { deny all; } }

Apache: Options +FollowSymLinks -Indexes RewriteEngine On RewriteCond %{HTTP:Authorization} . RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L]

效果图 effect picture

版权声明:

1、该文章(资料)来源于互联网公开信息,我方只是对该内容做点评,所分享的下载地址为原作者公开地址。
2、网站不提供资料下载,如需下载请到原作者页面进行下载。
3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考学习用!
4、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。