From b0e3cd9cae58a0ac8490d2ee0c9b87e05de456b5 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Thu, 18 Apr 2013 18:23:08 -0500 Subject: [PATCH 1/2] Fix Pywikipedia references in documentation --- docs/integration.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/integration.rst b/docs/integration.rst index d0e54db..bd4e0ac 100644 --- a/docs/integration.rst +++ b/docs/integration.rst @@ -7,12 +7,12 @@ Integration :py:func:`mwparserfromhell.parse() ` on :py:meth:`~earwigbot.wiki.page.Page.get`. -If you're using PyWikipedia_, your code might look like this:: +If you're using Pywikipedia_, your code might look like this:: import mwparserfromhell import wikipedia as pywikibot def parse(title): - site = pywikibot.get_site() + site = pywikibot.getSite() page = pywikibot.Page(site, title) text = page.get() return mwparserfromhell.parse(text) @@ -31,5 +31,5 @@ following code (via the API_):: return mwparserfromhell.parse(text) .. _EarwigBot: https://github.com/earwig/earwigbot -.. _PyWikipedia: http://pywikipediabot.sourceforge.net/ +.. _Pywikipedia: http://pywikipediabot.sourceforge.net/ .. _API: http://mediawiki.org/wiki/API From 9c7517b22a6ff0f0ab8834b2e39bf56d886d6989 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Thu, 18 Apr 2013 18:32:51 -0500 Subject: [PATCH 2/2] Link to mediawiki.org instead of sf.net --- docs/integration.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/integration.rst b/docs/integration.rst index bd4e0ac..78810b8 100644 --- a/docs/integration.rst +++ b/docs/integration.rst @@ -31,5 +31,5 @@ following code (via the API_):: return mwparserfromhell.parse(text) .. _EarwigBot: https://github.com/earwig/earwigbot -.. _Pywikipedia: http://pywikipediabot.sourceforge.net/ +.. _Pywikipedia: https://www.mediawiki.org/wiki/Manual:Pywikipediabot .. _API: http://mediawiki.org/wiki/API