Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Make code blocks consistent

Patryk Zawadzkiff3e75757dba
diff --git a/docs/deploy.rst b/docs/deploy.rst
index 769ac1bfe6..d2eda4f0aa 100644
--- a/docs/deploy.rst
+++ b/docs/deploy.rst
@@ -10,14 +10,14 @@ You will need to install Docker first.
Before building the image make sure you have all of the front-end assets prepared for production:
-.. code::
+.. code-block:: bash
$ npm run build-assets
$ python manage.py collectstatic
Then use Docker to build the image:
-.. code::
+.. code-block:: bash
$ docker build -t mystorefront .
@@ -28,7 +28,7 @@ Heroku
First steps
***********
-.. code::
+.. code-block:: bash
$ heroku create --buildpack https://github.com/heroku/heroku-buildpack-nodejs.git
$ heroku buildpacks:add https://github.com/heroku/heroku-buildpack-python.git
@@ -45,7 +45,7 @@ First steps
Deploy
******
-.. code::
+.. code-block:: bash
$ git push heroku master
@@ -53,6 +53,6 @@ Deploy
Prepare the database
********************
-.. code::
+.. code-block:: bash
$ heroku run python manage.py migrate
diff --git a/docs/development.rst b/docs/development.rst
index 19bd17d770..07c57d659d 100644
--- a/docs/development.rst
+++ b/docs/development.rst
@@ -27,7 +27,7 @@ This will also enable *source maps* that are extremely helpful when debugging.
To run webpack in *watch* mode run:
-.. code:: bash
+.. code-block:: bash
$ npm start
@@ -36,7 +36,7 @@ To run webpack in *watch* mode run:
Files produced this way are not ready for production use.
To prepare static assets for deployment run:
- .. code:: bash
+ .. code-block:: bash
$ npm run build-assets
@@ -62,7 +62,7 @@ The project currently contains very little front-end code so the test suite only
To run backend tests use `pytest <http://docs.pytest.org/en/latest/>`_:
-.. code:: bash
+.. code-block:: bash
$ py.test
@@ -70,7 +70,7 @@ You can also test against all supported versions of Django and Python.
This is usually only required if you want to contribute your changes back to Saleor.
To do so you can use `Tox <https://tox.readthedocs.io/en/latest/>`_:
-.. code:: bash
+.. code-block:: bash
$ tox
@@ -106,14 +106,14 @@ Usage
1. Build the containers using ``docker-compose``
- .. code::
+ .. code-block:: bash
$ docker-compose build
2. Prepare the database
- .. code::
+ .. code-block:: bash
$ docker-compose run web python manage.py migrate
$ docker-compose run web python manage.py populatedb --createsuperuser
@@ -124,7 +124,7 @@ Usage
3. Run the containers
- .. code::
+ .. code-block:: bash
$ docker-compose up
diff --git a/docs/installation.rst b/docs/installation.rst
index 44b7375bd7..5949959839 100644
--- a/docs/installation.rst
+++ b/docs/installation.rst
@@ -18,9 +18,9 @@ Before you are ready to run Saleor you will need certain software installed on y
#. `webpack module bundler <https://webpack.github.io/>`_ installed globally with:
- .. code:: bash
+ .. code-block:: bash
- $ npm i webpack -g
+ $ npm i webpack -g
We also strongly recommend creating a virtual environment before proceeding with installation.
@@ -30,23 +30,23 @@ Installation
#. Clone the repository (or use your fork):
- .. code:: bash
+ .. code-block:: bash
- $ git clone https://github.com/mirumee/saleor.git
+ $ git clone https://github.com/mirumee/saleor.git
#. Enter the directory:
- .. code:: bash
+ .. code-block:: bash
- $ cd saleor/
+ $ cd saleor/
#. Install all dependencies:
- .. code:: bash
+ .. code-block:: bash
- $ pip install -r requirements.txt
+ $ pip install -r requirements.txt
#. Set `SECRET_KEY` environmental variable.
@@ -55,35 +55,35 @@ Installation
Secret key has to be unique and must not be shared with anybody.
- .. code:: bash
+ .. code-block:: bash
- $ export SECRET_KEY='mysecretkey'
+ $ export SECRET_KEY='mysecretkey'
#. Prepare the database:
- .. code:: bash
+ .. code-block:: bash
- $ python manage.py migrate
+ $ python manage.py migrate
#. Install front-end dependencies:
- .. code:: bash
+ .. code-block:: bash
- $ npm install
+ $ npm install
#. Prepare front-end assets:
- .. code:: bash
+ .. code-block:: bash
$ npm run build-assets
#. Run like a normal django project:
- .. code:: bash
+ .. code-block:: bash
$ python manage.py runserver
@@ -93,6 +93,6 @@ Example data
If you'd like some data to test your new storefront you can populate the database with example products and orders:
-.. code:: bash
+.. code-block:: bash
- $ python manage.py populatedb
+ $ python manage.py populatedb