Skip to content

Commit

Permalink
Merge branch 'feature/split_docs' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
ambroisemaupate committed Jul 7, 2015
2 parents 919509c + 8b69fa0 commit 99684e2
Show file tree
Hide file tree
Showing 49 changed files with 128 additions and 73 deletions.
File renamed without changes.
File renamed without changes.
12 changes: 12 additions & 0 deletions developer/first-steps/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
===========
First steps
===========

.. toctree::
:maxdepth: 2

getting_started
manual_config
upgrading
moving
contributing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
9 changes: 9 additions & 0 deletions developer/forms/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
=====
Forms
=====

.. toctree::
:maxdepth: 2

contact_forms
custom_forms
14 changes: 14 additions & 0 deletions developer/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
=======================
Developer documentation
=======================


.. toctree::
:maxdepth: 2

first-steps/index.rst
nodes-system/index.rst
tags-system/index.rst
themes/index.rst
forms/index.rst
services/index.rst
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
11 changes: 11 additions & 0 deletions developer/nodes-system/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
===========
Node system
===========

.. toctree::
:maxdepth: 2

intro
node_type_fields
nodes
nodes_sources
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions services/intro.rst → developer/services/index.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _services:

Using Roadiz services
=====================
Services
========

Roadiz is built upon `Pimple <http://pimple.sensiolabs.org>`_ dependency injection container.
Thanks to this architecture, all Core and Backoffice services are available from any controller
Expand Down
8 changes: 8 additions & 0 deletions developer/tags-system/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
==========
Tag system
==========

.. toctree::
:maxdepth: 2

intro
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 10 additions & 0 deletions developer/themes/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
======
Themes
======

.. toctree::
:maxdepth: 2

create_theme
using_twig
custom_assignations
File renamed without changes.
File renamed without changes.
32 changes: 29 additions & 3 deletions roadiz-events/intro.rst → extension/events/intro.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _events:

Using Roadiz events
===================
Events
======

Roadiz node system implements several events. So you will be able to create
and inject your own event subscribers inside *Roadiz* dispatcher.
Expand All @@ -11,7 +11,7 @@ To understand how the event dispatcher works, you should read the


Nodes events
-----------
------------

``RZ\Roadiz\Core\Events\NodeEvents``

Expand All @@ -20,6 +20,8 @@ Nodes events
* *node.deleted:* ``NodeEvents::NODE_DELETED``
* *node.undeleted:* ``NodeEvents::NODE_UNDELETED``
* *node.tagged:* ``NodeEvents::NODE_TAGGED`` This event is triggered for tag and un-tag action.
* *node.visibilityChanged:* ``NodeEvents::NODE_VISIBILITY_CHANGED`` This event is triggered each time a node becomes visible or unvisible.
* *node.statusChanged:* ``NodeEvents::NODE_STATUS_CHANGED`` This event is triggered each time a node status changes.

Every node events methods will accept a ``RZ\Roadiz\Core\Events\FilterNodeEvent`` object as argument.
This object contains the current ``Node`` entity. You will get it using ``$event->getNode()``.
Expand Down Expand Up @@ -51,3 +53,27 @@ Tags events

Every tag events methods will accept a ``RZ\Roadiz\Core\Events\FilterTagEvent`` object as argument.
This object contains the current ``Tag`` entity. You will get it using ``$event->getTag()``.

Translations events
-------------------

``RZ\Roadiz\Core\Events\TranslationEvents``

* *translation.created:* ``TranslationEvents::TRANSLATION_CREATED``
* *translation.updated:* ``TranslationEvents::TRANSLATION_UPDATED``
* *translation.deleted:* ``TranslationEvents::TRANSLATION_DELETED``

Every tag events methods will accept a ``RZ\Roadiz\Core\Events\FilterTranslationEvent`` object as argument.
This object contains the current ``Translation`` entity. You will get it using ``$event->getTranslation()``.

UrlAlias events
-------------------

``RZ\Roadiz\Core\Events\UrlAliasEvents``

* *urlAlias.created:* ``UrlAliasEvents::URL_ALIAS_CREATED``
* *urlAlias.updated:* ``UrlAliasEvents::URL_ALIAS_UPDATED``
* *urlAlias.deleted:* ``UrlAliasEvents::URL_ALIAS_UPDATED``

Every tag events methods will accept a ``RZ\Roadiz\Core\Events\FilterUrlAliasEvent`` object as argument.
This object contains the current ``UrlAlias`` entity. You will get it using ``$event->getUrlAlias()``.
File renamed without changes.
9 changes: 9 additions & 0 deletions extension/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
================
Extension system
================

.. toctree::
:maxdepth: 2

extending_roadiz
events/intro
77 changes: 9 additions & 68 deletions index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,85 +7,26 @@ Welcome to Roadiz's documentation!
Roadiz is a polymorphic CMS based on a node system which can handle many types of services.
It’s based on *Symfony* components and *Doctrine ORM* for maximum performances and security.

First contact
-------------
User documentation
------------------

.. toctree::
:maxdepth: 2

intro/getting_started
intro/manual_config
intro/upgrading
intro/moving
intro/contributing
user/index.rst

Node system
-----------
Developer documentation
-----------------------

.. toctree::
:maxdepth: 2

nodes-system/intro
nodes-system/node_type_fields
developer/index.rst

Tag system
----------
Extension documentation
-----------------------

.. toctree::
:maxdepth: 2

tags-system/intro


User system
-----------

.. toctree::
:maxdepth: 2

users/intro


Themes
------

.. toctree::
:maxdepth: 2

themes/create_theme
themes/using_twig
themes/custom_assignations

Forms
-----

.. toctree::
:maxdepth: 2

forms/contact_forms
forms/custom_forms

Services
--------

.. toctree::
:maxdepth: 2

services/intro

Extension system
----------------

.. toctree::
:maxdepth: 2

themes/extending_roadiz
roadiz-events/intro



.. Indices and tables
.. ==================
.. * :ref:`genindex`
.. * :ref:`search`
extension/index.rst
File renamed without changes.
15 changes: 15 additions & 0 deletions user/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
==================
User documentation
==================

**User documentation is not available yet.**
We invite you to us questions on our `Gitter account <https://gitter.im/roadiz/roadiz>`_ or
to leave some documentation suggestions on our `Github repository <https://github.com/roadiz/docs/issues>`_.

User system
-----------

.. toctree::
:maxdepth: 2

users/intro
File renamed without changes.

0 comments on commit 99684e2

Please sign in to comment.