From 5acf155c328eb10df10507c28a880e47a939de8e Mon Sep 17 00:00:00 2001 From: nkr <42086312+nkr0@users.noreply.github.com> Date: Thu, 9 Oct 2025 23:47:46 +0200 Subject: [PATCH] Fix docutils PendingDeprecationWarning --- pelican/readers.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pelican/readers.py b/pelican/readers.py index ca1b2393..dfa76638 100644 --- a/pelican/readers.py +++ b/pelican/readers.py @@ -268,9 +268,11 @@ class RstReader(BaseReader): extra_params.update(user_params) pub = docutils.core.Publisher( - writer=self.writer_class(), destination_class=docutils.io.StringOutput + reader="standalone", + parser="restructuredtext", + writer=self.writer_class(), + destination_class=docutils.io.StringOutput, ) - pub.set_components("standalone", "restructuredtext", "html") pub.process_programmatic_settings(None, extra_params, None) pub.set_source(source_path=source_path) pub.publish()