Skip to content
Discussion options

You must be logged in to vote

We have many hooks, but those undoucmented are considered internal and not part of the public API surface.

We may try to maintain retrocompatibility on most of them (because some users swizzle our React components), but with no guarantee. Documenting them all and exposing them as public api surface limits our ability to change things without releasing a new major version.

See also our release process: https://docusaurus.io/community/release-process

This hook may be what you look for, and afaik we don't plan to refactor it in the near future:

import {useDoc} from '@docusaurus/plugin-content-docs/client';

const {metadata} = useDoc();

You can find similar hooks exposed in other plugins (@do…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@peterpeterparker
Comment options

@slorber
Comment options

slorber Sep 9, 2025
Collaborator

Answer selected by peterpeterparker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants