diff --git a/docs/contributors/documentation/README.md b/docs/contributors/documentation/README.md index 17f5013c03cabe..5be38844d9155a 100644 --- a/docs/contributors/documentation/README.md +++ b/docs/contributors/documentation/README.md @@ -186,6 +186,28 @@ An example config for using Visual Studio Code and the Prettier extensions: Depending on where you are viewing this document, the brackets may show as double. The proper format is just a single bracket. +### Images + +Images displayed in the Block Editor Handbook must be hosted in the [developer.wordpress.org](https://developer.wordpress.org/) Media Library, not linked from GitHub. + +Images linked directly from GitHub (for example, URLs starting with `https://raw.githubusercontent.com`) are subject to rate limiting and can fail to load once the documentation is synced to the Block Editor Handbook. Hosting them in the Media Library avoids this. + +To add an image: + +1. Upload the image to the Media Library on developer.wordpress.org. This requires additional permissions—if you don't have access, ask in the `#docs` channel in [Make WordPress Slack](https://make.wordpress.org/chat) for assistance. +2. Copy the URL of the uploaded image. It should look something like `https://developer.wordpress.org/files/2026/06/your-image.png`. +3. Reference the image in markdown using that URL, with descriptive alt text. + +For example: + +```md +![Descriptive alt text](https://developer.wordpress.org/files/2026/06/your-image.png) +``` + +
+The Media Library does not accept SVG uploads. If an SVG is displayed in the handbook, upload a raster version (such as a PNG) to the Media Library and reference that. Only keep an SVG in the repository and link to it directly when it is meant to be downloaded (for example, a logo offered as a vector file)—a download link isn't fetched on every page render, so it isn't affected by the rate limiting. +
+ ### Video embeds Videos in the Block Editor Handbook need to be hosted on the [WordPress YouTube channel](https://www.youtube.com/@WordPress) as unlisted videos. This process requires additional permissions. Reach out in the #marketing Slack channel for assistance.