Skip to main content

Running a Federated Docs Site

Infrastructure
How a dozen independent nbdev + Quarto repos publish to separate GitHub Pages sites yet read as one - the shared-chrome trick behind bthek1.github.io.
Author

Benedict Thekkel

Published

July 6, 2026

bthek1.github.io looks like one website. It isn’t. It’s ~18 independent nbdev + Quarto sites, each published to its own GitHub Pages URL, stitched into the illusion of one site by identical chrome. Here’s the trick.

The problem

Each topic is its own nbdev repo (its own package, its own docs build). I did not want one giant monolithic site - repos stay independent, buildable, and publishable on their own. But I did want them to feel like one place. There is no combined build; the unification is pure convention.

The architecture

The Knowledge mono-repo holds the canonical _quarto.yml, and just copy_quarto pushes it into every submodule, each of which publishes its own GitHub Pages site linked to the others by a shared navbar.

Three pieces make it work

Piece Source Role
Canonical _quarto.yml mono-repo root The one true navbar, theme, footer, search
just copy_quarto mono-repo justfile Pushes _quarto.yml + logos into every submodule’s nbs/
Per-site nbdev.yml each submodule Site title / URL / repo, merged via metadata-files

The navbar hrefs are absolute URLs across the separate Pages sites. Click an item and you cross from one site to another - but since every site carries the same copied navbar, theme, and logo, it reads as one continuous site.

The federated sites

A slice of what’s stitched together (each is its own repo + Pages site):

Category Site
Deep Learning https://bthek1.github.io/DL_methods
Web / backend https://bthek1.github.io/Back_End
Web / infra https://bthek1.github.io/Web_development
Python libs https://bthek1.github.io/Python_Libs
Tools https://bthek1.github.io/Software_Tools
Hardware https://bthek1.github.io/Hardware_Tools
Time series https://bthek1.github.io/ML_Timeseries
Finances https://bthek1.github.io/Finances

The publish flow

Editing the root _quarto.yml, running just copy_quarto, then nbdev_docs per submodule produces N GitHub Pages sites that look like one site.

Change the nav in one place, copy_quarto, rebuild, and every site updates in lockstep.

Trade-offs

Win Cost
Repos stay independent + small N sites to rebuild on a chrome change
Any repo builds/publishes alone Cross-site search is per-site
No monolith to break Navbar URLs are absolute, must be kept in sync

For a personal knowledge base that grows one topic at a time, the independence is worth the rebuild cost. The whole mechanism lives in the mono-repo’s root _quarto.yml and justfile.


Back to top