mirror of
https://github.com/Unleash/unleash.git
synced 2025-03-04 00:18:40 +01:00
Docs(test): try new way of importing images
This commit is contained in:
parent
ad28e39965
commit
b05c4dba5b
@ -2,6 +2,7 @@
|
||||
title: Anatomy of Unleash
|
||||
---
|
||||
import Figure from '@site/src/components/Figure/Figure.tsx'
|
||||
import img1 from '/img/anatomy-of-unleash-environment.png'
|
||||
|
||||
Unleash has many different components on different levels. This guide is here to give you a conceptual overview over how Unleash works. It covers the various components that exist within an Unleash system and how they interact with each other and with external applications. The diagrams are intended to help you understand the fundamental building blocks, such as [projects](../user_guide/projects.md), [environments](../user_guide/environments.md), [variants](../advanced/feature-toggle-variants.md) and, of course, [feature toggles](../reference/feature-toggles.mdx).
|
||||
|
||||
@ -28,7 +29,7 @@ All Unleash instances must have at least one project at any given time. New inst
|
||||
|
||||
Pro and Enterprise customers can create, rename, and delete projects as they wish (as long as there is always **at least one project**). Open-source users, on the other hand, only get access to the default project.
|
||||
|
||||
<Figure caption="Unleash projects (the outer box) contain one or more environments (the inner box)." img="/img/anatomy-of-unleash-environment.png"/>
|
||||
<Figure caption="Unleash projects (the outer box) contain one or more environments (the inner box)." img={img1}/>
|
||||
|
||||
## Environments and project environments
|
||||
|
||||
|
@ -80,7 +80,7 @@ type Props = {
|
||||
const Component: React.FC<Props> = ({ img, alt, caption }) => {
|
||||
return (
|
||||
<figure>
|
||||
<img alt={alt} src={require(`@site/static${img}`).src} />
|
||||
<img alt={alt} src={img.src} />
|
||||
<figcaption>{caption}</figcaption>
|
||||
</figure>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user