Local Setup Guide for Statistics
This document explains how to set up, run, and preview this documentation locally using Git and MkDocs Material, step by step, for beginners.
You need:
- Python 3.8+
- Git
- Internet connection (for first-time installation)
Check Python:
python --versionGit is required to track changes and save your work history.
git --versionIf a version number appears, Git is already installed.
macOS
xcode-select --installor
brew install gitUbuntu / Debian
sudo apt update sudo apt install gitWindows
- Install Git for Windows
- Use Git Bash as your terminal
Install MkDocs and the Material theme:
python -m pip install mkdocs-materialVerify installation:
mkdocs --versionNavigate to the directory where mkdocs.yml exists.
cd /path/to/your/projectCheck files:
lsYou should see:
mkdocs.yml docs/ Stage all changes:
git add .Commit with a meaningful message:
git commit -m "docs: update markdown content"Start the local server:
mkdocs serveYou should see:
Serving on http://127.0.0.1:8000/ Open your browser and go to:
http://127.0.0.1:8000/ - Changes update automatically
- Stop the server with Ctrl + C
| Step | Purpose |
|---|---|
| Install Git | Version control |
| Install MkDocs Material | Documentation tool |
| Move to project folder | Required to run MkDocs |
| Commit changes | Save progress |
| mkdocs serve | Preview locally |
| Browser | View site |
Happy writing ✨