-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Document preview shortcuts #12664
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
base: main
Are you sure you want to change the base?
Document preview shortcuts #12664
Conversation
✅ Deploy Preview for astro-docs-2 ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
Lunaria Status Overview🌕 This pull request will trigger status changes. Learn moreBy default, every PR changing files present in the Lunaria configuration's You can change this by adding one of the keywords present in the Tracked Files
Warnings reference
|
ArmandPhilippot
left a comment
There was a problem hiding this 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!
Co-authored-by: Armand Philippot <[email protected]>
| - 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. |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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." 😂 )
There was a problem hiding this comment.
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!
|
Just made a commit to:
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? |
ArmandPhilippot
left a comment
There was a problem hiding this 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]>
|
LGTM |
yanthomasdev
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
|
Excellent! Seems we're good for 5.16 release here! It's in the milestone, and we'll merge it then. |
bjohansebas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description (required)
Document shortcuts for
astro previewRelated issues & labels (optional)
For Astro version:
5.16. See astro PR withastro/astro#14574.