mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Fix docutils PendingDeprecationWarning
This commit is contained in:
parent
b7408cbfe9
commit
5acf155c32
1 changed files with 4 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue