docs(website): add useMicrophone hook documentation#199
Open
oddFEELING wants to merge 1 commit into
Open
Conversation
Add the docs page for useMicrophone in all three locales, the generated API reference, and a hook-registry entry. - docs/browser/useMicrophone.mdx (+ zh-Hans, zh-Hant) with an interactive demo covering stream, level meter, and recording - website-docusaurus/api/useMicrophone-README*.md from `pnpm gend` - scripts/hook-registry.json entry under the browser category
Contributor
Author
|
@childrentime , useMicrophone docs are ready. Please check that the Chinese docs are correct. I wrote in english and used AI to translate. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Follow-up to #198 (the
useMicrophonehook). Adds the documentation that was deliberately deferred from that PR so the hook PR could be reviewed on its own.Summary
docs/browser/useMicrophone.mdxplusdocs-zh-hans/anddocs-zh-hant/translations. Each has a single interactivetsx livedemo covering the full flow: open/close the mic, an animated input-level meter, record/stop, pause/resume, and an<audio>element for playback.website-docusaurus/api/useMicrophone-README*.mdfor the three locales, generated viapnpm gendfrom the hook'sinterface.tsJSDoc. The%%API%%marker on the docs page picks these up.scripts/hook-registry.jsonunder thebrowsercategory so blog posts can link to the canonical URL.llms.txt/llms-full.txtupdated by the website build to include the new hook (113 → 114).Verified locally
cd packages/website-astro && pnpm build— all 462 pages build, including/browser/usemicrophone/and both zh locales.%%API%%marker resolves to the generated options table.eslint .clean.Canonical URL: https://reactuse.com/browser/usemicrophone/