Skip to main content

Documentation Browser

The Documentation tab in the admin panel provides a centralized interface for browsing all platform documentation. It dynamically loads documentation metadata from the Docusaurus docs site and presents it in a searchable, filterable card grid. This allows administrators to quickly locate and access relevant documentation without leaving the admin panel.

How It Works

On mount, the Documentation tab fetches metadata for all documentation articles from the /api/documentation/docusaurus-meta endpoint. Each article includes a title, description, category, tags, and a direct URL to the full Docusaurus page. Articles are displayed as cards in a responsive grid layout (1 column on mobile, 2 on medium screens, 3 on large screens).

Searching

The search bar at the top of the tab filters documentation in real time. It matches against three fields on each article:

FieldMatch Type
TitleCase-insensitive substring
DescriptionCase-insensitive substring
TagsCase-insensitive substring on each tag

When a search term is active, a chip appears next to the section heading showing the current search query, and the filtered count is displayed.

Category Filters

Below the search bar, a row of clickable chips allows filtering by documentation category. Selecting a category restricts the displayed articles to that category. Selecting "All" removes the category filter.

CategoryIconColor
AllDescriptionNeutral
Admin SettingsSettingsPrimary
ArchitectureAccount TreeSuccess
DevelopmentCodeWarning
MigrationSwap HorizDanger
API ReferenceApiInfo
AgentsSmart ToyPrimary
FeaturesFeatured Play ListSuccess
Client-SideCodeWarning
AWSCloudInfo
ArtifactsExtensionPrimary
SecuritySecurityDanger
DatabasesStorageInfo
TestingBug ReportWarning
OnboardingSchoolSuccess
FilesFolderNeutral
Tags SearchLocal OfferInfo
GeneralHelpNeutral

Category and search filters can be combined. For example, selecting "Security" and searching for "auth" shows only security-category articles matching "auth."

Documentation Cards

Each documentation card displays:

  • Category icon and color in the card header
  • Title of the article
  • Category chip showing the resolved category name
  • Description summarizing the article content
  • Tags (up to 3 visible, with a "+N more" overflow chip)
  • "Open in Docusaurus" button that opens the full article in a new browser tab

Refresh

A Refresh button next to the search bar re-fetches documentation metadata from the API. This is useful if the Docusaurus site has been updated since the admin panel was loaded. The button shows a loading spinner while the fetch is in progress.

Status Alerts

The tab shows contextual alerts:

ConditionAlert
Documentation loaded successfullyGreen alert showing the total article count
No documentation foundWarning alert advising to check if Docusaurus is running
Fetch errorWarning alert indicating the load failure

Best Practices

  • Use the category filter to narrow results before searching, especially when the documentation set is large.
  • If no documentation appears after a fresh load, verify that the Docusaurus docs site is running and accessible from the current environment.
  • The Refresh button is particularly useful in development environments where documentation content changes frequently.