From 37c17846ad6b02c6dca72e8087a279cca04a0c27 Mon Sep 17 00:00:00 2001 From: Ramiro Morales Date: Sat, 20 Jan 2018 14:38:48 -0300 Subject: Fixed #28343 -- Add an OS chooser for docs command line examples. --- docs/internals/contributing/writing-code/javascript.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/internals/contributing/writing-code/javascript.txt') diff --git a/docs/internals/contributing/writing-code/javascript.txt b/docs/internals/contributing/writing-code/javascript.txt index 5d96e19e25..c5ed842637 100644 --- a/docs/internals/contributing/writing-code/javascript.txt +++ b/docs/internals/contributing/writing-code/javascript.txt @@ -53,7 +53,7 @@ To simplify the process of providing optimized JavaScript code, Django includes a handy Python script which should be used to create a "minified" version. To run it: -.. code-block:: console +.. console:: $ pip install closure $ python django/contrib/admin/bin/compress.py @@ -134,13 +134,13 @@ To run the tests from the command line, you need to have `Node.js`_ installed. After installing `Node.js`, install the JavaScript test dependencies by running the following from the root of your Django checkout: -.. code-block:: console +.. console:: $ npm install Then run the tests with: -.. code-block:: console +.. console:: $ npm test -- cgit v1.3