mirror of
https://github.com/pi-hole/docs.git
synced 2025-12-24 05:08:57 +00:00
Use a virtual enviorment for Ubuntu (#1213)
Signed-off-by: darkexplosiveqwx <the.qwx.channel@gmail.com>
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -4,3 +4,4 @@
|
||||
/.idea
|
||||
/node_modules/
|
||||
/site/
|
||||
.venv/
|
||||
|
||||
12
README.md
12
README.md
@@ -30,16 +30,24 @@ When working on this repo, it is advised that you review your changes locally be
|
||||
|
||||
Please make sure you fork the repo and change the clone URL in the example below for your fork:
|
||||
|
||||
- Linux Mint / Ubuntu 18.04 LTS / 19.10 / 20.04 LTS:
|
||||
- Linux Mint / Ubuntu 20.04 LTS / 23.10 and later:
|
||||
- Preparations (only required once):
|
||||
|
||||
```bash
|
||||
git clone https://github.com/YOUR-USERNAME/docs
|
||||
cd docs
|
||||
sudo apt install python3-pip
|
||||
sudo apt install python3-pip python3-venv
|
||||
python3 -m venv .venv
|
||||
source .venv/bin/activate
|
||||
pip3 install -r requirements.txt
|
||||
```
|
||||
|
||||
- Enter the virtual enviorment (if exited):
|
||||
|
||||
```bash
|
||||
source .venv/bin/activate
|
||||
```
|
||||
|
||||
- Running the docs server:
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user