dbt-labs / dbt-labs/docs.getdbt.com

[Core] Common code snippet for defining config: locations and precedence

Open
#5,617 0 comments 0 reactions 0 assignees View on GitHub
content dbt Core size: medium
Dominant language
JavaScript
Stars
215
Forks
1.2k
Avg merge
1d 15h
Merged PRs (30d)
130

Description

### Link to the page(s) on docs.getdbt.com requiring updates

Pages for any resource type that has configurations (like `enabled`, `meta`, etc.). This includes (but probably not limited to):
- https://docs.getdbt.com/reference/configs-and-properties#where-can-i-define-configs
- https://docs.getdbt.com/reference/model-configs#configuring-models
- https://docs.getdbt.com/reference/seed-configs
- https://docs.getdbt.com/reference/snapshot-configs
- https://docs.getdbt.com/reference/source-configs

### Tell us more about this update

[Here](https://docs.getdbt.com/reference/configs-and-properties#where-can-i-define-configs) and [here](https://docs.getdbt.com/reference/model-configs#configuring-models) have some content that is very similar to each other that could be abstracted into a snippet that can be shared.

#### Example 1

image

#### Example 2

image

Additionally, this content actually applies to other resources too that don't already include this information (like [seeds](https://docs-getdbt-com-git-ly-docs-issue-3239-dbt-labs.vercel.app/reference/seed-configs), [snapshots](https://docs-getdbt-com-git-ly-docs-issue-3239-dbt-labs.vercel.app/reference/snapshot-configs), etc).

So we should add that snippet to those pages too.

Finally, we should review if there are any other resource types that support `config()` like `enabled`, `meta`, etc. that should have this snippet added as well.

### Reviewers/Stakeholders/SMEs

`{{ this }}`

### Related GitHub issues

Noticed while reviewing https://github.com/dbt-labs/docs.getdbt.com/pull/5616.

Since this is larger scope that is also not urgent, created this separate issue.

### Additional information

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.