Control who sees your documentation and customize their experience
MDX
contentuser
variable contains information sent to your docs from logged in users. See Sending data for more information.
Example: Hello, !
user
is only available for logged in users. For logged
out users, the value of user
will be {}
. To prevent the page from crashing
for logged out users, always use optional chaining on your user
fields. For
example, {user.org?.plan}
.groups
fields to your pages’ frontmatter. By default, every page is visible to every user.
Users will only see pages for groups
that they are in.