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.
2 parents 50f7438 + 348718f commit 0d31923Copy full SHA for 0d31923
sphinx_material/__init__.py
@@ -6,6 +6,7 @@
6
import re
7
import sys
8
from multiprocessing import Manager
9
+from pathlib import Path
10
from typing import List, Optional
11
from xml.etree import ElementTree
12
@@ -71,7 +72,9 @@ def create_sitemap(app, exception):
71
72
):
73
return
74
- filename = app.outdir + "/sitemap.xml"
75
+ outdir = app.outdir if isinstance(app.outdir, Path) else str(app.outdir)
76
+ filename = str(Path(outdir) / "sitemap.xml")
77
+
78
print(
79
"Generating sitemap for {0} pages in "
80
"{1}".format(len(app.sitemap_links), console.colorize("blue", filename))
0 commit comments