This repository contains the source code for the Location Information API Business Manual website, built with MkDocs and the Material theme.
- Python 3.8+ (recommended: Python 3.10 or newer)
- Git for version control
We strongly recommend using a Python virtual environment to avoid conflicts with system packages and ensure consistent dependencies across all team members.
# Clone the repository
git clone <repository-url>
cd lih_api_manual
# Create virtual environment
python3 -m venv venv
# Activate virtual environment
source venv/bin/activate
# Install dependencies
pip install -r requirements.txt
# Clone the repository
git clone <repository-url>
cd lih_api_manual
# Create virtual environment
python -m venv venv
# Activate virtual environment
venv\Scripts\Activate.ps1
# Install dependencies
pip install -r requirements.txt
# Clone the repository
git clone <repository-url>
cd lih_api_manual
# Create virtual environment
python -m venv venv
# Activate virtual environment
venv\Scripts\activate.bat
# Install dependencies
pip install -r requirements.txt
After setting up your virtual environment:
# Serve the site locally (with auto-reload)
mkdocs serve
# Open your browser to http://127.0.0.1:8000
# Build static site
mkdocs build
# Deploy to GitHub Pages (requires proper repository setup)
mkdocs gh-deploy
lih_api_manual/
├── docs/ # Documentation source files
│ ├── index.md # Homepage
│ ├── strategy/ # API Strategy section
│ ├── legal/ # Legal frameworks
│ ├── compliance/ # Security & compliance
│ ├── advanced/ # Advanced technologies
│ ├── lifecycle/ # API lifecycle management
│ ├── build/ # Technical implementation
│ ├── usecases/ # Market examples
│ ├── stylesheets/ # Custom CSS
│ │ └── extra.css # Site customizations
│ └── glossary.md # Glossary & resources
├── mkdocs.yml # MkDocs configuration
├── requirements.txt # Python dependencies
└── README.md # This file
- Always use the virtual environment when working on this project
- Activate your environment before running any MkDocs commands
- Test locally with
mkdocs serve
before committing changes - Update requirements.txt if you add new dependencies
- Create or edit Markdown files in the
docs/
directory - Update navigation in
mkdocs.yml
if adding new pages - Test with
mkdocs serve
- Commit and push changes
- Edit
docs/stylesheets/extra.css
for custom styling - The CSS is automatically included via
mkdocs.yml
configuration
Problem: source venv/bin/activate
not working on Windows
Solution: Use the Windows-specific activation script (see setup instructions above)
Problem: Permission denied on venv activation Solution: On Windows PowerShell, you might need to run:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Problem: Python command not found Solution:
- Linux/Mac: Try
python3
instead ofpython
- Windows: Ensure Python is in your PATH, or use Python Launcher:
py -m venv venv
Problem: mkdocs: command not found
Solution: Ensure your virtual environment is activated and requirements are installed
Problem: Site not updating when editing files
Solution: Check that mkdocs serve
is running and refresh your browser
Problem: Theme not loading properly
Solution: Verify mkdocs-material
is installed: pip list | grep mkdocs-material
# Start of day
cd lih_api_manual
source venv/bin/activate # or venv\Scripts\activate on Windows
# Work on content...
mkdocs serve # Keep this running while editing
# End of day - deactivate environment
deactivate
# Test build
mkdocs build
# Check for any errors
# Commit if everything looks good
git add .
git commit -m "Your descriptive commit message"
git push
# Automated deployment script
./deploy.sh
- Update repository URLs in
mkdocs.yml
- Create GitHub repository and add as remote
- Deploy:
mkdocs gh-deploy
(manual) or push to trigger GitHub Actions
See DEPLOYMENT.md
for detailed instructions.