Giter Site home page Giter Site logo

docs's Introduction

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 repo is the source for the official Pi-hole documentation.

How to contribute

To add a new link on the navigation panel you need to edit the mkdocs.yml file in the root of the repo. There is a guide for building the navbar on the mkdocs wiki

To add a new document or guide.

  • Navigate to the directory where it will be hosted. EG. guides are in docs/guides
  • Create the file using a URL friendly filename. EG. docs/guides/url-friendly.md
  • Edit your document using Markdown, there are loads of resources available for the correct syntax.

Testing your changes

When working on this repo, it is advised that you review your changes locally before committing them. The mkdocs serve command can be used to live preview your changes (as you type) on your local machine.

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:

    • Preparations (only required once):
    git clone https://github.com/YOUR-USERNAME/docs
    cd docs
    sudo apt install python3-pip
    sudo pip3 install -r requirements.txt
    • Running the docs server:
    mkdocs serve --dev-addr 0.0.0.0:8000
  • Fedora Linux instructions (tested on Fedora Linux 28):

    • Preparations (only required once):
    git clone https://github.com/YOUR-USERNAME/docs
    cd docs
    pip install --user -r requirements.txt
    • Running the docs server:
    mkdocs serve --dev-addr 0.0.0.0:8000
  • Docker instructions:

    • One-shot run:
    docker run -v `pwd`:/opt/app/ -w /opt/app/ -p 8000:8000 -it python:2-alpine \
      sh -c "pip install --user -r requirements.txt && \
      /root/.local/bin/mkdocs serve --dev-addr 0.0.0.0:8000"

After these commands, the current branch is accessible through your favorite browser at http://localhost:8000

Deploys by Netlify

docs's People

Contributors

axilleas avatar azuremarker avatar bcambl avatar chocomega avatar dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar dermoth avatar diginc avatar dl6er avatar dschaper avatar eranb avatar francislavoie avatar jasperdanan avatar joelondon avatar mahakam20000 avatar miabbott avatar michaing avatar mingaldrichgan avatar patski123 avatar polmp avatar promofaux avatar ramset avatar technicalpyro avatar tedder avatar thinkpadnl avatar thomwiggers avatar toakan avatar xhmikosr avatar zocker1999net avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

laithonex

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.