Skip to content

desrod/pi-hole-docs

This branch is 4 commits ahead of, 550 commits behind pi-hole/docs:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
David A. Desrosiers
Mar 5, 2024
d3266dc · Mar 5, 2024
Feb 10, 2024
Jan 27, 2024
May 6, 2022
Apr 22, 2022
Jan 14, 2023
Jun 21, 2020
Jan 27, 2020
May 17, 2020
Mar 1, 2019
Mar 5, 2024
Nov 30, 2023
Jan 27, 2024
Jan 27, 2024
Mar 2, 2024
Jan 14, 2023

Repository files navigation

Pi-hole
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.

Documentation & User Guides

This repository is the source for the official Pi-hole documentation.

How to Contribute

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:

  1. Navigate to the appropriate directory (e.g., guides are in docs/guides).
  2. Create a new file with a URL-friendly filename (e.g., url-friendly.md).
  3. Use Markdown to edit your document. There are many resources available online for Markdown syntax.

Testing Your Changes Locally

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:

  1. Fork the repository into your own Github account.

  2. Clone your fork and navigate into it. You need only do this once:

    git clone https://github.com/YOUR-USERNAME/docs
    cd docs
  3. 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
  4. 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.

Deploys by Netlify

About

The official Pi-hole documentation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 100.0%