Multi-product internal documentation site.
Live site: docs.ericrobotics.com
eric-docs/
├── landing/ # Landing page (static HTML)
│ └── index.html
├── products/
│ ├── railwaymitra/ # Each product is its own MkDocs site
│ │ ├── mkdocs.yml
│ │ └── docs/
│ ├── ubis/ # Add later
│ └── runwaymitra/ # Add later
├── scripts/
│ ├── build.sh # Build all sites into site/
│ └── deploy.sh # Build + push to gh-pages
└── requirements.txt
pip install -r requirements.txt# Build everything
./scripts/build.sh
# Serve locally
cd site && python3 -m http.server 8000
# Open http://localhost:8000Or preview a single product:
cd products/railwaymitra
mkdocs serve
# Open http://127.0.0.1:8000./scripts/deploy.shThis builds all products, copies the landing page, and pushes the combined
site/ folder to the gh-pages branch. GitHub Pages serves it from there.
- Copy an existing product folder:
cp -r products/railwaymitra products/ubis
- Edit
products/ubis/mkdocs.yml— updatesite_name,site_url,site_dir, andnav - Edit
products/ubis/docs/— replace content - Add a card in
landing/index.html— changecoming-soontoactiveand add the link - Run
./scripts/deploy.sh
When a product needs versions, install mike:
pip install mike
cd products/railwaymitra
mike deploy v1.0 latest --update-aliases
mike set-default latestThis creates versioned builds with a dropdown selector. See mike docs for details.