Skip to content

Commit

Permalink
Use docusaurus built-in theme image component (#1127)
Browse files Browse the repository at this point in the history
* fix link to retain contextual path

* use docusaurus own API for images

* remove ImageSwitcher src
  • Loading branch information
Odomontois authored May 6, 2023
1 parent 85bfee7 commit 38c9446
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 17 deletions.
14 changes: 9 additions & 5 deletions docs/optics.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,16 @@ Tofu contains its own optics library with some notable features:
Hierarchy
---------

import ImageSwitcher from '../website/src/components/ImageSwitcher.js';
import ThemedImage from '@theme/ThemedImage';

<ThemedImage
alt="Docusaurus themed image"
sources={{
light: '/docs_img/optics-hierarchy.svg',
dark: '/docs_img/optics-hierarchy-dark.svg',
}}
/>

<ImageSwitcher
lightImageSrc="/docs_img/optics-hierarchy.svg"
darkImageSrc="/docs_img/optics-hierarchy-dark.svg"
imageHeight="700"/>

Intuition
---------
Expand Down
12 changes: 0 additions & 12 deletions website/src/components/ImageSwitcher.js

This file was deleted.

0 comments on commit 38c9446

Please sign in to comment.