Skip to content

Conversation

@jacobdalamb
Copy link
Contributor

Description (required)

Document shortcuts for astro preview

Related issues & labels (optional)

  • Closes #
  • Suggested label: add-new-content, merge-on-release

For Astro version: 5.16. See astro PR withastro/astro#14574.

@netlify
Copy link

netlify bot commented Nov 4, 2025

Deploy Preview for astro-docs-2 ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 77d893f
🔍 Latest deploy log https://app.netlify.com/projects/astro-docs-2/deploys/690b6ec47456ba00083ead06
😎 Deploy Preview https://deploy-preview-12664--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 project configuration.

@astrobot-houston
Copy link
Contributor

astrobot-houston commented Nov 4, 2025

Lunaria Status Overview

🌕 This pull request will trigger status changes.

Learn more

By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.

You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

File Note
en/reference/cli-reference.mdx Source changed, localizations will be marked as outdated.
Warnings reference
Icon Description
🔄️ The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

Copy link
Member

@ArmandPhilippot ArmandPhilippot left a comment

Choose a reason for hiding this comment

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

I'm mentioning this in case anyone else has the same hesitation (ie. this could be a sign that this needs to move): I'm not sure if this should be displayed after or before the "Since Astro 1.5.0". I guess both works!

Except that hesitation, I left a suggestion due to a rendering issue but thanks, this looks good to me!

@ArmandPhilippot ArmandPhilippot added this to the 5.16.0 milestone Nov 4, 2025
@ArmandPhilippot ArmandPhilippot added improve or update documentation Enhance / update existing documentation (e.g. add example, improve description, update for changes) merge-on-release Don't merge this before the feature is released! (MQ=approved but WAIT for feature release!) minor-release For the next minor release; in the milestone, "merge queue" when approved by Sarah! labels Nov 4, 2025
- o + enter to open your Astro site in the browser.
- q + enter to quit the preview server.

Can be combined with the [common flags](#common-flags) documented below.
Copy link
Member

@sarah11918 sarah11918 Nov 5, 2025

Choose a reason for hiding this comment

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

Now this looks like the hotkeys can be combined with the common flags below. This list should go somewhere else to avoid confusion. I'd actually put it before the note about the Node adapter, which is pretty specific compared to general information about hotkeys.

Copy link
Member

@sarah11918 sarah11918 Nov 5, 2025

Choose a reason for hiding this comment

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

And now that I think about it more, I don't even think we need that Node line at all? I think that was probably introduced when on-demand rendering was new. But it feels totally unnecessary now. What do you think, @ArmandPhilippot ? ("Since Astro v1, it does this thing that everyone totally expects it to do." 😂 )

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, I think it's old enough to no longer say that about Node.

I wasn't totally sure about putting them in common flags though, because they are specific to dev/preview and both doesn't have the exact same hotkeys? (e.g. s + enter only works with dev).

But after reflection, it might simply be a matter of wording, and adding an "Hotkeys" section to the common flags would make them easier to find. Good idea!

@sarah11918
Copy link
Member

sarah11918 commented Nov 5, 2025

Just made a commit to:

  • remove REAAAAALY old "fun fact"
  • clarify that it's the astro preview command that can be combined with flags.

I think this is probably fine, but happy to have any opinions/suggestions to further edit this!

@jacobdalamb @ArmandPhilippot - Anything here you'd change or object to?

Copy link
Member

@ArmandPhilippot ArmandPhilippot left a comment

Choose a reason for hiding this comment

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

Looks good to me!

I left a suggestion because we might need inline code for the hotkeys (as we do in astro dev), I forgot that in my initial review...

Co-authored-by: Armand Philippot <[email protected]>
@jacobdalamb
Copy link
Contributor Author

LGTM

Copy link
Member

@yanthomasdev yanthomasdev left a comment

Choose a reason for hiding this comment

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

LGTM!

@sarah11918
Copy link
Member

Excellent! Seems we're good for 5.16 release here! It's in the milestone, and we'll merge it then.

@sarah11918 sarah11918 added the Merge Queue Approved and ready to be merged (wait for feature release if also labelled M-O-R)! label Nov 6, 2025
Copy link
Contributor

@bjohansebas bjohansebas left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improve or update documentation Enhance / update existing documentation (e.g. add example, improve description, update for changes) Merge Queue Approved and ready to be merged (wait for feature release if also labelled M-O-R)! merge-on-release Don't merge this before the feature is released! (MQ=approved but WAIT for feature release!) minor-release For the next minor release; in the milestone, "merge queue" when approved by Sarah!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants