Skip to content

Commit

Permalink
Fix home page images
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Wilson <[email protected]>
  • Loading branch information
cdwilson committed Jan 11, 2024
1 parent f8ae147 commit 6185b4c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
9 changes: 8 additions & 1 deletion website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,14 @@ const config = {
],
],

plugins: ["@docusaurus/plugin-ideal-image"],
plugins: [
[
"@docusaurus/plugin-ideal-image",
{
disableInDev: false,
},
]
],

themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
Expand Down
10 changes: 5 additions & 5 deletions website/src/components/HomepageFeatures.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const FeatureList = [
{
title: 'Learn About Golioth',
link: '/docs/golioth-exploration',
img: require('../../static/img/Golioth_logo_300x300.png').default,
img: require('../../static/img/Golioth_logo_300x300.png'),
description: (
<>
This guide is for Developers to understand the various features of
Expand All @@ -33,7 +33,7 @@ const FeatureList = [
{
title: 'Zephyr Training',
link: '/docs/zephyr-training',
img: require('../../static/img/Zephyr_logo_300x300.png').default,
img: require('../../static/img/Zephyr_logo_300x300.png'),
description: (
<>
Our users find that <a href='https://zephyrproject.org/'>Zephyr RTOS</a>{' '}
Expand All @@ -60,13 +60,13 @@ function Feature({ Svg, img, title, description, link }) {
sources={{
light:
require('../../static/img/API_Training_logo_300x300-coral.png')
.default,
.src.src,
dark: require('../../static/img/API_Training_logo_300x300.png')
.default,
.src.src,
}}
/>
)}
{img && <img width={150} src={img} alt={title} />}
{img && <img width={150} src={img.src.src} alt={title} />}
</a>
</div>
<div className='text--center padding-horiz--md'>
Expand Down

0 comments on commit 6185b4c

Please sign in to comment.