Closed justinfagnani closed 4 months ago
A live preview of this PR will be available at the URL(s) below. The latest URL will be appended to this comment on each push. Each build takes ~5-10 minutes, and will 404 until finished.
https://pr1345-1325f46---lit-dev-5ftespv5na-uc.a.run.app/ https://pr1345-6b916de---lit-dev-5ftespv5na-uc.a.run.app/
I suppose it might be overkill to add the same aside to the components/defining and components/properties section too.
I do think there should be a more comprehensive solution, but maybe that looks like an info icon on the samples that triggers a popover with links?
Adds a small note to the component overview that points users to the TypeScript decorator docs.
This is hopefully a small improvement on pointing new readers towards docs that will help them enable decorators correctly. Some users get errors when copying code to their TypeScript projects because they are not enabling experimental decorators and that's what our samples use.
We would ideally note that the TypeScript samples use experimental decorators, and even have a switch between standard and experimental decorators in samples, but that's more work to do and possibly a lot of complexity if not done right. This is a small incremental fix in one place instead.
This adds the ability to have language-specific content to the site by adding selectors that hide content that doesn't match the users preferred code language.
This will only show when the user's preference is TypeScript: