This document helps you quickly define core metadata for Dify developer documentation. Correctly filling out these fields is key to implementing automated document structure and sorting.
Provide your document and the content from dimensions system explained to your preferred large language model, and request it to generate appropriate Frontmatter.
3
Manual refinement
Based on actual circumstances and the detailed explanations below, make necessary adjustments and optimizations to the generated metadata.
Read the detailed instructions below and define appropriate metadata fields based on the characteristics of your document content.
Please add the following YAML Frontmatter at the beginning of each Markdown document:
Copy
---# --- Core System Metadata (affects structure and sorting) ---dimensions: type: primary: <see options below> detail: <see options below> level: <see options below>standard_title: 'Descriptive title in English, used for filename generation' # e.g., 'Getting Started Dify Plugin'language: 'en' # or 'zh', 'ja', etc. (ISO 639-2 code)# --- Page Content Metadata (optional but recommended) ---title: 'H1 title or page title of the document'description: 'Brief SEO description of the document content'# summary: 'More detailed summary (optional)'# tags: ['keywords'] (optional)---
Use English to clearly describe the core content of the document. The system will use this to generate part of the filename (e.g., Getting Started Dify Plugin).
---dimensions: type: primary: conceptual detail: introduction level: beginnerstandard_title: 'Getting Started Dify Plugin'language: entitle: 'Welcome to Dify Plugin Development'description: 'Introduction to Dify plugin concepts, functionality, and development value, including a brief explanation of plugin types and an overview of developer documentation content.'---
Example Interpretation: The first example is a beginner-oriented introductory document about Dify plugin concepts in English. The system will automatically place it correctly in the document structure based on the metadata.
Run tools/main_docs_bundle.py, and the document will automatically complete the following operations based on the Frontmatter:
1
Rename Files
The system will automatically generate standardized filenames based on dimensions and standard_title.
2
Update Navigation
Documents will be automatically injected into the docs.json navigation configuration.
3
Add Interactive Components
Automatically refresh contribution and feedback buttons and other interactive components.
When developing documentation in a local environment, it’s recommended to run this script to ensure document configurations take effect correctly.
If you edit directly on GitHub, don’t worry about the automation steps. We have configured GitHub Actions and other automation tools to automatically execute tools/main_docs_bundle.py in the following situations:
When you submit a Pull Request
When your changes are merged into the main branch
You can focus on content creation, and the GitHub workflow will handle technical details such as file renaming, navigation updates, and interactive component generation.
Want to learn more?
If you’re interested in the design philosophy of the Dimensions system, the complete details of the sorting mechanism, or roles and governance, please read the full Dimensions system detailed explanation document.