Browse Source

Some cleanup, adjustments; add dist to .gitignore.

tags/v0.1.1
Ben Kurtovic 11 years ago
parent
commit
7e26ddf6f5
3 changed files with 7 additions and 6 deletions
  1. +1
    -0
      .gitignore
  2. +4
    -4
      README.rst
  3. +2
    -2
      docs/index.rst

+ 1
- 0
.gitignore View File

@@ -4,4 +4,5 @@
.DS_Store
__pycache__
build
dist
docs/_build

+ 4
- 4
README.rst View File

@@ -28,9 +28,9 @@ Normal usage is rather straightforward (where ``text`` is page text)::
>>> import mwparserfromhell
>>> wikicode = mwparserfromhell.parse(text)

``wikicode`` is a ``mwparserfromhell.wikicode.Wikicode`` object, which acts
like an ordinary ``unicode`` object (or ``str`` in Python 3) with some extra
methods. For example::
``wikicode`` is a ``mwparserfromhell.Wikicode`` object, which acts like an
ordinary ``unicode`` object (or ``str`` in Python 3) with some extra methods.
For example::

>>> text = "I has a template! {{foo|bar|baz|eggs=spam}} See it?"
>>> wikicode = mwparserfromhell.parse(text)
@@ -131,7 +131,7 @@ following code (via the API_)::

.. _MediaWiki: http://mediawiki.org
.. _Earwig: http://en.wikipedia.org/wiki/User:The_Earwig
.. _Σ: http://en.wikipedia.org/wiki/User:Σ
.. _Σ: http://en.wikipedia.org/wiki/User:%CE%A3
.. _Python Package Index: http://pypi.python.org
.. _get pip: http://pypi.python.org/pypi/pip
.. _EarwigBot: https://github.com/earwig/earwigbot


+ 2
- 2
docs/index.rst View File

@@ -1,4 +1,4 @@
MWParserFromHell v0.1 Documentation
MWParserFromHell v0.2 Documentation
===================================

:py:mod:`mwparserfromhell` (the *MediaWiki Parser from Hell*) is a Python
@@ -9,7 +9,7 @@ Developed by Earwig_ with help from `Σ`_.

.. _MediaWiki: http://mediawiki.org
.. _Earwig: http://en.wikipedia.org/wiki/User:The_Earwig
.. _Σ: http://en.wikipedia.org/wiki/User:Σ
.. _Σ: http://en.wikipedia.org/wiki/User:%CE%A3

Installation
------------


Loading…
Cancel
Save