zzfly256 / markdown-to-site
A tool to build up documents website by instantly reading markdown files
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:project
Requires
- erusev/parsedown: ^1.7
This package is auto-updated.
Last update: 2024-04-14 01:41:30 UTC
README
Version: 20180913
Author: Rytia
Github: zzfly256/markdown-to-site
Description
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
Install
Requirement
- PHP (7.0+ is better)
- composer
Download and install
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
Config
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']);
Usage
Set your root directory to the markdown-to-site
and access it via http://your_ip/
.