(#1233)(#1234)(#1237) Bump astro and docs to 2.1.0 #1238
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description Of Changes
Motivation and Context
These are fixes and features that can be used on the docs, but also other Astro websites. These are things that have found as we started using the components more and more.
Testing
DynamicCodeBlock Testing
src/content/docs/en-us/why.mdxfile.importstatement at the top of the page:yarn devto start it again). This will ensure the right css classes get pulled in to show validation.whypage you modified in the browser. Notice that the inputs are red, and there is a validation error.<character. Reload the page after entering the<character in an input, and notice it still has quotes around it like it should (previously this would remove the last quote).<DynamicCodeBlockValidation>component, experiment with updating themessageand themessagedata fields that are passed in and see how the content updates.<DynamicCodeBlockValidation>component, remove thetitleandmessageattributes completely, and notice how it defaults to a generic validation error message.Tab Testing
src/content/docs/en-us/faq.mdxfile.yarn devto start it again). This will ensure the right css classes get pulled in to show validation.faqpage you modified in the browser. There is a new tab component at the top of the page. One tab should look disabled, and it is unable to be clicked on. There should be a total of only 4 tabs shown, as we passed in theisHiddenattribute to the 5th tab, even though the source code is in the file, it is not shown in the browser at all.Change Types Made
Change Checklist
Related Issue