-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add shell annotations on code blocks in English docs. #1801
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ Now you should see an interface with a sidebar, buttons at the left. | |
Click "Terminal" button to open terminal window with prompt like this: | ||
|
||
{% filename %}Terminal{% endfilename %} | ||
``` | ||
```shell | ||
$ | ||
``` | ||
|
||
|
@@ -53,7 +53,7 @@ Now you should see an interface with a sidebar, a big main window with some | |
text, and a small window at the bottom that looks something like this: | ||
|
||
{% filename %}bash{% endfilename %} | ||
``` | ||
```shell | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is more like |
||
yourusername:~/workspace $ | ||
``` | ||
|
||
|
@@ -69,7 +69,7 @@ bigger. | |
4. Click on the Tools dropdown list (at the bottom left side of the window), then on Terminal button to open terminal tab with a prompt like this: | ||
|
||
{% filename %}Terminal{% endfilename %} | ||
``` | ||
```shell | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here |
||
app@name-of-your-glitch-project:~ | ||
``` | ||
|
||
|
@@ -111,7 +111,7 @@ python3 manage.py runserver $PORT | |
Once these files are created, go to the Terminal and execute the following commands to create your first Django project: | ||
|
||
{% filename %}Terminal{% endfilename %} | ||
``` | ||
```shell | ||
django-admin.py startproject mysite . | ||
refresh | ||
``` | ||
|
@@ -140,6 +140,7 @@ LOGGING = { | |
}, | ||
} | ||
``` | ||
|
||
This will create a `debug.log` file detailing Django operations and any error messages that might come up, making it much easier to fix if your website does not work. | ||
|
||
The initial restarting of the Glitch project should fail. | ||
|
@@ -156,7 +157,7 @@ things don't get mixed up between projects. | |
Run: | ||
|
||
{% filename %}Cloud 9{% endfilename %} | ||
``` | ||
```shell | ||
mkdir djangogirls | ||
cd djangogirls | ||
python3 -m venv myvenv | ||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -29,7 +29,7 @@ All you need to do is find a directory in which you want to create the `virtuale | |||||
For this tutorial we will be using a new directory `djangogirls` from your home directory: | ||||||
|
||||||
{% filename %}command-line{% endfilename %} | ||||||
``` | ||||||
```shell | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is very common in this file, so I'm not commenting it on every line.
Suggested change
|
||||||
$ mkdir djangogirls | ||||||
$ cd djangogirls | ||||||
``` | ||||||
|
@@ -38,23 +38,23 @@ We will make a virtualenv called `myvenv`. | |||||
|
||||||
To create a new `virtualenv` on RunCode, you first need to install the `virtualenv` module. To do so, first you need to update | ||||||
the packages in your environment | ||||||
>``` | ||||||
>```shell | ||||||
>$ sudo apt-get update -y | ||||||
>``` | ||||||
> then install `virtualenv` by running the command: | ||||||
>``` | ||||||
>```shell | ||||||
>$ sudo apt-get install -y virtualenv | ||||||
>``` | ||||||
|
||||||
> After this you can create the `virtualenv` run the command: | ||||||
>``` | ||||||
>```shell | ||||||
>$ virtualenv -p python myvenv | ||||||
>``` | ||||||
> and a new `virtualenv` with the name `myvenv` or whatever name you chose should be created in your `djangogirls` folder. | ||||||
|
||||||
## Working with a Virtual Environment | ||||||
>Start your virtual environment by running: | ||||||
>``` | ||||||
>```shell | ||||||
>$ . myvenv/bin/activate | ||||||
>``` | ||||||
|
||||||
|
@@ -82,7 +82,7 @@ Django~={{ book.django_version }} | |||||
Now, run `pip install -r requirements.txt` to install Django. | ||||||
|
||||||
{% filename %}command-line{% endfilename %} | ||||||
``` | ||||||
```shell | ||||||
(myvenv) ~$ pip install -r requirements.txt | ||||||
Collecting Django~={{ book.django_version }} (from -r requirements.txt (line 1)) | ||||||
Downloading Django-{{ book.django_version }}-py3-none-any.whl (7.9MB) | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't
shell
, butconsole