Skip to content

Commit

Permalink
Use sphinx code-block replace code directive
Browse files Browse the repository at this point in the history
  • Loading branch information
greyli committed Jun 2, 2018
1 parent 5256b3b commit 09109ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ on `share.js <https://github.com/overtrue/share.js/>`_.
Installation
------------

.. code:: bash
.. code-block:: bash
$ pip install flask-share
Initialize
----------

.. code:: python
.. code-block:: python
from flask_share import Share
...
share = Share(app)
Also support for factory pattern:

.. code:: python
.. code-block:: python
from flask_share import Share
share = Share()
Expand All @@ -41,7 +41,7 @@ Example
Here is a simple demo to demonstrate how to create a share component in
template:

.. code:: html
.. code-block:: html

<!DOCTYPE html>
<html lang="en">
Expand Down

0 comments on commit 09109ab

Please sign in to comment.