We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 609c3b7 commit 2bca018Copy full SHA for 2bca018
doc/make.py
@@ -159,10 +159,10 @@ def _get_page_title(self, page):
159
Open the rst file `page` and extract its title.
160
"""
161
fname = os.path.join(SOURCE_PATH, f"{page}.rst")
162
- option_parser = docutils.frontend.OptionParser(
163
- components=(docutils.parsers.rst.Parser,)
+ doc = docutils.utils.new_document(
+ "<doc>",
164
+ docutils.frontend.get_default_settings(docutils.parsers.rst.Parser),
165
)
- doc = docutils.utils.new_document("<doc>", option_parser.get_default_values())
166
with open(fname, encoding="utf-8") as f:
167
data = f.read()
168
0 commit comments