From 8e37175c3f7a472a7be23dfe8f7b996109ed9359 Mon Sep 17 00:00:00 2001 From: boxydog Date: Fri, 1 Dec 2023 09:16:29 -0600 Subject: [PATCH 1/2] Add docs on how to import medium posts --- docs/importer.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/importer.rst b/docs/importer.rst index 997a46323..13b826414 100644 --- a/docs/importer.rst +++ b/docs/importer.rst @@ -26,6 +26,12 @@ not be converted (as Pelican also supports Markdown). manually, or use a plugin such as `More Categories`_ that enables multiple categories per article. +.. note:: + + Imported images may still point to the original site. So, you might want to + download the images yourself and manually re-link the images in the posts + to the local copies. + Dependencies ============ @@ -121,6 +127,15 @@ For WordPress:: $ pelican-import --wpfile -o ~/output ~/posts.xml +For Medium (an example of using an RSS feed): + + $ pip install feedparser + $ pelican-import --feed https://medium.com/feed/@username + +.. note:: + + The RSS feed may only return the most recent posts, not all of them. + Tests ===== From 55f10552a0eceaa0f28550036817f85c2f2884f5 Mon Sep 17 00:00:00 2001 From: Justin Mayer Date: Mon, 15 Jan 2024 10:39:51 +0100 Subject: [PATCH 2/2] Update importer.rst --- docs/importer.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/importer.rst b/docs/importer.rst index 13b826414..080929845 100644 --- a/docs/importer.rst +++ b/docs/importer.rst @@ -28,9 +28,9 @@ not be converted (as Pelican also supports Markdown). .. note:: - Imported images may still point to the original site. So, you might want to - download the images yourself and manually re-link the images in the posts - to the local copies. + Imported pages may contain links to images that still point to the original site. + So you might want to download those images into your local content and manually + re-link them from the relevant pages of your site. Dependencies ============ @@ -129,12 +129,12 @@ For WordPress:: For Medium (an example of using an RSS feed): - $ pip install feedparser + $ python -m pip install feedparser $ pelican-import --feed https://medium.com/feed/@username .. note:: - The RSS feed may only return the most recent posts, not all of them. + The RSS feed may only return the most recent posts — not all of them. Tests =====