Project docs
Rooster builds the dbt docs of your project for you, so you can browse models, sources, lineage and descriptions without running dbt docs serve yourself.
To open them, press Open docs on the project page. The docs open in a new browser tab. They always belong to the project’s current version.
Rooster builds docs in two levels: light docs and full docs.
Light docs
Section titled “Light docs”Rooster builds light docs every time it syncs a new version of your project. They are ready as soon as the version is.
Light docs never connect to your warehouse. They need no warehouse access, they cost nothing, and they always match the version’s code.
Light docs show:
- model, source, seed, snapshot and test descriptions
- lineage between them
- the raw SQL of each model
- the columns your YAML documents
Light docs do not show:
- column types, unless your YAML sets
data_type - columns your YAML does not document
- compiled SQL
Why the sync does not query the warehouse
Section titled “Why the sync does not query the warehouse”When Rooster syncs a new version, nothing has been built from it yet. If a commit adds a column, your warehouse still has the old table. Docs that read the warehouse at that moment would describe the previous version, and they would look correct.
Some warehouses also charge for these queries. On Snowflake, a query can wake a suspended warehouse. On BigQuery, INFORMATION_SCHEMA queries are billed. A sync happens on every change to your project, so Rooster keeps it free.
Full docs
Section titled “Full docs”Full docs add what only your warehouse knows:
- every column of every table and view, with its type
- table details, such as the owner and, on warehouses that report them, row counts and size
- the compiled SQL of each model
Full docs replace the light docs of the same version.
Docs belong to one version. When a sync finds a new version of your project, the project page shows its light docs again. Full docs come back after the first successful Run of the new version on the default target, or when you press Generate full docs.
When full docs are built
Section titled “When full docs are built”Rooster builds full docs in two cases:
- After the first successful Run of a version on the project’s default target. The warehouse is already awake, so this adds little cost. Later Runs of the same version do not build them again.
- When you press Generate full docs on the project page. Rooster warns you first, because querying the warehouse may cost money, depending on your warehouse.
Full docs are built as a separate step after the Run. They do not make the Run longer.
A Run does not need to include every model. Full docs cover your whole project, whatever the Run selected. Tables the Run did not build are shown as they were last built. A model that has never been built has no column information.
Why the default target
Section titled “Why the default target”Column types and compiled SQL depend on the target. Rooster builds full docs only from the project’s default target.
On a laptop, the default target is usually dev, and dev docs are what you want there. On a server, the default target is usually prod, and prod docs are what you want there. A Run on another target does not change the docs.
What the project page tells you
Section titled “What the project page tells you”Next to Open docs, the project page says which docs you are looking at. For example: light docs, or full docs from a Run on prod two hours ago.
While full docs are waiting for a worker or being built, the page says Full docs queued or Building full docs. Generate full docs is disabled until the build ends.
When docs are not available, the button is disabled and the page says why.
When docs cannot be built
Section titled “When docs cannot be built”A failed docs build never fails a sync or a Run. Your project keeps syncing and running as usual.
- If light docs fail, the page shows the error. Rooster tries again when the project’s code changes.
- If full docs fail, the light docs stay, and the page shows why the full build failed. You can try again with Generate full docs.
Requirements
Section titled “Requirements”Rooster needs dbt Core 1.7 or newer for every project, and docs rely on it too. A project on an older dbt does not sync or run: Rooster says which version it needs and which one it found.
Security
Section titled “Security”The docs page shows descriptions written by your project’s authors, and it runs scripts. Rooster serves it in a sandbox. Scripts on the docs page cannot call the Rooster API, cannot use your session, and cannot reach the network.
Because the page cannot reach the network, images that your descriptions link from the web do not load. Images embedded as data: URLs do.
Values of environment variables you mark as secret are masked in the docs, as they are everywhere else in Rooster.