A WordPress block plugin to display documentation files from plugins, themes, and WordPress core.
Try the block instantly in your browser without installing WordPress locally:
# Install dependencies
npm install
composer install
# Start development
npm run start
# Build for production
npm run build
# Run tests
npm run test
# Run linters
composer run lint
composer run analyse
# Create plugin zip
npm run zip- Download the plugin as a ZIP file
- Upload to your
wp-content/plugins/directory - Activate the plugin
You can also install the plugin directly from GitHub using Composer:
composer require mfgmicha/wp-docs-viewer:dev-main --prefer-distOr if you want a specific version/tag:
composer require mfgmicha/wp-docs-viewer:^1.0 --prefer-distThen move the plugin to your wp-content/plugins/ directory:
mv vendor/mfgmicha/wp-docs-viewer wp-content/plugins/Or add this to your composer.json to install directly to the correct location:
"repositories": [
{
"type": "vcs",
"url": "https://github.com/mfgmicha/wp-docs-viewer"
}
],
"require": {
"mfgmicha/wp-docs-viewer": "^1.0"
},
"extra": {
"installer-paths": {
"wp-content/plugins/{$name}/": ["mfgmicha/wp-docs-viewer"]
}
}With the Composer Installers package, the plugin will be automatically installed to the correct location.
Note: When installed via Composer, run composer install to install the Parsedown dependency. Without Composer, the plugin bundles Parsedown in the lib/ folder for standalone use.
GPLv2 or later