Search by

Tornado Engine core-module: documentation pages in Administration. Other modules add their own docs.

v0.4.0 2026-11-13 21:02 UTC

This package is auto-updated.

Last update: 2026-11-13 21:03:38 UTC


README

A Tornado Engine core-module: documentation pages at /docs, for people with the docs.view permission (admins, until the Access module says otherwise). Docs adds a menu item through Nav, and Access lists docs.view so roles can grant it.

Adding a doc from a module

Require tornado-engine/docs in your module's composer.json, then add your docs in your service provider's boot():

use TornadoEngine\Docs\Docs;

public function boot(Docs $docs): void
{
    $docs->add('using-notes', 'Using Notes', 'notes::docs.using-notes', order: 50);
}

The view holds the doc's content only. Docs shows it at /docs/using-notes.