Skip to content

Commit

Permalink
let there be colour
Browse files Browse the repository at this point in the history
  • Loading branch information
bashu authored and vxsx committed Feb 17, 2018
1 parent 338c6fc commit 9528fe5
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ to adapt and override them to your project's requirements.

This addon provides a ``default`` template for all instances. You can provide
additional template choices by adding a ``DJANGOCMS_LINK_TEMPLATES``
setting::
setting:

.. code-block:: python
DJANGOCMS_LINK_TEMPLATES = [
('feature', _('Featured Version')),
Expand All @@ -73,12 +75,16 @@ To support environments where non-standard URLs would otherwise work, this
project supports the defining of an additional RegEx pattern for validating the
host-portion of the URL.

For example: ::
For example:

.. code-block:: python
# RFC1123 Pattern:
DJANGOCMS_LINK_INTRANET_HOSTNAME_PATTERN = r'[a-z,0-9,-]{1,15}'
Either of these might accept a URL such as: ::
Either of these might accept a URL such as:

.. code-block:: html

http://SEARCHHOST/?q=some+search+string

Expand All @@ -100,7 +106,9 @@ for simpler use of internal links. You need to manually enable it by:
Running Tests
-------------

You can run tests by executing::
You can run tests by executing:

.. code-block:: bash
virtualenv env
source env/bin/activate
Expand Down

0 comments on commit 9528fe5

Please sign in to comment.