forked from pool/python-pelican
Compare commits
12 Commits
Author | SHA256 | Date | |
---|---|---|---|
27c7ea0ace | |||
d0492e4d23 | |||
965641fb2d | |||
4a5fef8243 | |||
fc826ef140 | |||
97847ee7bd | |||
80db5ce3a5 | |||
20dac6cee5 | |||
4f08a11ce3 | |||
eafd79568c | |||
29d009a473 | |||
815932b2d7 |
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Sep 18 02:34:38 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Add patch support-docutils-0.22.patch:
|
||||||
|
* Support docutils 0.22 changes.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jul 22 03:09:19 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
Tue Jul 22 03:09:19 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pelican
|
# spec file for package python-pelican
|
||||||
#
|
#
|
||||||
# Copyright (c) 2025 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC and contributors
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -26,6 +26,8 @@ URL: https://getpelican.com/
|
|||||||
Source: https://github.com/getpelican/pelican/archive/refs/tags/%{version}.tar.gz#/pelican-%{version}-gh.tar.gz
|
Source: https://github.com/getpelican/pelican/archive/refs/tags/%{version}.tar.gz#/pelican-%{version}-gh.tar.gz
|
||||||
# PATCH-FIX-UPSTREAM gh#getpelican/pelican#3461
|
# PATCH-FIX-UPSTREAM gh#getpelican/pelican#3461
|
||||||
Patch0: support-new-bs4.patch
|
Patch0: support-new-bs4.patch
|
||||||
|
# PATCH-FIX-OPENSUSE Support docutils 0.22 changes
|
||||||
|
Patch1: support-docutils-0.22.patch
|
||||||
BuildRequires: %{python_module Jinja2 >= 3.1.2}
|
BuildRequires: %{python_module Jinja2 >= 3.1.2}
|
||||||
BuildRequires: %{python_module Pygments >= 2.16.1}
|
BuildRequires: %{python_module Pygments >= 2.16.1}
|
||||||
BuildRequires: %{python_module Unidecode >= 1.3.7}
|
BuildRequires: %{python_module Unidecode >= 1.3.7}
|
||||||
|
15
support-docutils-0.22.patch
Normal file
15
support-docutils-0.22.patch
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
Index: pelican-4.11.0/pelican/readers.py
|
||||||
|
===================================================================
|
||||||
|
--- pelican-4.11.0.orig/pelican/readers.py
|
||||||
|
+++ pelican-4.11.0/pelican/readers.py
|
||||||
|
@@ -266,9 +266,9 @@ class RstReader(BaseReader):
|
||||||
|
extra_params.update(user_params)
|
||||||
|
|
||||||
|
pub = docutils.core.Publisher(
|
||||||
|
+ 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()
|
Reference in New Issue
Block a user