Skip to content

Commit

Permalink
v1.0.0
Browse files Browse the repository at this point in the history
* @api annotations
* Updates README
  • Loading branch information
kzykhys committed Dec 1, 2013
1 parent 412c8b2 commit 4914389
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 11 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ Ciconia - A New Markdown Parser for PHP
[![Build Status](https://travis-ci.org/kzykhys/Ciconia.png?branch=master)](https://travis-ci.org/kzykhys/Ciconia)
[![Coverage Status](https://coveralls.io/repos/kzykhys/Ciconia/badge.png?branch=master)](https://coveralls.io/r/kzykhys/Ciconia?branch=master)

**This project is _unstable_** until 1.0.0 (see [milestones][milestones])

The Markdown parser for PHP5.4, it is fully extensible.
Ciconia is the collection of extension, so you can replace, add or remove each parsing mechanism.

Expand Down Expand Up @@ -37,7 +35,7 @@ create a `composer.json`
``` json
{
"require": {
"kzykhys/ciconia": "dev-master"
"kzykhys/ciconia": "~1.0.0"
}
}
```
Expand Down Expand Up @@ -301,6 +299,6 @@ Kazuyuki Hayashi (@kzykhys)


[milestones]: https://github.com/kzykhys/Ciconia/issues/milestones
[phar]: https://github.com/kzykhys/Ciconia/releases/download/v0.1.7/ciconia.phar
[phar]: https://github.com/kzykhys/Ciconia/releases/download/v1.0.0/ciconia.phar
[contributors]: https://github.com/kzykhys/Ciconia/graphs/contributors
[textapi]: https://github.com/kzykhys/Text#api
2 changes: 1 addition & 1 deletion src/Ciconia/Ciconia.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
class Ciconia
{

const VERSION = '0.1.7';
const VERSION = '1.0.0';

/**
* @var RendererInterface
Expand Down
4 changes: 4 additions & 0 deletions src/Ciconia/Event/EmitterAwareInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,17 @@ interface EmitterAwareInterface
{

/**
* @api
*
* @param EmitterInterface $emitter
*
* @return mixed
*/
public function setEmitter(EmitterInterface $emitter);

/**
* @api
*
* @return EmitterInterface
*/
public function getEmitter();
Expand Down
8 changes: 6 additions & 2 deletions src/Ciconia/Event/EmitterInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ interface EmitterInterface
/**
* Adds a listener to the end of the listeners array for the specified event.
*
* @api
*
* @param string $event
* @param callable $callback
* @param int $priority
Expand All @@ -24,8 +26,10 @@ public function on($event, callable $callback, $priority = 10);
/**
* Execute each of the subscribed listeners
*
* @param $event
* @param $parameters
* @api
*
* @param string $event
* @param array $parameters
*
* @return mixed
*/
Expand Down
4 changes: 4 additions & 0 deletions src/Ciconia/Extension/ExtensionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ interface ExtensionInterface
/**
* Adds listeners to EventEmitter
*
* @api
*
* @param Markdown $markdown
*
* @return void
Expand All @@ -24,6 +26,8 @@ public function register(Markdown $markdown);
/**
* Returns the name of the extension
*
* @api
*
* @return string
*/
public function getName();
Expand Down
6 changes: 4 additions & 2 deletions src/Ciconia/Renderer/RendererAwareInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Ciconia\Renderer;

use Ciconia\Renderer\RendererInterface;

/**
* RendererAwareInterface should be implemented by extension classes that depends on RendererInterface
*
Expand All @@ -13,11 +11,15 @@ interface RendererAwareInterface
{

/**
* @api
*
* @return RendererInterface
*/
public function getRenderer();

/**
* @api
*
* @param RendererInterface $renderer
*/
public function setRenderer(RendererInterface $renderer);
Expand Down
2 changes: 0 additions & 2 deletions src/Ciconia/Renderer/RendererAwareTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Ciconia\Renderer;

use Ciconia\Renderer\RendererInterface;

/**
* Implementation of RendererAwareInterface
*
Expand Down
26 changes: 26 additions & 0 deletions src/Ciconia/Renderer/RendererInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ interface RendererInterface
{

/**
* @api
*
* @param string|Text $content
* @param array $options
*
Expand All @@ -22,6 +24,8 @@ interface RendererInterface
public function renderParagraph($content, array $options = array());

/**
* @api
*
* @param string|Text $content
* @param array $options
*
Expand All @@ -30,6 +34,8 @@ public function renderParagraph($content, array $options = array());
public function renderHeader($content, array $options = array());

/**
* @api
*
* @param string|Text $content
* @param array $options
*
Expand All @@ -38,6 +44,8 @@ public function renderHeader($content, array $options = array());
public function renderCodeBlock($content, array $options = array());

/**
* @api
*
* @param string|Text $content
* @param array $options
*
Expand All @@ -46,6 +54,8 @@ public function renderCodeBlock($content, array $options = array());
public function renderCodeSpan($content, array $options = array());

/**
* @api
*
* @param string|Text $content
* @param array $options
*
Expand All @@ -54,6 +64,8 @@ public function renderCodeSpan($content, array $options = array());
public function renderLink($content, array $options = array());

/**
* @api
*
* @param string|Text $content
* @param array $options
*
Expand All @@ -62,6 +74,8 @@ public function renderLink($content, array $options = array());
public function renderBlockQuote($content, array $options = array());

/**
* @api
*
* @param string|Text $content
* @param array $options
*
Expand All @@ -70,6 +84,8 @@ public function renderBlockQuote($content, array $options = array());
public function renderList($content, array $options = array());

/**
* @api
*
* @param string|Text $content
* @param array $options
*
Expand All @@ -78,13 +94,17 @@ public function renderList($content, array $options = array());
public function renderListItem($content, array $options = array());

/**
* @api
*
* @param array $options
*
* @return string
*/
public function renderHorizontalRule(array $options = array());

/**
* @api
*
* @param string $src
* @param array $options
*
Expand All @@ -93,6 +113,8 @@ public function renderHorizontalRule(array $options = array());
public function renderImage($src, array $options = array());

/**
* @api
*
* @param string|Text $text
* @param array $options
*
Expand All @@ -101,6 +123,8 @@ public function renderImage($src, array $options = array());
public function renderBoldText($text, array $options = array());

/**
* @api
*
* @param string|Text $text
* @param array $options
*
Expand All @@ -109,6 +133,8 @@ public function renderBoldText($text, array $options = array());
public function renderItalicText($text, array $options = array());

/**
* @api
*
* @param array $options
*
* @return string
Expand Down

0 comments on commit 4914389

Please sign in to comment.