mirror of
https://github.com/tcsenpai/Zundler.git
synced 2025-06-07 03:55:26 +00:00
Fix compatibility with Sphinx >= 7.2; close #4
This commit is contained in:
parent
caaa346b2b
commit
fb7bae8e42
@ -67,8 +67,12 @@ def setup(app):
|
|||||||
'doctree',
|
'doctree',
|
||||||
)
|
)
|
||||||
app.original_outdir = app.outdir
|
app.original_outdir = app.outdir
|
||||||
app.outdir = outdir
|
|
||||||
app.doctreedir = doctreedir
|
# Preserve types of app.outdir and app.doctreedir.
|
||||||
|
# Sphinx changed the types from str to Path around v7.2.
|
||||||
|
# This way it should be compatible with either way.
|
||||||
|
app.outdir = type(app.outdir)(outdir)
|
||||||
|
app.doctreedir = type(app.doctreedir)(doctreedir)
|
||||||
Path(app.outdir).mkdir(parents=True, exist_ok=True)
|
Path(app.outdir).mkdir(parents=True, exist_ok=True)
|
||||||
|
|
||||||
app.add_config_value(
|
app.add_config_value(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user