Skip to content

Commit

Permalink
Updating order of examples (#4456)
Browse files Browse the repository at this point in the history
## What are you changing in this pull request and why?

Standardizes the `project.yml` file as the first example on a few pages
where it's listed after the `models` example.

Closes #4417

## Checklist

- [x] Review the [Content style
guide](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/content-style-guide.md)
and [About
versioning](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#adding-a-new-version)
so my content adheres to these guidelines.
- [x] Add a checklist item for anything that needs to happen before this
PR is merged, such as "needs technical review" or "change base branch."
  • Loading branch information
matthewshaver authored Nov 13, 2023
2 parents af6e2d1 + 30020d2 commit bd154df
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 41 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
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

0 comments on commit bd154df

Please sign in to comment.