Skip to main content

Sync custom emojis from external providers (Slack, etc.) into MkDocs Material

Project description

External Emojis for MkDocs

Sync custom emojis from Slack, Discord, and more into MkDocs Material

CI Python Version License

Use your organization's custom emojis directly in MkDocs with the familiar :emoji-name: syntax.

Features

  • 🔄 Automatic Sync - Emojis sync during MkDocs build
  • 🔌 Multiple Providers - Slack, Discord, multiple workspaces
  • 🔧 Extensible - Easy to add new providers
  • 💾 Smart Caching - TTL-based caching minimizes API calls
  • 🎯 Filtering - Include/exclude emoji patterns
  • 🖥️ CLI Tools - Manage emojis from the command line
  • Accessible - Screen reader friendly with proper alt text

Quick Start

1. Install

uv add mkdocs-external-custom-emojis
# or: pip install mkdocs-external-custom-emojis

2. Configure

Create emoji-config.toml:

[[providers]]
type = "slack"
namespace = "slack"
token_env = "SLACK_TOKEN"

[[providers]]
type = "discord"
namespace = "discord"
token_env = "DISCORD_BOT_TOKEN"
tenant_id = "DISCORD_GUILD_ID"

[[providers]]
type = "discord"
namespace = "secret_discord"
token_env = "SECOND_DISCORD_BOT_TOKEN"
tenant_id = "SECOND_DISCORD_GUILD_ID"

Set your token:

export SLACK_TOKEN="xoxp-your-token-here"
export DISCORD_BOT_TOKEN="MTIz..."
export DISCORD_GUILD_ID="123456789012345678"
export SECOND_DISCORD_BOT_TOKEN="MTIz..."
export SECOND_DISCORD_GUILD_ID="987654321012345678"

Add to mkdocs.yml:

plugins:
  - external-emojis

markdown_extensions:
  - pymdownx.emoji

3. Use

# Welcome! :partyparrot:

We love cats: :catjam: :shipit:
mkdocs build  # Emojis sync automatically!

CLI

mkdocs-emoji init      # Create config
mkdocs-emoji sync      # Download emojis
mkdocs-emoji list      # List available emojis
mkdocs-emoji validate  # Check configuration

Documentation

📚 Full Documentation

License

MIT License - see LICENSE for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mkdocs_external_custom_emojis-0.3.2.tar.gz (94.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mkdocs_external_custom_emojis-0.3.2-py3-none-any.whl (26.1 kB view details)

Uploaded Python 3

File details

Details for the file mkdocs_external_custom_emojis-0.3.2.tar.gz.

File metadata

File hashes

Hashes for mkdocs_external_custom_emojis-0.3.2.tar.gz
Algorithm Hash digest
SHA256 af9da7cf1f57ceeafc6821615cb820e66d5ef13b3d0fb1d4580952647610048d
MD5 43ab217d33f4984707e6e1f2efe7a92a
BLAKE2b-256 5a828247c2cd0b7189da5e1ed90b415b78631d6b2e9877f920b42b4bad9cca43

See more details on using hashes here.

Provenance

The following attestation bundles were made for mkdocs_external_custom_emojis-0.3.2.tar.gz:

Publisher: publish.yml on julie-dujardin/mkdocs-external-custom-emojis

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mkdocs_external_custom_emojis-0.3.2-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocs_external_custom_emojis-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3f29010d55d0a9e35efda2734ac792a062b541a76fb6fc9e27938ce57f7e9e37
MD5 4972bec23880bcea0a0008f0b97fec98
BLAKE2b-256 8533508f6cde85b89cd7d177b9d26bf1574c6143bb722d6bfed93cfba716fc13

See more details on using hashes here.

Provenance

The following attestation bundles were made for mkdocs_external_custom_emojis-0.3.2-py3-none-any.whl:

Publisher: publish.yml on julie-dujardin/mkdocs-external-custom-emojis

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page