| title | Contributing to Documentation |
|---|---|
| description | Learn how to update and maintain the Reworkd documentation site |
This documentation site is built with Mintlify, a modern documentation platform that makes it easy to create beautiful, user-friendly documentation. Mintlify uses MDX (Markdown with React components) to allow you to write content with simple Markdown syntax while also embedding interactive components when needed.
Key features of Mintlify:
- MDX Support: Write in Markdown with the ability to use React components
- Auto-generated Navigation: Configured through
docs.json - Built-in Components: Cards, frames, tabs, code blocks, and more
- API Reference: Automatically generated from OpenAPI specs
- Dark Mode: Built-in theme support
Learn more at mintlify.com/docs.
To run the documentation site on your local machine:
-
Install Mintlify CLI:
npm i -g mintlify
-
Navigate to the docs directory:
cd docs -
Start the development server:
mintlify dev
-
Open your browser to
http://localhost:3000to view the documentation site.
The development server will automatically reload when you make changes to any documentation files.
- Navigate to the
docs/directory - Find the
.mdxfile you want to edit (e.g.,developers/api-keys.mdx) - Edit the file using Markdown syntax
- Save the file and the changes will automatically appear in your local development server
-
Create a new
.mdxfile in the appropriate directory:- For developer documentation:
docs/developers/ - For feature documentation:
docs/features/ - For general documentation:
docs/
- For developer documentation:
-
Add frontmatter at the top of the file:
--- title: Your Page Title description: A brief description of the page ---
-
Write your content using Markdown and Mintlify components
-
Add the page to navigation by editing
docs/docs.json:{ "group": "Developers", "pages": [ "developers/api-keys", "developers/sdk", "developers/your-new-page" // Add your page here ] }
Mintlify provides several built-in components you can use:
Info/Warning/Tip Callouts:
<Info>
This is an informational callout
</Info>
<Warning>
This is a warning callout
</Warning>
<Tip>
This is a helpful tip
</Tip>Cards:
<CardGroup cols={2}>
<Card title="Card Title" icon="lightbulb" href="/link">
Card description
</Card>
</CardGroup>Code Blocks:
```python
def hello_world():
print("Hello, World!")
```Images:
<Frame>
<img src="/images/your-image.png" />
</Frame>We aim to document the following areas comprehensively:
- Introduction to Reworkd and its core features
- Key concepts and terminology
- Quick start guides and tutorials
- Detailed explanations of each major feature
- Use cases and best practices
- Configuration options and settings
- API authentication and keys
- SDK usage and examples
- Integration guides
- Code samples and snippets
- Endpoint documentation (auto-generated from OpenAPI spec)
- Request/response examples
- Error codes and troubleshooting
When writing documentation, please follow these guidelines:
- Be Clear and Concise: Use simple language and short sentences
- Use Examples: Include code examples and real-world use cases
- Add Screenshots: Visual aids help users understand complex concepts
- Keep It Updated: Update docs when features change
- Test Your Code: Ensure all code examples actually work
- Use Proper Formatting: Follow Markdown best practices
- Link Related Pages: Help users navigate to related content
If you notice missing or outdated documentation, we encourage you to contribute! Here's how:
- Go to the AgentGPT GitHub repository
- Click on the Issues tab
- Click New Issue
- Use the title format:
[Docs] Your documentation request - Describe what documentation is needed or what needs to be updated
- Include relevant links, screenshots, or examples if applicable
If you'd like to contribute documentation directly:
- Fork the repository
- Create a new branch:
git checkout -b docs/your-feature-name - Make your changes to the documentation files in the
docs/directory - Test your changes locally using
mintlify dev - Commit your changes:
git commit -m "docs: add documentation for X" - Push to your fork:
git push origin docs/your-feature-name - Open a Pull Request on GitHub
We appreciate all contributions to improving our documentation!