Welcome to the collaborative construction of Dify documentation! This guide aims to explain the contribution process and specifications for Dify developer documentation, encouraging and assisting community members to collectively improve documentation quality.
At the bottom of the documentation page you wish to modify, click the Edit this page button. This will directly link to the corresponding source file on GitHub.
At the bottom of the documentation page you wish to modify, click the Edit this page button. This will directly link to the corresponding source file on GitHub.
Dify documentation URLs have a clear correspondence with their relative paths in the GitHub repository, which can be referenced by contributors familiar with the structure:
URL (example) | GitHub Repository Relative Path (example) |
---|---|
https://docs.dify.ai/plugin-dev-en/0111-getting-started-dify-plugin | plugin-dev-en/0111-getting-started-dify-plugin.mdx |
When editing, please focus on the accuracy and clarity of the content. The Frontmatter metadata at the beginning of the file and specific scripts or included content at the end are typically managed and maintained by core contributors or through automated processes.
If you find issues with the documentation, you can also report them to us using the Submit an issue button on the page. Accurate issue reporting is an important contribution for both the community and the project.
Create the File
Create a new .mdx
file in the appropriate language directory (e.g., plugin-dev-en
).
You can initially name the file as you wish (e.g., my-new-feature.mdx
), but the filename must be sufficiently descriptive. The system will later generate a standardized filename based on the document’s metadata.
Write the Content
Markdown Syntax Guidelines
Please follow standard Markdown syntax. In MDX files, use JSX-style comments: {/* This is an MDX comment */}
, rather than HTML-style <!-- comment -->
.
Mintlify Components
You can appropriately use components provided by Mintlify to optimize content structure and presentation:
For more components, please refer to the Mintlify components documentation.
Add Frontmatter (Metadata)
Each document needs to define Frontmatter metadata:
Your content contribution is crucial. Even if you don’t provide complete Frontmatter, your Pull Request is still welcome. Ensuring the documentation ultimately has standardized metadata and successful integration is a collaborative effort between the community and the core team.
After completing the editing or creation of new documentation, please submit a Pull Request to the main repository through GitHub. Community members and project maintainers will review your contribution.
Can I contribute to documentation if I don't have a programming background?
Absolutely! Documentation contributions don’t require programming skills. If you have some understanding of Dify, you can help improve the clarity and accuracy of existing documentation, or add more user-friendly explanations and examples.
How can I ensure my contribution is accepted?
Ensure your content is clear, accurate, and follows our formatting guidelines. Check for spelling and grammar before submission. If you’re uncertain, you can discuss your ideas in the community before submitting.
Can I contribute in languages other than English?
Yes! We welcome multilingual documentation contributions. Please ensure your files are placed in the corresponding language directory and correctly labeled with the language code in the Frontmatter.
Thank you for contributing to the Dify community and documentation!
Edit this page | Report an issue