From be1c0eb7635e06604d838d081da45495e6e41b74 Mon Sep 17 00:00:00 2001 From: mirnawong1 <89008547+mirnawong1@users.noreply.github.com> Date: Tue, 19 Dec 2023 08:22:39 -0500 Subject: [PATCH] Update docs.md fold in Doug's feedback --- .../docs/reference/resource-configs/docs.md | 28 ++++++++----------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/website/docs/reference/resource-configs/docs.md b/website/docs/reference/resource-configs/docs.md index b188753010f..d5f7b6499d8 100644 --- a/website/docs/reference/resource-configs/docs.md +++ b/website/docs/reference/resource-configs/docs.md @@ -23,31 +23,29 @@ default_value: {show: true} You can configure `docs` behavior for many resources at once by setting in `dbt_project.yml`. You can also use the `docs` config in `properties.yaml` files, to set or override documentation behaviors for specific resources: - - + ```yml -version: 2 - models: - - name: model_name - docs: + [](/reference/resource-configs/resource-path): + +docs: show: true | false - node_color: "black" + ``` - + + + ```yml +version: 2 -```yml models: - [](/reference/resource-configs/resource-path): - +docs: + - name: model_name + docs: show: true | false - + node_color: "black" ``` - @@ -153,8 +151,6 @@ macros: ``` -Also refer to [macro properties](/reference/macro-properties). - @@ -162,7 +158,7 @@ Also refer to [macro properties](/reference/macro-properties). ## Definition The docs field can be used to provide documentation-specific configuration to models. It supports the doc attribute `show`, which controls whether or not models are shown in the auto-generated documentation website. It also supports `node_color` for some node types. -**Note:** hidden models will still appear in the dbt DAG visualization but will be identified as "hidden.” +**Note:** Hidden models will still appear in the dbt DAG visualization but will be identified as "hidden.” ## Default The default value for `show` is `true`.