Skip to content
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.

Commit

Permalink
Merge pull request #82 from tshepang/diff
Browse files Browse the repository at this point in the history
docutils is no longer optional
  • Loading branch information
lepture committed Mar 29, 2013
2 parents 345691e + 498dd96 commit ce33de5
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.rst
Expand Up @@ -115,7 +115,7 @@ Compatibility

+ Markup:

- restructedText_ (you need install docutils by yourself)
- restructedText_
- markdown_

+ Python:
Expand Down
3 changes: 1 addition & 2 deletions docs/config.rst
Expand Up @@ -51,8 +51,7 @@ The default **python** format config file::
reader = {
"active": [
"liquidluck.readers.markdown.MarkdownReader",
# uncomment to active rst reader.
# but you need to install docutils by yourself
# uncomment to activate rST reader
# "liquidluck.readers.restructuredtext.RestructuredTextReader",
],
"vars": {}
Expand Down
2 changes: 1 addition & 1 deletion docs/write.rst
Expand Up @@ -44,7 +44,7 @@ An example in markdown::
````


An example in reStructuredText (you need to install docutils by yourself)::
An example in reStructuredText::

Felix Felicis
================
Expand Down
5 changes: 1 addition & 4 deletions liquidluck/readers/restructuredtext.py
Expand Up @@ -27,10 +27,7 @@ def hello():

import logging
from xml.dom import minidom
try:
from docutils import nodes
except ImportError:
logging.warn("You need install docutils library")
from docutils import nodes
from docutils.core import publish_parts
from docutils.parsers.rst import directives, Directive
from pygments.formatters import HtmlFormatter
Expand Down
3 changes: 1 addition & 2 deletions liquidluck/tools/_settings.py
Expand Up @@ -34,8 +34,7 @@
reader = {
"active": [
"liquidluck.readers.markdown.MarkdownReader",
# uncomment to active rst reader.
# but you need to install docutils by yourself
# uncomment to activate rST reader
# "liquidluck.readers.restructuredtext.RestructuredTextReader",
],
"vars": {}
Expand Down
3 changes: 1 addition & 2 deletions liquidluck/tools/_settings.yml
Expand Up @@ -32,8 +32,7 @@ author:
reader:
active:
- liquidluck.readers.markdown.MarkdownReader
# uncomment to active rst reader.
# but you need to install docutils by yourself
# uncomment to activate rST reader
#- liquidluck.readers.restructuredtext.RestructuredTextReader
vars:
# key: value
Expand Down

0 comments on commit ce33de5

Please sign in to comment.