Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit 0e4e82d

Browse files
committed
Use .. code-block:: directive for README.rst
1 parent af5fbd4 commit 0e4e82d

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

README.rst

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,24 @@ Install
1717
-------
1818

1919
It's available on PyPI_, so you can install it using ``easy_install``
20-
or ``pip``::
20+
or ``pip``:
2121

22-
$ easy_install libsass
22+
.. code-block:: console
23+
24+
$ easy_install libsass
2325
2426
.. _PyPI: http://pypi.python.org/pypi/libsass
2527

2628

2729
Example
2830
-------
2931

30-
>>> import sass
31-
>>> sass.compile(string='a { b { color: blue; } }')
32-
'a b {\n color: blue; }\n'
32+
.. code-block:: pycon
33+
34+
>>> import sass
35+
>>> print sass.compile(string='a { b { color: blue; } }')
36+
a b {
37+
color: blue; }
3338
3439
3540
Docs
@@ -39,10 +44,12 @@ There's the user guide manual and the full API reference for ``libsass``:
3944

4045
http://dahlia.kr/libsass-python/
4146

42-
You can build the docs by yourself::
47+
You can build the docs by yourself:
48+
49+
.. code-block:: console
4350
44-
$ cd docs/
45-
$ make html
51+
$ cd docs/
52+
$ make html
4653
4754
The built docs will go to ``docs/_build/html/`` directory.
4855

0 commit comments

Comments
 (0)