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 d414629 commit 3f89a44Copy full SHA for 3f89a44
docs/conf.py
@@ -325,11 +325,14 @@
325
# pygments_style = "sphinx.pygments_styles.PyramidStyle"
326
pygments_style = "sphinx"
327
328
-from pygments import token
329
-from sphinx.highlighting import lexers
330
-from csvlexer.csv import CsvLexer
331
-
332
-lexers['csv'] = CsvLexer(startinline=True)
+# Only register CSV lexer on non-Windows platforms
+import platform
+if platform.system() != 'Windows':
+ from pygments import token
+ from sphinx.highlighting import lexers
333
+ from csvlexer.csv import CsvLexer
334
+
335
+ lexers['csv'] = CsvLexer(startinline=True)
336
337
# Options for the linkcheck builder
338
# Ignore localhost
0 commit comments