Skip to content

doc: matrix.json not valid JSON causing warning/error #790

@NeroBurner

Description

@NeroBurner
Warning, treated as error:
/builds/hunter/hunter/docs/creating-new/test/ci.rst:84:Could not lex literal_block as "JSON". Highlighting skipped.

The referenced codeblock is the following:

.. literalinclude:: ../../../.github/workflows/ci/matrix.json
  :language: JSON

The matrix.json file contains // comments, which are not valid json tripping the highlighting.

Removing the :language: JSON part fixes this warning

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdocumentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions