Download the PHP package rgou/doc-renderer without Composer
On this page you can find all versions of the php package rgou/doc-renderer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package doc-renderer
Doc Renderer
Author: Rafael Goulart [email protected]
Doc Renderer is a tool to render Markdown and RestructuredText in PHP.
It uses Twitter Bootstrap as CSS Framework, Twig as template engine.
Google Prettify is used for syntax highlight.
DocRenderer is inspired by RenderMarkdown, from which some functions were borrewed, thanks to Rob McBroom.
Screenshots
Install
Composer:
{
"require": {
// ...
"rgou/doc-renderer": "*"
}
}
Or clonning:
git clone git://github.com/rafaelgou/doc-renderer.git
Or just downloading lastest version:
wget https://github.com/rafaelgou/doc-renderer/archive/master.zip
For Restructured Text, Docutils is needed:
apt-get install python-docutils
Introduction
The magic is:
- Some Markdown or Restructured Text
- For Markdown, PHP-Markdown
- For Restructured Text, Docutils
- For rendering the HTML stuff, Twig
- For a pretty good face, Twitter Bootstrap (Bootstrap and JQuery are loaded from CDN sources)
- For syntax highlighting, Google Prettify
- For an easy configuration, sfYaml
Composer lets everything easier to glue togheter, and a basic example is just include the Composer autoloader, loads a configuration and uses the libraries togheter:
~~~
Customizing the template
Twitter Bootstrap
Change in the <head>
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css" rel="stylesheet">
to whatever other theme you want. See Bootstrap CDN for more free options.
Google Prettify:
You can add languages not supported by default adding lines just like bellow on bottom of the page
(just before </body>
):
<script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js"></script>
<script src="https://google-code-prettify.googlecode.com/svn/loader/lang-yaml.js"></script>
Additional languages are list here.
You can also change the skin on <head>
<link href="//google-code-prettify.googlecode.com/svn/loader/skins/desert.css" rel="stylesheet">
See available skins here.
All versions of doc-renderer with dependencies
symfony/yaml Version 2.2.*@dev
twig/twig Version 1.*
twig/extensions Version 1.0.*
michelf/php-markdown Version 1.3.*@dev
aptoma/twig-markdown Version dev-master