dbt-labs / docs.getdbt.com

The code behind docs.getdbt.com
https://docs.getdbt.com/
Apache License 2.0
113 stars 865 forks source link

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

Open dbeatty10 opened 1 month ago

dbeatty10 commented 1 month ago

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):

Tell us more about this update

Here and here 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, snapshots, 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