NV oOS Docs Hub

NV oOS Docs Hub

Details
View on WordPress

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:

  • Publish Markdown uploaded to wp-content/uploads/nvoos-docs-hub/content/ — zero configuration, zero remote calls
  • Optional import from public GitHub repositories with per-repo file/folder selection
  • Full-text search via the REST API with FlexSearch client-side fallback
  • GitHub Flavored Markdown: tables, task lists, fenced code blocks
  • Custom :::note, :::tip, :::warning, :::danger callout blocks
  • Syntax-highlighted code blocks, last-modified dates, and “Edit on GitHub” links
  • Broken-link detection with one-click fix suggestions (local sources)
  • Light and dark themes with CSS custom properties
  • Two-layer cache (filesystem + WordPress transients)
  • Async chunked rebuilds with a live progress panel — no more long single-request builds
  • WP-CLI support: wp nvoos-docs rebuild / clear / status
  • Nightly cron rebuild; also triggered on plugin activate/deactivate
  • Indexed pages included in the WordPress sitemap
  • [nvoos_docs] shortcode and nvoos/docs-hub Gutenberg block

Optional 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.

Shortcode

[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-CLI

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:

  1. npm install — installs the frontend dependencies (React, esbuild, etc.).
  2. npm run build — runs node esbuild.config.js --prod and writes the
    minified assets/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.

Third-Party Libraries

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):

  • React and React DOM (MIT) — https://react.dev
  • React Markdown (MIT) — https://github.com/remarkjs/react-markdown
  • React Router (MIT) — https://reactrouter.com
  • FlexSearch (Apache-2.0) — https://github.com/nextapps-de/flexsearch
  • Lowlight and highlight.js language grammars (MIT / BSD-3-Clause)
  • The unified/remark/rehype ecosystem: remark-gfm, remark-directive,
    remark-frontmatter, rehype-slug, rehype-autolink-headings,
    rehype-highlight, unist-util-visit (MIT) and github-slugger (ISC)

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.

External Services

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/folder
    picker and the indexer.
  • raw.githubusercontent.com — raw Markdown file content fetched during
    index rebuilds.

The 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

Details

Plugin code:
nvoos-docs-hub
Plugin version:
0.5.1
Outdated:
No
WP version:
6.0 or higher
PHP version:
7.4 or higher
Test up to WP version:
7.1.3
Total installations:
0
Last updated:
2026-10-07
Rating:
Times rated:
0
documentation
github
markdown