Skip to content

Add RecipeLink component and link to recipes#3005

Merged
delucis merged 27 commits into
mainfrom
recipes-linking
Apr 27, 2023
Merged

Add RecipeLink component and link to recipes#3005
delucis merged 27 commits into
mainfrom
recipes-linking

Conversation

@Jutanium
Copy link
Copy Markdown
Contributor

@Jutanium Jutanium commented Apr 6, 2023

What kind of changes does this PR include?

  • New or updated content
  • Changes to the docs site code

Description

  • Adds a RecipeLink component that accepts recipe slugs and renders link(s) to the recipe(s)
  • Waiting for @ximenavf92's recipe design to undraft this PR

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 6, 2023

Deploy Preview for astro-docs-2 ready!

Name Link
🔨 Latest commit 6335764
🔍 Latest deploy log https://app.netlify.com/sites/astro-docs-2/deploys/644a42a40720a8000842a69f
😎 Deploy Preview https://deploy-preview-3005--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 settings.

Copy link
Copy Markdown
Member

@TheOtterlord TheOtterlord left a comment

Choose a reason for hiding this comment

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

Leaving my 2 cents here. Can't wait to have this component in the docs! The ownership on recipes is amazing

Comment thread src/components/RecipeLinks.astro Outdated
Comment thread src/components/RecipeLinks.astro Outdated
@sarah11918 sarah11918 added site improvement Some thing that improves the website functionality - ask @delucis for help! recipe Best solved by creating a short how-to/example labels Apr 7, 2023
Dan Jutan and others added 2 commits April 8, 2023 08:50
Co-authored-by: Reuben Tier <64310361+TheOtterlord@users.noreply.github.com>
Co-authored-by: Reuben Tier <64310361+TheOtterlord@users.noreply.github.com>
@sarah11918
Copy link
Copy Markdown
Member

Love you jumping in here, @TheOtterlord!

@Jutanium, let's use this draft PR for adding recipe links to the other existing recipes, then consider this one good (even if it doesn't incorporate any design from Ximena yet.) We can make a separate PR to update the RecipeLinks component itself.

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.

Looking good @Jutanium ! I noticed that if there's only one recipe, then everything is all on one line in the component. I think I like that! One small point re: capitalization, but checking through, this all looks good!

Did you want to document using the recipe component in a separate PR?

Comment thread src/components/RecipeLinks.astro Outdated
Dan Jutan and others added 2 commits April 26, 2023 14:36
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Copy link
Copy Markdown
Member

@delucis delucis left a comment

Choose a reason for hiding this comment

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

Thanks for building this out, Dan! Chef Houston is definitely a fun touch to be making an appearance in docs. Made a bunch of suggestions but mostly just cleaning up code and fixing bugs — love the idea in general 🙌

Comment thread src/content/docs/en/core-concepts/endpoints.mdx Outdated
Comment thread src/content/docs/en/guides/content.mdx Outdated
Comment thread src/content/docs/en/guides/imports.mdx Outdated
title: Add an RSS feed
description: Let users subscribe to your content by adding an RSS feed to your Astro site.
i18nReady: true
type: recipe
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.

Is this intentional? Didn’t see any discussion of why we’re making this not a recipe (which means it doesn’t show up in “More recipes”).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not intentional! Thanks so much for catching that

Comment thread src/components/RecipeLinks.astro Outdated
Comment thread src/components/RecipeLinks.astro Outdated
Comment thread src/components/RecipeLinks.astro
Comment thread src/components/RecipeLinks.astro Outdated
Comment thread src/components/RecipeLinks.astro Outdated
Comment thread public/houston_chef.png Outdated
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.

Can we compress this? I’d drop it in https://squoosh.app/, make it 50% smaller (so it’s ~52px wide), and optimize it.

Dan Jutan and others added 16 commits April 27, 2023 10:30
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Comment thread src/components/RecipeLinks.astro Outdated
Copy link
Copy Markdown
Member

@delucis delucis left a comment

Choose a reason for hiding this comment

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

LGTM! 👨‍🍳🤖

@delucis delucis merged commit 829b663 into main Apr 27, 2023
@delucis delucis deleted the recipes-linking branch April 27, 2023 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

recipe Best solved by creating a short how-to/example site improvement Some thing that improves the website functionality - ask @delucis for help!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants