-
Here is my code: ## Installation Steps
1. Clone or download the repository.
1. Create a Python virtual environment and install the dependencies.
```bash
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
```
1. Create a PostgreSQL database and user.
```bash
sudo -u postgres psql
CREATE DATABASE battleofmidgard;
CREATE USER battleofmidgard WITH PASSWORD 'password';
GRANT ALL PRIVILEGES ON DATABASE battleofmidgard TO battleofmidgard;
```
1. Make a copy of config.yml.example and rename it to config.yml.
```bash
cp config.yml.example config.yml
```
1. Edit config.yml and add in the database credentials and details. Now the numbers should continue, but instead, restart like so: I have tried indenting the code blocks, which numbers correctly but then the code blocks don't render correctly. Any ideas on how to resolve? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Okay so I solved by surrounded my code blocks like so: 1. Create a PostgreSQL database and user.
<pre><code class="language-bash">sudo -u postgres psql
CREATE DATABASE battleofmidgard;
CREATE USER battleofmidgard WITH PASSWORD 'password';
GRANT ALL PRIVILEGES ON DATABASE battleofmidgard TO battleofmidgard;
</code></pre> This fixed it, so the issue is that if a code block is indented, the |
Beta Was this translation helpful? Give feedback.
-
As @facelessuser already pointed out, here is your example with indented blocks, which will preserve numbering: ## Installation Steps
1. Clone or download the repository.
1. Create a Python virtual environment and install the dependencies.
```bash
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
```
1. Create a PostgreSQL database and user.
```bash
sudo -u postgres psql
CREATE DATABASE battleofmidgard;
CREATE USER battleofmidgard WITH PASSWORD 'password';
GRANT ALL PRIVILEGES ON DATABASE battleofmidgard TO battleofmidgard;
```
1. Make a copy of config.yml.example and rename it to config.yml.
```bash
cp config.yml.example config.yml
```
1. Edit config.yml and add in the database credentials and details. |
Beta Was this translation helpful? Give feedback.
As @facelessuser already pointed out, here is your example with indented blocks, which will preserve numbering: