Network-wide ad blocking via your own Linux hardware
The Pi-hole® is a DNS sinkhole that protects your devices from unwanted content, without installing any client-side software.
This repository is the source for the official Pi-hole documentation.
Adding a New Link to the Navigation Panel:
- Edit the
mkdocs.yml
file at the root of the repository. - Follow the guide for building the navbar on the MkDocs Wiki.
Adding a New Document or Guide:
- Navigate to the appropriate directory (e.g., guides are in
docs/guides
). - Create a new file with a URL-friendly filename (e.g.,
url-friendly.md
). - Use Markdown to edit your document. There are many resources available online for Markdown syntax.
It's advised to review your changes locally before committing. Use the mkdocs serve
command to live preview your changes on your local machine.
General Steps:
-
Fork the repository into your own Github account.
-
Clone your fork and navigate into it. You need only do this once:
git clone https://github.com/YOUR-USERNAME/docs cd docs
-
Install dependencies:
-
Linux Mint / Ubuntu: (18.04/20.04/22.04 LTS/19.10 and up)
sudo apt install python3-pip pip3 install -r requirements.txt
-
Fedora Linux: (tested on Fedora Linux 28)
pip install --user -r requirements.txt
-
-
Run the local docs server:
mkdocs serve --dev-addr 0.0.0.0:8000
Docker Instructions: For a one-shot run with Docker, use the following command:
docker run -v $(pwd):/opt/app/ -w /opt/app/ -p 8000:8000 \
-it nikolaik/python-nodejs:python3.7-nodejs16 \
sh -c "pip install --user -r requirements.txt && \
/root/.local/bin/mkdocs build && \
npm ci && \
npm test && \
/root/.local/bin/mkdocs serve --dev-addr 0.0.0.0:8000"
After running the above, your changes will be accessible through your favorite browser at http://localhost:8000.