Skip to content

Commit 3f89a44

Browse files
committed
Fix build on win with a worarround for the broken dependency
1 parent d414629 commit 3f89a44

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

docs/conf.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -325,11 +325,14 @@
325325
# pygments_style = "sphinx.pygments_styles.PyramidStyle"
326326
pygments_style = "sphinx"
327327

328-
from pygments import token
329-
from sphinx.highlighting import lexers
330-
from csvlexer.csv import CsvLexer
331-
332-
lexers['csv'] = CsvLexer(startinline=True)
328+
# Only register CSV lexer on non-Windows platforms
329+
import platform
330+
if platform.system() != 'Windows':
331+
from pygments import token
332+
from sphinx.highlighting import lexers
333+
from csvlexer.csv import CsvLexer
334+
335+
lexers['csv'] = CsvLexer(startinline=True)
333336

334337
# Options for the linkcheck builder
335338
# Ignore localhost

0 commit comments

Comments
 (0)