Contribution Guide
How to contribute to the Diablo Immortal Guide
Contributing to DI Guide
We welcome contributions from the community! This guide will help you get started with contributing to the DI Guide project.
Getting Started
To contribute to the DI Guide project, you'll need to set up a local development environment:
Step 1: Fork and Clone the Repository
Begin by forking our repository on GitHub, then clone your fork:
git clone https://github.com/your-username/di-guide.git
cd di-guide
Step 2: Install Dependencies
Install all necessary project dependencies with pnpm:
pnpm install
Step 3: Run the Development Server
Start the development server to preview your changes:
pnpm dev
The site will be accessible at http://localhost:3000
Adding New Content
Documentation and Guides
Our documentation is written in MDX, which allows you to use React components within Markdown:
- Create a new guide: Add a new directory under
contents/docs/
following the site structure - Add index.mdx file: Create an
index.mdx
file with proper frontmatter:
---
title: Your Guide Title
description: A brief description of your guide
---
# Your Guide Content
Write your guide content here using Markdown and MDX components.
- Update navigation: If needed, update the
lib/routes-config.ts
file to add your guide to the navigation menu
Class Builds
For class build guides, follow this structure:
- Create a new directory under
contents/docs/class-builds/
with the class name (e.g.,barbarian
) - Add content following our established format
- Include sections for abilities, legendary items, set items, and build variations
Content Guidelines
When contributing content, please follow these guidelines:
- Accuracy: Verify all information before submitting
- Clarity: Use clear, concise language
- Formatting: Follow established formatting patterns
- Images: Include relevant screenshots or diagrams when helpful
- Citations: Link to sources for specific information when applicable
Submitting Your Contribution
Step 1: Create a Branch
Create a new branch for your changes:
git checkout -b feature/your-feature-name
Step 2: Make Changes
Make your changes to add or update content.
Step 3: Run Lint
Ensure your changes pass our linting checks:
pnpm lint
Step 4: Commit and Push
Commit your changes with a descriptive message and push to your fork:
git commit -m "Add guide for Barbarian Whirlwind build"
git push origin feature/your-feature-name
Step 5: Create Pull Request
Go to the DI Guide repository and create a pull request from your fork's branch to the main repository.
Code of Conduct
When contributing to the DI Guide project, please follow our code of conduct:
- Be respectful and inclusive in your language
- Focus on factual information and helpful guidance
- Avoid promoting exploits or unintended game mechanics
- Give constructive feedback when reviewing others' contributions
Need Help?
If you need help or have questions about contributing, you can:
- Join our Discord community
- Open an issue on GitHub
Thank you for helping make DI Guide a valuable resource for the Diablo Immortal community!