Skip to content

A tool to build up documents website by instantly reading markdown files

Notifications You must be signed in to change notification settings

zzfly256/markdown-to-site

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Markdown to Site

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/.

About

A tool to build up documents website by instantly reading markdown files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages