From dbf9c9128199b3a2c5e759140e956efe4f9d6a8c Mon Sep 17 00:00:00 2001 From: Victor Feyens Date: Thu, 25 Mar 2021 12:45:07 +0100 Subject: [PATCH] FIX: warning when lexing CSV, XML & JSON + improve the php hack --- conf.py | 14 ++++++++++---- requirements.txt | 1 + 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/conf.py b/conf.py index ff341b972..22d6aa4e2 100644 --- a/conf.py +++ b/conf.py @@ -2,8 +2,8 @@ import os import sys from pathlib import Path -from pygments.lexers.web import PhpLexer -from sphinx.highlighting import lexers +from pygments.lexers import JsonLexer, XmlLexer + from sphinx.util import logging _logger = logging.getLogger(__name__) @@ -181,8 +181,10 @@ html_permalinks = True # Sphinx >= 3.5 html_js_files = [] html_css_files = [] -# Monkeypatch PHP lexer to not require