Skip to content

v3.3.0 - Docs served from the plugin folder by default

Choose a tag to compare

@jeffersonrucu jeffersonrucu released this 15 Aug 22:09
· 8 commits to master since this release

Changed

  • Default docs directory is now the docs bundled with the plugin (src/docs), instead of wp-content/uploads/docsify-docs.

Projects that version their documentation inside the plugin (in src/docs) no longer need any extra configuration: the versioned files are served as is. This also fixes environments where DOCSIFYDOCS_DOCS_DIR was not defined and new pages returned 404 because they only existed in src/docs, not in uploads.

Migration

If you relied on the previous behaviour (docs living in the uploads directory so they survive plugin updates), set the constant in wp-config.php:

define( 'DOCSIFYDOCS_DOCS_DIR', WP_CONTENT_DIR . '/uploads/docsify-docs' );

The docsify_docs_dir filter also still overrides the directory at runtime.