Skip to content

Commit

Permalink
Add Steps component to datocms.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
Egpereira committed May 1, 2024
1 parent 4776ac0 commit 2fff71d
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/content/docs/en/guides/cms/datocms.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ stub: false
service: DatoCMS
i18nReady: true
---
import { Steps } from '@astrojs/starlight/components';
import { FileTree } from '@astrojs/starlight/components';

[DatoCMS](https://datocms.com/) is a web-based, headless CMS to manage digital content for your sites and apps.
Expand Down Expand Up @@ -38,7 +39,6 @@ interface ImportMetaEnv {
}
```


Your root directory should now include these files:

<FileTree title="Project Structure">
Expand Down Expand Up @@ -85,7 +85,6 @@ const data = json.data.home;
---
<h1>{data.title}</h1>
```

This GraphQL query will fetch the `title` field in the `home` page from your DatoCMS Project. When you refresh your browser, you should see the title on your page.
Expand Down Expand Up @@ -169,10 +168,8 @@ const data = json.data.home;
}
})
}
```


## Publishing your site

To deploy your website, visit our [deployment guides](/en/guides/deploy/) and follow the instructions for your preferred hosting provider.
Expand All @@ -185,17 +182,25 @@ If your project is using Astro’s default static mode, you will need to set up

To set up a webhook in Netlify:

<Steps>
1. Go to your site dashboard and click on **Build & deploy**.

2. Under the **Continuous Deployment** tab, find the **Build hooks** section and click on **Add build hook**.

3. Provide a name for your webhook and select the branch you want to trigger the build on. Click on **Save** and copy the generated URL.
</Steps>

### Vercel

To set up a webhook in Vercel:

<Steps>
1. Go to your project dashboard and click on **Settings**.

2. Under the **Git** tab, find the **Deploy Hooks** section.

3. Provide a name for your webhook and the branch you want to trigger the build on. Click **Add** and copy the generated URL.
</Steps>

### Adding a webhook to DatoCMS

Expand Down

0 comments on commit 2fff71d

Please sign in to comment.