diff --git a/website/docs/reference/resource-configs/resource-path.md b/website/docs/reference/resource-configs/resource-path.md index 86b04430376..20406f26f2a 100644 --- a/website/docs/reference/resource-configs/resource-path.md +++ b/website/docs/reference/resource-configs/resource-path.md @@ -115,10 +115,10 @@ In the following project, this would only apply to the `payments` model:    └── payments.sql ``` -### Apply config source nested in a subfolder +### Apply config to a source nested in a subfolder -To disable a source nested in a YAML file in a subfolder, you will need to supply the path to that YAML file, as well as the source name in the `dbt_project.yml` file.

- The following example shows how to disable a source nested in a YAML file in a subfolder: +To disable a source table nested in a YAML file in a subfolder, you will need to supply the subfolder(s) within the path to that YAML file, as well as the source name and the table name in the `dbt_project.yml` file.

+ The following example shows how to disable a source table nested in a YAML file in a subfolder: @@ -126,8 +126,8 @@ To disable a source nested in a YAML file in a subfolder, you will need to suppl sources: your_project_name: subdirectory_name: - source_yaml_file_name: - source_name: - +enabled: false # This will apply to sources nested in subfolders. + source_name: + source_table_name: + +enabled: false ``` diff --git a/website/docs/reference/source-configs.md b/website/docs/reference/source-configs.md index c66f41f1cde..7e8a547489a 100644 --- a/website/docs/reference/source-configs.md +++ b/website/docs/reference/source-configs.md @@ -65,22 +65,22 @@ Sources can be configured via a `config:` block within their `.yml` definitions, You can disable sources imported from a package to prevent them from rendering in the documentation, or to prevent [source freshness checks](/docs/build/sources#snapshotting-source-data-freshness) from running on source tables imported from packages. -- **Note**: To disable a source nested in a YAML file in a subfolder, you will need to supply the path to that YAML file plus the source name in the dbt_project.yml file. For example: +- **Note**: To disable a source table nested in a YAML file in a subfolder, you will need to supply the subfolder(s) within the path to that YAML file, as well as the source name and the table name in the `dbt_project.yml` file.

+ The following example shows how to disable a source table nested in a YAML file in a subfolder: - ```yml + ```yaml sources: your_project_name: subdirectory_name: - source_yaml_file_name: - source_name: - +enabled: false # This will apply to sources nested in subfolders. + source_name: + source_table_name: + +enabled: false ``` - ### Examples #### Disable all sources imported from a package To apply a configuration to all sources included from a [package](/docs/build/packages),