Version: 20180913
Author: Rytia
Github: zzfly256/markdown-to-site
A tool to build up website by instantly loading the remote or local markdown files instantly.
You can use it to build up some useful sites that synchronizes content from your github such as:
- Simple blog
- Developing documents
- Wiki
- PHP (7.0+ is better)
- composer
After installing your composer, you can do the follows in your console:
git clone https://github.com/zzfly256/markdown-to-site.git
cd mark-to-site
composer install
or, you can install it via composer directly:
composer create-project zzfly256/markdown-to-site
Just change the line 12 in index.php
to your markdown file path. Here are demo:
// load the remote file
$file = file("https://raw.githubusercontent.com/php-quickorm/documents/master/README.md");
// load the local file
$file = file("/home/Rytia/readme.md");
// load file frome GET method
$file = file($_GET['md']);
Set your root directory to the markdown-to-site
and access it via http://your_ip/
.