From 7b3a62102c20a94ceb474eacd46acf49efa426b2 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 8 Nov 2018 20:30:01 -0800 Subject: [PATCH] Use forward slashes in sphinx output --- sphinxtools/postprocess.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sphinxtools/postprocess.py b/sphinxtools/postprocess.py index ad108484..bc97b3e3 100644 --- a/sphinxtools/postprocess.py +++ b/sphinxtools/postprocess.py @@ -53,7 +53,8 @@ def makeHeadings(): if 'overload' in name or 'contributed' in name: width = 16 - text += templates.TEMPLATE_HEADINGS % (name, os.path.normpath(rel_path), width) + rel_path = os.path.normpath(rel_path).replace('\\', '/') + text += templates.TEMPLATE_HEADINGS % (name, rel_path, width) writeIfChanged(heading_file, text)