Skip to content

Commit 8120eb2

Browse files
committed
fix: packages
1 parent 1817362 commit 8120eb2

File tree

3 files changed

+42
-5
lines changed

3 files changed

+42
-5
lines changed

docusaurus.config.ts

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const config: Config = {
3030
defaultLocale: "en",
3131
locales: ["en"],
3232
},
33-
33+
plugins: ["plugin-image-zoom"],
3434
presets: [
3535
[
3636
"classic",
@@ -63,14 +63,14 @@ const config: Config = {
6363
} satisfies Preset.Options,
6464
],
6565
],
66-
66+
themes: ["@saucelabs/theme-github-codeblock"],
6767
themeConfig: {
6868
// Replace with your project's social card
6969
image: "img/docusaurus-social-card.jpg",
7070
navbar: {
71-
title: "My Site",
71+
title: "Basit Jamil",
7272
logo: {
73-
alt: "My Site Logo",
73+
alt: "Basit Jamil Site Logo",
7474
src: "img/logo.svg",
7575
},
7676
items: [
@@ -82,7 +82,7 @@ const config: Config = {
8282
},
8383
{ to: "/blog", label: "Blog", position: "left" },
8484
{
85-
href: "https://github.com/facebook/docusaurus",
85+
href: "https://github.com/ChBasitGill",
8686
label: "GitHub",
8787
position: "right",
8888
},
@@ -137,6 +137,19 @@ const config: Config = {
137137
theme: prismThemes.github,
138138
darkTheme: prismThemes.dracula,
139139
},
140+
imageZoom: {
141+
// CSS selector to apply the plugin to, defaults to '.markdown img'
142+
selector: ".markdown img",
143+
// Optional medium-zoom options
144+
// see: https://www.npmjs.com/package/medium-zoom#options
145+
options: {
146+
margin: 24,
147+
background: "#BADA55",
148+
scrollOffset: 0,
149+
container: "#zoom-container",
150+
template: "#zoom-template",
151+
},
152+
},
140153
} satisfies Preset.ThemeConfig,
141154
};
142155

package-lock.json

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
"@docusaurus/core": "3.6.3",
1919
"@docusaurus/preset-classic": "3.6.3",
2020
"@mdx-js/react": "^3.0.0",
21+
"@saucelabs/theme-github-codeblock": "^0.3.0",
2122
"clsx": "^2.0.0",
23+
"plugin-image-zoom": "github:flexanalytics/plugin-image-zoom",
2224
"prism-react-renderer": "^2.3.0",
2325
"react": "^18.0.0",
2426
"react-dom": "^18.0.0"

0 commit comments

Comments
 (0)