Coder Social home page Coder Social logo

gitpages's Introduction

Markdown Butler

This is a small php utility to serve markdown pages directly from a GitHub repository or local folder in your web server.

To install just copy the /assets/ folder, the .htaccess file and the index.php file to your web server.

Open and edit the config.php inside the /assets/ folder. Change the variable $config['files'] to point to a url like this:

$config['files'] = 'https://raw.githubusercontent.com/ctkjose/gitpages/master/docs/';

To access a page just point your browser to the URL where you installed gitpages and add the name of the markdown file like this:

http://example.com/gitpages/README.md

Costumize the pages served

You can edit the default template.html found in the /assets/ folder. You may also want to play with the site.css.

Source code highlighting is done with prism.js, for more info go ahead and check Prism out.

Markdown support

This utility aims to supports the GitHub flavor of Markdown. While it supports all the basic styling of GitHub not everything is supported.

Today we have support for:

	Headings using #. Like: ## Heading ##

	Italic emphasis with _underscores_ and *asterisks*

	Strong/bold emphasis, with **asterisks** or __underscores__.

	Strikethrough with two tildes. ~~Scratch this.~~

	Tables

	Inline links.

	Inline code with single quotes.

	Blockquote with >

Currently working on lists and images.

gitpages's People

Contributors

ctkjose avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.