Skip to content

Conversation

dummdidumm
Copy link
Member

This adds a note variant, which can be enabled using !LEGACY as the first text. It adds a blockquote using the "deprecated API" look. Additionally, a checkbox is added to the bottom (where the TS toggle was previously) to optionally disable those contents.

The idea is to add legacy syntax inline into the documentation at the appropriate places using these notes, and devs can hide those when unchecking the checkbox. The "Reactivity Fundamentals" page shows how this would look like.

Copy link

vercel bot commented Sep 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
omnisite ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 11, 2024 9:14pm

This adds a note variant, which can be enabled using !LEGACY as the first text. It adds a blockquote using the "deprecated API" look.
Additionally, a checkbox is added to the bottom (where the TS toggle was previously) to optionally disable those contents.

The idea is to add legacy syntax inline into the documentation at the appropriate places using these notes, and devs can hide those when unchecking the checkbox. The "Reactivity Fundamentals" page shows how this would look like.
dummdidumm added a commit that referenced this pull request Sep 12, 2024
This adds a details blocks for legacy mode. If one is toggled, all are toggled. Alternative to #80

The idea is to add legacy syntax inline into the documentation at the appropriate places using these notes, and devs can hide those when unchecking the checkbox. The "Reactivity Fundamentals" page shows how this would look like.
@dummdidumm dummdidumm mentioned this pull request Sep 12, 2024
@Rich-Harris
Copy link
Member

closing in favour of #81

Rich-Harris added a commit that referenced this pull request Sep 24, 2024
* feat: legacy details

This adds a details blocks for legacy mode. If one is toggled, all are toggled. Alternative to #80

The idea is to add legacy syntax inline into the documentation at the appropriate places using these notes, and devs can hide those when unchecking the checkbox. The "Reactivity Fundamentals" page shows how this would look like.

* fix position when toggling other elements

* prevent flash-of-unopened-content

* tweaks

* tweak

* old habits die hard

* add show all/hide all text

* prettier

---------

Co-authored-by: Rich Harris <[email protected]>
@Rich-Harris Rich-Harris deleted the legacy-notes branch October 5, 2024 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants