Skip to content

Commit

Permalink
edit README file
Browse files Browse the repository at this point in the history
  • Loading branch information
mothsART committed Dec 30, 2015
1 parent dfe2322 commit 85724a9
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 27 deletions.
27 changes: 0 additions & 27 deletions README.md

This file was deleted.

32 changes: 32 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
=============================
Ace Editor plugin for Pelican
=============================

This plugin adds an *ace editor* to all code-block.
see more : https://ace.c9.io

The default theme does not include *ace editor*, but it is pretty easy to add one (on base.html):

{{ ace_editor }}

If you're using markdown, you must add this settings on your pelicanconf.py:

* if pelican <= 3.6.3 :

.. code-block:: rst
MD_EXTENSIONS = [
'codehilite(css_class=highlight, linenums=False, use_pygments=False)'
]
* if pelican > 3.6.3 :

.. code-block:: python
MD_EXTENSIONS = {
'markdown.extensions.codehilite': {
'css_class': 'highlight',
'linenums': False,
'use_pygments': False
}
}

0 comments on commit 85724a9

Please sign in to comment.