From df62debd9ea8026e4b8f83059a941ac538ae959a Mon Sep 17 00:00:00 2001 From: Devon Campbell Date: Thu, 25 Jan 2024 15:33:14 -0500 Subject: [PATCH] Add `nix` language code --- docs/guides/contributing/code.rst | 2 +- tests/test_docs.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/guides/contributing/code.rst b/docs/guides/contributing/code.rst index 8e408cf64b1..3e9c773951a 100644 --- a/docs/guides/contributing/code.rst +++ b/docs/guides/contributing/code.rst @@ -54,7 +54,7 @@ On Ubuntu 22.10, these can be installed by running: A Nix shell with all dependencies and a Python virtual environment can be built with the following ``shell.nix`` file. -.. code:: +.. code:: nix with import {}; pkgs.mkShell { diff --git a/tests/test_docs.py b/tests/test_docs.py index e936af1b3e1..7402a901894 100644 --- a/tests/test_docs.py +++ b/tests/test_docs.py @@ -365,7 +365,8 @@ def run_block_test(self, block): 'tsx', 'elixir', 'toml', - 'sql' + 'sql', + 'nix' }: pass elif lang[-5:] == '-diff':