Files
Claude 1c01eb1d32 feat: Support nested documents in templates
Templates can now contain nested templates, so that creating a document
from a template produces a matching document hierarchy.

Backend:
- Add parentDocumentId to the Template model with parent/child
  associations, cycle detection, and child traversal helpers
- templates.create and templates.update accept parentDocumentId; nested
  templates always inherit the collection of their parent
- templates.duplicate recursively copies nested templates
- templates.delete and templates.restore cascade through the subtree
- Moving a root template to another collection moves nested templates
- templates.list supports filtering by parentDocumentId and returns a
  childCount for each template
- documents.create from a template recursively instantiates nested
  templates as child documents when publishing
- documents.templatize accepts a recursive flag to convert a document
  subtree into a nested template tree, preserving structure order

Frontend:
- Templates settings table renders an expandable tree of root templates
- Template editor shows ancestor breadcrumbs and a nested templates
  section with the ability to create nested templates
- New nested template action in template menus
- Templatize dialog offers to include nested documents
- Template pickers only list root templates

Closes outline/outline#8577

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Tn2fWK73sGUVsMZ8XoLAY1
2026-07-09 19:45:02 +00:00
..
2026-06-29 17:11:02 -04:00
2026-06-09 07:43:21 -04:00
2026-02-16 20:14:18 -05:00

Tools are the building blocks of functionality for our internal MCP server.

Each tool is a self-contained unit of functionality that can be invoked by the MCP client to perform a specific task. To test the MCP with Claude in development make sure to run with the following command to ensure that the MCP server trusts the mkcert root CA certificate.

NODE_EXTRA_CA_CERTS=$(mkcert -CAROOT)/rootCA.pem claude