Skip to content

Commit

Permalink
feat: add image zoom capability
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkflame72 committed Dec 12, 2024
1 parent 0033d17 commit 689d1bf
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
6 changes: 4 additions & 2 deletions astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import rehypeMathjax from 'rehype-mathjax';
import remarkMath from 'remark-math';
import starlightLinksValidator from 'starlight-links-validator';
import sitemap from '@astrojs/sitemap';
import starlightImageZoom from 'starlight-image-zoom';

// https://astro.build/config
export default defineConfig({
Expand Down Expand Up @@ -175,6 +176,7 @@ export default defineConfig({
},
},
],
defaultLocale: 'root',
locales: {
root: {
label: 'English',
Expand All @@ -186,14 +188,13 @@ export default defineConfig({
lang: 'mi',
},
},
favicon: '/images/favicon.svg',
head: [
// Add ICO favicon fallback for Safari.
{
tag: 'link',
attrs: {
rel: 'icon',
href: '/images/favicon.ico',
href: '/favicon.ico',
sizes: '32x32',
},
},
Expand All @@ -202,6 +203,7 @@ export default defineConfig({
starlightLinksValidator({
errorOnLocalLinks: false,
}),
starlightImageZoom(),
],
components: {
Hero: './src/components/starlight/Hero.astro',
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"rehype-mathjax": "^6.0.0",
"remark-math": "^6.0.0",
"sharp": "^0.33.1",
"starlight-image-zoom": "^0.9.0",
"starlight-links-validator": "^0.13.0",
"tailwindcss": "^3.4.0"
},
Expand Down
18 changes: 17 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 689d1bf

Please sign in to comment.