NV oOS Docs Hub discovers, indexes, and renders Markdown documentation in a
GitBook-style single-page app: sidebar navigation, content area, and a
per-page table of contents. Embed it anywhere on your WordPress site via a
shortcode or Gutenberg block.
Out of the box it publishes documentation you upload yourself: drop
Markdown (.md) or text (.txt) files into
wp-content/uploads/nvoos-docs-hub/content/ (subfolders become sections),
rebuild the index, and they appear in the browser. No remote services are
involved.
Optional GitHub import (opt-in, off by default). Enable Remote
Repositories in the settings to import Markdown from any public GitHub
repository — no GitHub account required. This is a documentation-import
service: the plugin fetches files server-side, over HTTPS, and only from
api.github.com and raw.githubusercontent.com, then stores them in a
local cache on your server. No requests are made unless you enable the
setting, configure a repository, and trigger a rebuild. All scripts,
styles, fonts, and images are bundled locally — nothing is loaded from a
remote server. See External Services below for the full disclosure.
Key features:
wp-content/uploads/nvoos-docs-hub/content/ — zero configuration, zero remote calls:::note, :::tip, :::warning, :::danger callout blockswp nvoos-docs rebuild / clear / status[nvoos_docs] shortcode and nvoos/docs-hub Gutenberg blockOptional NV oOS integration. If the NV oOS base plugin
(https://github.com/nvdigitalsolutions/mcp-ai-wpoos) is active, the addon
additionally auto-discovers the docs/ folders of the base plugin and every
installed addon, and surfaces rebuild progress in the base plugin’s cron-status
drawer.
[nvoos_docs section="base" theme="light" search="1" sidebar="1"]
Attributes:
section – Filter to one source: base, addons, or an addon slug.theme – light, dark, or auto (follows OS preference).search – Set to 0 to disable the search box.sidebar – Set to 0 to hide the left sidebar.home – Slug of the default landing page.wp nvoos-docs rebuild # Chunked rebuild (default, runs across WP-Cron ticks)
wp nvoos-docs rebuild --sync # Inline rebuild in a single request (legacy)
wp nvoos-docs sync # Back-compat alias for --sync
wp nvoos-docs rebuild --resume # Resume a stalled or failed rebuild
wp nvoos-docs rebuild --cancel # Cancel an in-flight rebuild
wp nvoos-docs clear # Clear all cached data
wp nvoos-docs status # Show index statistics and rebuild phase<h3>Source Code</h3>
The complete, human-readable source code for this plugin — including the
TypeScript/React source for the bundled assets/dist/docs-hub.js bundle — is
publicly available in the plugin’s GitHub repository:
https://github.com/nvdigitalsolutions/nvoos-docs-hub
The frontend bundle is generated from the src/ directory with esbuild:
npm install — installs the frontend dependencies (React, esbuild, etc.).npm run build — runs node esbuild.config.js --prod and writes theassets/dist/docs-hub.js and assets/dist/docs-hub.css.The repository also contains the WordPress.org packaging and CI pipeline
(.github/workflows/, bin/), the PHPUnit test suite (tests/), and the
.wordpress-org/ listing assets.
The bundled assets/dist/docs-hub.js frontend is built from TypeScript/React
sources in the public repository and includes the following open-source
libraries (all GPL-compatible licenses; MIT unless noted):
Build and test tooling (esbuild, ESLint, TypeScript, Vitest) is not shipped
in the distribution ZIP. The complete dependency graph and its licenses are
listed in package.json and package-lock.json in the public repository.
This plugin provides an optional documentation-import service, disabled
by default: remote requests happen only after an administrator enables
Remote Repositories in the settings, configures at least one repository,
and triggers a rebuild. When enabled, the plugin fetches Markdown files
from public GitHub repositories, stores them locally in the uploads cache,
and renders them in the documentation browser. Fetched content is cached
on your server, so visitors are served from the local cache, not from
GitHub.
All requests are made server-side only, over HTTPS, and only to the two
hosts listed below. Every request is restricted to these hosts (all other
hosts are rejected, including private and reserved IP addresses), carries a
bounded timeout and a 4 MB response-size cap, and only happens after an
administrator has enabled the Remote Repositories setting, configured a
repository, and a rebuild is triggered — manually, via WP-CLI, by the
nightly cron, or automatically when the cache is invalidated (a related
plugin is activated, deactivated, or updated).
No requests are made unless the Remote Repositories setting is enabled and
a repository is configured.
No account is required for public repositories. An optional GitHub
personal access token can be saved in the settings to raise GitHub’s API
rate limits; it is stored server-side and sent only to the two hosts below.
api.github.com — repository and tree metadata used by the file/folderraw.githubusercontent.com — raw Markdown file content fetched duringThe plugin does not send any personal data to these services — it only
fetches the public repository content exactly as GitHub serves it. Rendered
documentation pages display the repository content as authored, which may
include links and images pointing at github.com,
raw.githubusercontent.com, or user-images.githubusercontent.com; those
are loaded by the visitor’s browser directly from the source repository,
not through the plugin or your server.
GitHub Terms of Service:
https://docs.github.com/en/site-policy/github-terms/github-terms-of-service
GitHub Privacy Statement:
https://docs.github.com/en/site-policy/privacy-policies/github-general-privacy-statement