This document explains how to configure the GitHub-related placeholders in the documentation.
Throughout the documentation and configuration files, you'll find placeholder text that needs to be replaced with your actual GitHub repository information:
Placeholder: <your-org> / <your-org>/latvia_osm_project
Description: This is the GitHub repository URL path that needs to be replaced with your actual GitHub organization and repository name.
The following files contain <your-org> placeholders that should be replaced:
-
README.md (root level)
- Clone URL examples
- Repository links
-
INSTALLATION.md
- Clone URL examples (multiple locations)
- GitHub Issues link
- GitHub Discussions link
-
DEVELOPMENT.md
- Clone URL example
-
API.md
- GitHub Issues link
-
CONTRIBUTING.md (if present)
- Repository links
-
CONTRIBUTORS.md
- Repository links
-
pyproject.toml
- Repository URL
- Homepage URL
- Documentation URL
-
Determine your GitHub organization/repository path
- Example:
latviaosm/latvia_osm_project - Example:
my-org/latviaosm-check
- Example:
-
Use Find & Replace (Ctrl+H / Cmd+H in VS Code)
- Find:
<your-org> - Replace with:
your-organization-name
- Find:
-
Repeat for any other placeholder patterns
#!/bin/bash
# Replace placeholders in documentation
ORG_NAME="your-organization-name"
REPO_NAME="latvia_osm_project"
# Replace in all markdown files
find . -name "*.md" -type f -exec sed -i "s|<your-org>|$ORG_NAME|g" {} +
# Replace in pyproject.toml
sed -i "s|<your-org>|$ORG_NAME|g" pyproject.toml
# Replace in Python files
find . -name "*.py" -type f -exec sed -i "s|<your-org>|$ORG_NAME|g" {} +
echo "✓ All placeholders replaced with: $ORG_NAME"#!/usr/bin/env python3
"""
Replace GitHub placeholders in project files.
"""
from pathlib import Path
import re
def replace_placeholders(org_name):
"""Replace <your-org> placeholder with actual organization name."""
# Files to update
files_to_update = [
'README.md',
'pyproject.toml',
'docs/README.md',
'docs/INSTALLATION.md',
'docs/DEVELOPMENT.md',
'docs/API.md',
'CONTRIBUTORS.md',
'CONTRIBUTING.md'
]
pattern = re.compile(r'<your-org>')
updated_count = 0
for file_path in files_to_update:
path = Path(file_path)
if path.exists():
content = path.read_text()
if pattern.search(content):
new_content = pattern.sub(org_name, content)
path.write_text(new_content)
print(f"✓ Updated: {file_path}")
updated_count += 1
print(f"\n✓ Total files updated: {updated_count}")
print(f"✓ All placeholders replaced with: {org_name}")
if __name__ == "__main__":
import sys
if len(sys.argv) != 2:
print("Usage: python setup_docs.py <organization-name>")
print("Example: python setup_docs.py my-org")
sys.exit(1)
org_name = sys.argv[1]
replace_placeholders(org_name)Before:
git clone https://github.com/<your-org>/latvia_osm_project.gitAfter:
git clone https://github.com/my-geospatial-org/latvia_osm_project.gitThe README notes "Docker (Coming Soon)". When Docker support is ready:
- Create
Dockerfilein project root - Create
docker-compose.yml - Update README.md to replace "Coming Soon" with Docker instructions
- Add Docker section to INSTALLATION.md
Example Dockerfile:
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 5000
CMD ["python", "app.py"]The codebase notes several "Coming Soon" features:
- Railways Analysis - Train network data
- Buildings Analysis - Building footprints
- POIs (Points of Interest) - Hospitals, restaurants, etc.
To implement:
- Create extraction scripts (e.g.,
scripts/31_extract_railways.py) - Add processing modules in
src/processing/ - Create visualization scripts
- Add API endpoints
- Update documentation
After configuring all placeholders:
- All
<your-org>references are replaced - GitHub clone URLs point to correct repository
- GitHub Issues link is correct
- GitHub Discussions link is correct
- pyproject.toml repository URLs are correct
- README.md links are all valid
- INSTALLATION.md links work
- DEVELOPMENT.md links are correct
If you need help configuring these placeholders:
- Check the specific file mentioned in the error/issue
- Look for
<your-org>text - Replace with your actual GitHub organization name
- Test that the resulting URLs are valid
For example, if your org is geomatics-team and repo is latvia-osm, the URL should be:
https://github.com/geomatics-team/latvia-osm
Note: This configuration is a one-time setup. After replacing all placeholders, delete this file or keep it for reference.
Status: ✅ All documentation complete - Only placeholders need GitHub repository configuration