Skip to content
/ mdman Public

Plugin for PHPDoc2 that generates markdown / pdf user manuals from class docblocks

Notifications You must be signed in to change notification settings

bonndan/mdman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MdMan

What is MdMan?

MdMan stands for "Markdown Manual". It is a plugin for PHPDocumentor 2 which extracts markdown from class comment docblocks. It grabs the "short" and "long" description and discards the rest of the API documentation. The gathered information is written to one single markdown file which then can be used as manual. This file can be automatically converted into other formats like html, opendocument or pdf using Pandoc.

Features

  • Hooks into the PHPDoc parsing as a listener plugin
  • Extracts the relevant contents before they are html-escaped
  • Merges contents ordered by package

Installation

Easy installation via composer: see this example.

For advanced features is requires Python and scruffy for image generation and pandoc for creating pdf files:

sudo apt-get install plotutils
sudo apt-get install librsvg2-bin
sudo apt-get install graphviz

git clone clone https://github.com/aivarsk/scruffy
cd scruffy
./setup.py install

sudo apt-get install pandoc

To-Do

About

Plugin for PHPDoc2 that generates markdown / pdf user manuals from class docblocks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages