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

Add Steps component to buttercms.mdx #8084

Merged
merged 1 commit into from
May 2, 2024
Merged
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
5 changes: 3 additions & 2 deletions src/content/docs/en/guides/cms/buttercms.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ service: ButterCMS
stub: false
i18nReady: true
---
import { Steps } from '@astrojs/starlight/components';
import PackageManagerTabs from '~/components/tabs/PackageManagerTabs.astro'



[ButterCMS](https://buttercms.com/) is a headless CMS and blog engine that allows you to publish structured content to use in your project.

## Integrating with Astro
Expand All @@ -28,6 +27,7 @@ To get started, you will need to have the following:

### Setup

<Steps>
1. Create a `.env` file in the root of your project and add your API token as an environment variable:

```ini title=".env"
Expand Down Expand Up @@ -64,6 +64,7 @@ To get started, you will need to have the following:

export const butterClient = Butter(import.meta.env.BUTTER_TOKEN);
```
</Steps>

**This authenticates the SDK using your API Token and exports it to be used across your project.**

Expand Down
Loading