Skip to content

Update contentful guide to reflect v10#3882

Merged
TheOtterlord merged 2 commits into
withastro:mainfrom
TheOtterlord:contentful
Jul 27, 2023
Merged

Update contentful guide to reflect v10#3882
TheOtterlord merged 2 commits into
withastro:mainfrom
TheOtterlord:contentful

Conversation

@TheOtterlord
Copy link
Copy Markdown
Member

What kind of changes does this PR include?

  • New or updated content

Description

@netlify
Copy link
Copy Markdown

netlify Bot commented Jul 27, 2023

Deploy Preview for astro-docs-2 ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 5c3051d
🔍 Latest deploy log https://app.netlify.com/sites/astro-docs-2/deploys/64c2afbad232590008c3c1e8
😎 Deploy Preview https://deploy-preview-3882--astro-docs-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

```ts title="src/lib/contentful.ts" ins={2,4-10}
import contentful from "contentful";
import type { Document } from "@contentful/rich-text-types";
```ts title="src/lib/contentful.ts" ins=", { EntryFieldTypes }" ins={3-12}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
```ts title="src/lib/contentful.ts" ins=", { EntryFieldTypes }" ins={3-12}
```ts title="src/lib/contentful.ts" ins="{ EntryFieldTypes }" ins={3-12}

Just checking that you meant to show that you needed to add the comma, too! Judgement call, I'm happy either way as long as it's intentional, and wanted to make it clear that I SAW this! 😄

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep! this is intentional, but I'm open to feedback on this. for consistency, is it a good idea to adopt a pattern of including/excluding this?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm good with this as-is for now!

I only wanted to point it out to make sure that it was known that I DID see it and I DID review it! (Because it might have looked weird on first glance to someone else.) Confirming that I approve!

Copy link
Copy Markdown
Member

@sarah11918 sarah11918 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @TheOtterlord , this is an amazingly fast, helpful contribution for a non-trivial thing! 🙌

Just see my comment below (that you might even be able to ignore) otherwise, let's add to that merge count! 🚀 📈

@TheOtterlord TheOtterlord merged commit f2e2f9b into withastro:main Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CONTENT] - Contentful guide is out of date

2 participants