Skip to content

docs: add avatar drivers documentation#1

Closed
datlechin wants to merge 5 commits intomainfrom
docs/avatar-drivers
Closed

docs: add avatar drivers documentation#1
datlechin wants to merge 5 commits intomainfrom
docs/avatar-drivers

Conversation

@datlechin
Copy link
Owner

@datlechin datlechin commented Dec 30, 2025

Summary

Documents the avatar driver system introduced in flarum/framework#4130.

This PR adds comprehensive documentation for extension developers who want to create custom avatar providers (Gravatar alternatives, OAuth-based avatars, external services).

Changes

  • ✨ New guide: docs/extend/avatar-drivers.md
  • 📝 Updated sidebar navigation to include avatar drivers
  • 📚 Includes code examples for common use cases (Discord, GitHub)
  • 🎯 Covers basic to intermediate patterns
  • 👨‍💼 Includes admin configuration section

Related

Preview

The guide covers:

  • How avatar drivers work (resolution chain)
  • Implementing DriverInterface
  • Registering custom drivers
  • Admin UI configuration

Checklist

  • Documentation follows existing patterns
  • Code examples are complete and runnable
  • Cross-references added to related docs
  • Sidebar navigation updated

Documents the new avatar driver system introduced in flarum/framework#4130.
Includes implementation guide, examples, and admin configuration.
Copilot AI review requested due to automatic review settings December 30, 2025 02:29
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds comprehensive documentation for Flarum's avatar driver system, enabling extension developers to create custom avatar providers as alternatives to the built-in Gravatar and default drivers.

Key Changes

  • New complete guide for implementing and registering avatar drivers
  • Step-by-step examples including Discord and GitHub integration patterns
  • Coverage of advanced patterns including dependency injection and conditional logic

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
sidebars.js Adds avatar-drivers.md to the Advanced Guides section in alphabetical order
docs/extend/avatar-drivers.md New comprehensive guide covering avatar driver implementation, registration, admin configuration, complete examples, advanced patterns, and testing procedures

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Documents the new avatar driver system introduced in flarum/framework#4130.
Includes implementation guide, examples, and admin configuration.
- Use more direct, technical language
- Remove verbose explanations and marketing-style wording
- Simplify code examples with minimal comments
- Remove redundant sections
- Match tone and word choices from mail.md, filesystem.md, notifications.md
- Reduce file length from ~300 to ~75 lines
@datlechin datlechin closed this Dec 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants