From 2cb6c4b0a1562bc2106755ac0e1916df07c5ba2a Mon Sep 17 00:00:00 2001 From: Juan Navarro Date: Thu, 12 Nov 2020 14:10:09 +0100 Subject: [PATCH] drop "json-object" blocks: deprecated in Pygments 2.8 Given comments in https://github.com/pygments/pygments/issues/1600, the json-object lexer is geting deprecated with the upcoming Pygments 2.8, and will fall back to "json". At the same time, Pygments 2.8 comes with a new JSON parser that allows for partial blocks missing surrounding curly braces, which is exactly the use case we have in this documentation. Nice update! --- source/features/security.rst | 2 +- source/project/relnotes/v6_10_0.rst | 6 +++--- source/user/writing_modules.rst | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/source/features/security.rst b/source/features/security.rst index 860a79cc..9e1f6ad7 100644 --- a/source/features/security.rst +++ b/source/features/security.rst @@ -149,7 +149,7 @@ This is fine for initial stages of application development, but before deploying To enable Secure WebSocket, edit the main KMS configuration file (``/etc/kurento/kurento.conf.json``), and un-comment the following lines: -.. code-block:: json-object +.. code-block:: json "secure": { "port": 8433, diff --git a/source/project/relnotes/v6_10_0.rst b/source/project/relnotes/v6_10_0.rst index b145aa86..6c17932d 100644 --- a/source/project/relnotes/v6_10_0.rst +++ b/source/project/relnotes/v6_10_0.rst @@ -142,7 +142,7 @@ New JSON settings parser Kurento uses the JSON parser that comes with the Boost C++ library; this parser accepted comments in JSON files, so we could comment out some lines when needed. The most common example of this was to force using only VP8 or H.264 video codecs in the Kurento settings file, ``/etc/kurento/modules/kurento/SdpEndpoint.conf.json``: -.. code-block:: json-object +.. code-block:: json "videoCodecs" : [ { @@ -155,7 +155,7 @@ Kurento uses the JSON parser that comes with the Boost C++ library; this parser This is the default form of the mentioned file, allowing Kurento to use either VP8 or H.264, as needed. To disable VP8, this would change as follows: -.. code-block:: json-object +.. code-block:: text "videoCodecs" : [ // { @@ -172,7 +172,7 @@ However, starting from `Boost version 1.59.0