* docs: 1.14 fixes for HITL events and Creator Center env vars (#764) * docs: reorganize chatflow API tags and surface workflow_run_id * refactor: update internal tooling for dify-graphon repo split * fix: surface workflow_run_id in HITL stream events * chore: tighten env-vars skill source-of-truth rule * docs: document Creator Center env vars * fix: use language-prefixed paths for non-api-reference links * fix: drop redundant workflow_run_id from workflow HITL events * fix: drop format uuid from chatflow HITL workflow_run_id * docs: small fixes for self-host, workspace, and CJK disclaimers (#765) * docs: shorten docker-compose section headings * docs: update Team plan limit and remove Dataset Operator role * fix: correct Japanese translation errors in workspace docs * style: align AI translation disclaimers with CJK spacing rules * style: add missing space between disclaimer link and particle in ja docs * fix: point zh general-specifications disclaimer to en source * fix: drop format uuid from chatflow workflow paused event
3.2 KiB
Dify Documentation — AI Agent Instructions
Documentation for Dify, built with Mintlify. English is the source language; Chinese and Japanese translations are generated automatically. Exception: en/self-host/configuration/environments.mdx is excluded from the translation pipeline and must be translated manually.
For documentation tasks, read these guides before starting:
writing-guides/style-guide.md— Voice, tone, writing patternswriting-guides/formatting-guide.md— MDX formatting, Mintlify componentswriting-guides/glossary.md— Standardized terminology
For task-specific guidance, see writing-guides/index.md.
Key Rules
- Write in English only, except when specifically optimizing Chinese or Japanese translations.
- Only edit the English section in
docs.json. Translation sections sync automatically. - MDX files require
titleanddescriptionin YAML frontmatter. - When writing about a feature, verify behavior against the Dify codebase, not just existing docs. Existing docs may be outdated or completely wrong. When rewriting a page, treat every claim in the original as unverified. Check field names, types, required/optional status, and behavior descriptions against the current code. Never carry forward details from legacy docs without independent verification. The backend is split across two repos: built-in workflow nodes, the graph engine, runtime, and model_runtime live in the
graphonrepo (version-pinned indify/api/pyproject.toml); integration nodes (Agent, Knowledge, Datasource, Trigger), orchestration, RAG, and tools stay indify. Verify against the graphon version actually pinned by dify, not graphonmain. - For new features, the user may specify a development branch. Code on development branches may be in flux—when behavior is ambiguous, ask rather than assume.
- When adding or updating internal-only instructions, tooling, configs, or other non-public files, ensure all paths that should not be exposed by Mintlify are covered in
.mintignore. - Never use
--no-verifywhen committing.
Repository Structure
en/, zh/, ja/ Documentation content (en is source) writing-guides/ Style guide, formatting guide, glossary tools/translate/ Translation pipeline and language-specific formatting .claude/skills/ Documentation writing skills (auto-discovered) docs.json Navigation structure
Development
mintlify dev Local preview at localhost:3000
Commit and PR Title Conventions
{type}: {description} — lowercase, imperative, no trailing period, under 72 chars.
| Type | When | Example |
|---|---|---|
docs |
New or updated content | docs: add workflow node configuration guide |
fix |
Typos, broken links, incorrect info | fix: correct broken link in knowledge base page |
feat |
Tooling or structural changes | feat: add search index to knowledge section |
refactor |
Reorganization without content changes | refactor: restructure knowledge base section |
translate |
Translation additions or updates | translate: update Japanese workflow pages |
style |
Formatting-only changes | style: fix heading levels in plugin guide |
chore |
Dependencies, config | chore: bump mintlify to 4.0.710 |