fix: add reassign keyword to Dynamic Tags section in astro-syntax.mdx#9082
Conversation
The escaping of `style` attribute was in the wrong order.
✅ Deploy Preview for astro-docs-2 ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site 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
|
|
This looks great! I think it will work nicely.
No, and in fact, we need to reindex Algolia manually to see any updates even in live docs (other than the regular weekly crawls) so you were never going to be able to test that. 😄 |
sarah11918
left a comment
There was a problem hiding this comment.
Thank you so much, looks great!
Ah ok, I thought there was a reindex triggered at build time (but not locally... I tested it just in case 😅 ). Thanks for the explanation! |
Apply changes from withastro#9082
This PR is a follow-up to Erika's issue on Discord:
The Dynamic Tags section shows an example of a reassignment but this keyword does not appear so we cannot find the page using the search form. This keyword is important since a reassigned component cannot use
client:directives.With "hydration" the page appears and I don't think we can improve the excerpt (we can't guess what the user hopes to find by using this keyword, this could be in another context).
So this PR will help make the page stand out in search results using the "reassignment" keyword.
Description (required)
Dynamic tagssection to help find the page usingreassignmentin the search form.styleattribute in thedefine:varsbullet point: the double backtick must be around style, not inside. (Typo introduced by... me, sorry 😅 ... my first PR here 🎉 )I don't know if that's enough. I never used Algolia so I don't know how it handles keywords. I'm not sure if this would work with
reassigningorreassignedas well. Currently, usingreassignmentorreassigningdoes not display pages containingreassigned.So I'm not sure we can support all variants but this should work with
reassignandreassignment.Question: Is there a way to generate and use a local index with Algolia? I wanted to test on the dev version, but it seems my changes don't affect the search form so I guess this is a shared index with the production version.
Related issues & labels (optional)