Skip to content

Commit

Permalink
Updating order of examples
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewshaver committed Nov 13, 2023
1 parent 309482b commit 5d55661
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 42 deletions.
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
36 changes: 18 additions & 18 deletions website/docs/reference/resource-configs/group.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,27 +29,27 @@ 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: finance
[<resource-path>](resource-path):
+group: finance
```
</File>
<File name='dbt_project.yml'>
<File name='models/schema.yml'>
```yml
version: 2

models:
[<resource-path>](resource-path):
+group: finance
- name: model_name
group: finance
```
</File>
<File name='models/<modelname>.sql'>
Expand Down Expand Up @@ -277,23 +277,23 @@ 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

0 comments on commit 5d55661

Please sign in to comment.