From 9ecd669df2901b0236e7059f3b2efdaecb16dd2d Mon Sep 17 00:00:00 2001 From: mirnawong1 <89008547+mirnawong1@users.noreply.github.com> Date: Mon, 13 Nov 2023 12:34:08 +0000 Subject: [PATCH 1/3] Create _config-description-general.md --- website/snippets/_config-description-general.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 website/snippets/_config-description-general.md diff --git a/website/snippets/_config-description-general.md b/website/snippets/_config-description-general.md new file mode 100644 index 00000000000..04966047e2c --- /dev/null +++ b/website/snippets/_config-description-general.md @@ -0,0 +1 @@ +General configurations provide broader operational settings applicable across multiple resources. These include enabling/disabling resources, tagging, database and schema specifications, and operational settings like pre-hooks and post-hooks. These can also be set in the project file, property file, or within the resource file. From c274dcd4348748839cec542d45ed8f7faccc9050 Mon Sep 17 00:00:00 2001 From: mirnawong1 <89008547+mirnawong1@users.noreply.github.com> Date: Mon, 13 Nov 2023 12:35:15 +0000 Subject: [PATCH 2/3] Create _config-description-resource.md --- website/snippets/_config-description-resource.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 website/snippets/_config-description-resource.md diff --git a/website/snippets/_config-description-resource.md b/website/snippets/_config-description-resource.md new file mode 100644 index 00000000000..4fda2ab74b8 --- /dev/null +++ b/website/snippets/_config-description-resource.md @@ -0,0 +1 @@ +Resource-specific configurations are applied to individual dbt resources, influencing their specific attributes. These settings can be defined in the project file (`dbt_project.yml`), a property file (`models/properties.yml` for models, similarly for other resources), or within the resource’s file using the `{{ config() }}` macro. From 0d7dc2979f9d58e8716a5dc9fff8f6a520bc2b6c Mon Sep 17 00:00:00 2001 From: mirnawong1 <89008547+mirnawong1@users.noreply.github.com> Date: Mon, 13 Nov 2023 12:36:41 +0000 Subject: [PATCH 3/3] Update model-configs.md --- website/docs/reference/model-configs.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/website/docs/reference/model-configs.md b/website/docs/reference/model-configs.md index 06830d0d32b..c4de3697abe 100644 --- a/website/docs/reference/model-configs.md +++ b/website/docs/reference/model-configs.md @@ -3,6 +3,9 @@ title: Model configurations description: "Read this guide to understand model configurations in dbt." --- +import ConfigResource from '/snippets/_config-description-resource.md'; +import ConfigGeneral from '/snippets/_config-description-general.md'; + ## Related documentation * [Models](/docs/build/models) * [`run` command](/reference/commands/run) @@ -10,6 +13,8 @@ description: "Read this guide to understand model configurations in dbt." ## Available configurations ### Model-specific configurations + + +