Adding Sites¶
Add a new documentation site by extending the sites variable.
Steps¶
The sites variable is the authoritative build definition. The hub build
script reads it directly.
- Add an entry to
sitesinvariables.tfdefault or override interraform.tfvars:
sites = {
# existing sites ...
new-repo = {
display_name = "New Repo"
description = "Description of the new repository docs"
repo_name = "new-repo"
}
}
-
Add a link to
hub/docs/index.mdpointing to/<new-repo>/. -
Plan and apply:
- Deploy:
What Gets Created¶
For each new entry, the consolidated build adds:
- A subdirectory at
docs.example.com/<key>/served from the hub Pages project - A link on the hub landing page
- The hub's Access application covers the new path automatically