Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating order of examples #4456

Merged
merged 2 commits into from
Nov 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 24 additions & 24 deletions website/docs/reference/resource-configs/enabled.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@ default_value: true
}>
<TabItem value="models">

<File name='dbt_project.yml'>

```yml
models:
[<resource-path>](/reference/resource-configs/resource-path):
+enabled: true | false

```

</File>

<File name='models/<modelname>.sql'>

```sql
Expand All @@ -35,10 +46,15 @@ select ...

</File>

</TabItem>


<TabItem value="seeds">

<File name='dbt_project.yml'>

```yml
models:
seeds:
[<resource-path>](/reference/resource-configs/resource-path):
+enabled: true | false

Expand All @@ -48,24 +64,19 @@ models:

</TabItem>


<TabItem value="seeds">
<TabItem value="snapshots">

<File name='dbt_project.yml'>

```yml
seeds:
snapshots:
[<resource-path>](/reference/resource-configs/resource-path):
+enabled: true | false

```

</File>

</TabItem>

<TabItem value="snapshots">

<File name='snapshots/<filename>.sql'>

```sql
Expand All @@ -83,21 +94,21 @@ select ...

</File>

</TabItem>

<TabItem value="tests">

<File name='dbt_project.yml'>

```yml
snapshots:
tests:
[<resource-path>](/reference/resource-configs/resource-path):
+enabled: true | false

```

</File>

</TabItem>

<TabItem value="tests">

<File name='tests/<filename>.sql'>

```sql
Expand Down Expand Up @@ -125,17 +136,6 @@ select ...

</File>

<File name='dbt_project.yml'>

```yml
tests:
[<resource-path>](/reference/resource-configs/resource-path):
+enabled: true | false

```

</File>

</TabItem>

<TabItem value="sources">
Expand Down
41 changes: 24 additions & 17 deletions website/docs/reference/resource-configs/group.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,26 +29,29 @@ Support for grouping models was added in dbt Core v1.5

<VersionBlock firstVersion="1.5">

<File name='models/schema.yml'>
<File name='dbt_project.yml'>

```yml
version: 2

models:
- name: MODEL_NAME
group: GROUP_NAME

[<resource-path>](resource-path):
+group: GROUP_NAME

```


</File>

<File name='dbt_project.yml'>
<File name='models/schema.yml'>

```yml
version: 2

models:
[<resource-path>](resource-path):
+group: GROUP_NAME
```
- name: MODEL_NAME
group: GROUP

```

</File>

Expand Down Expand Up @@ -277,23 +280,27 @@ Support for grouping semantic models has been added in dbt Core v1.7.

<VersionBlock firstVersion="1.7">

<File name='models/semantic_models.yml'>
<File name='dbt_project.yml'>

```yaml
semantic_models:
- name: SEMANTIC_MODEL_NAME
group: GROUP_NAME

semantic-models:
[<resource-path>](resource-path):
[+](plus-prefix)group: GROUP_NAME

```

</File>

<File name='dbt_project.yml'>
<File name='models/semantic_models.yml'>

```yaml
semantic-models:
[<resource-path>](resource-path):
[+](plus-prefix)group: GROUP_NAME

semantic_models:
- name: SEMANTIC_MODEL_NAME
group: GROUP_NAME


```

</File>
Expand Down