Summary: Docusaurus 2 is quite a lot more powerful than docu 1 it turns out. This should convert the website fully. * [done] Go through migration guide https://v2.docusaurus.io/docs/migrating-from-v1-to-v2 * [done] Convert landing page html * [done] Convert all images to img tags * [done] Convert all .md files to .mdx * [done] Make sure ui-doc generation and including still works * [done] Scan every page visually for sanity check * [done] Make sure footer still works * [done] Make sure search still works * [done] Change all links/ to links/index * [done] Change all links.md to links * [done] Add some custom css to make the navbar look like the old one and darken the footer. Reviewed By: passy Differential Revision: D21158717 fbshipit-source-id: 5f45b711b1b6fd5ece4c5c15c55635c7ebbfb568
34 lines
1.2 KiB
Plaintext
34 lines
1.2 KiB
Plaintext
---
|
|
id: images-plugin
|
|
title: Images
|
|
---
|
|
import useBaseUrl from '@docusaurus/useBaseUrl';
|
|
|
|
→ [See setup instructions for the images plugin](setup/images-plugin)
|
|
|
|
The images plugin allows you to inspect what images were fetched, where they are
|
|
coming from and selectively clear caches. Currently, the plugin supports
|
|
[Fresco](https://github.com/facebook/fresco/) as backend.
|
|
|
|
<img alt="Images plugin" src={useBaseUrl("img/images-plugin.png")} />
|
|
|
|
## Cache Inspector
|
|
|
|
Images are grouped by the different caching layers they are stored in. The current
|
|
fill rate of the cache is shown and you can choose to selectively clear caches.
|
|
|
|
|
|
## Attribution
|
|
|
|
Images can be annotated with attributes that can help to determine the context in
|
|
which an image was loaded and displayed. You can use that information to filter
|
|
by a particular surface or only inspect images that are in the critical path
|
|
of your application, for instance during cold start.
|
|
|
|
## Leak Tracking
|
|
|
|
Dealing with large resources can require special APIs to be used that circumvent
|
|
usual garbage collection. The plugin allows tracking `CloseableReference`s for
|
|
Fresco on Android that weren't properly closed, which can help you improve
|
|
the performance of your app.
|