Skip to content

Commit 0161c1c

Browse files
committed
Add docusaurus-plugin-image-zoom
1 parent d14a93e commit 0161c1c

File tree

7 files changed

+55
-5
lines changed

7 files changed

+55
-5
lines changed

docs/configuration/private-previews.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ To make all previews private by default for all your integrations, follow these
1818
1. Log in to your PushPreview account.
1919
1. Navigate to the **Team** page.
2020
1. Turn on the **Private previews** option.
21+
22+
![Enable private previews](../images/enable-private-previews.png)
23+
2124
1. Save the changes.
2225

2326
This setting ensures that every new preview generated will be private, accessible only to users with the appropriate permissions.
@@ -29,8 +32,15 @@ For more granular control, you can set privacy settings on a per-integration bas
2932
1. Log into your PushPreview account.
3033
1. Navigate to the **Integrations** page.
3134
1. Choose the integration you want to modify.
35+
3236
1. Click **Edit**.
37+
38+
![Edit integration](../images/edit-integration.png)
39+
3340
1. Enable the **Private previews** option.
41+
42+
![Enable private previews](../images/enable-private-previews.png)
43+
3444
1. Save the changes.
3545

3646
This option is ideal for teams that require different privacy levels for various integrations, allowing flexibility and control over who can access specific previews.

docs/images/edit-integration.png

212 KB
Loading
134 KB
Loading
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
To ensure proper functioning of the PushPreview integration in your GitHub repository, follow these steps:
22

3-
![Preview changes](../../images/pushpreview-demo.png)
4-
53
1. Create a new pull request in your GitHub repository.
6-
1. Add the `preview` label to your new pull request.
4+
1. Add the `preview` label to your new pull request. If the label doesn’t exist, [create a new one](https://docs.github.com/en/issues/using-labels-and-milestones-to-track-work/managing-labels#creating-a-label).
5+
6+
![Preview changes](../../images/pushpreview-demo.png)
7+
78
1. Wait briefly for PushPreview to process the pull request and post a comment in the pull request thread.
89
1. Look for a comment from PushPreview containing a preview link. Click this link to view the changes.
910

10-
1111
Congratulations on setting up PushPreview! Your users can now view live previews of changes in pull requests, enhancing collaboration and review efficiency.

docusaurus.config.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ const config = {
6464
buttonPosition: 'center-right',
6565
modalPosition: 'sidebar-right'
6666
}
67-
]
67+
],
68+
'docusaurus-plugin-image-zoom'
6869
],
6970
themeConfig:
7071
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
@@ -90,11 +91,22 @@ const config = {
9091
theme: lightCodeTheme,
9192
darkTheme: darkCodeTheme,
9293
},
94+
95+
zoom: {
96+
selector: '.markdown img',
97+
background: {
98+
light: 'rgb(255, 255, 255)',
99+
dark: 'rgb(50, 50, 50)'
100+
},
101+
config: {
102+
}
103+
}
93104
}),
94105
scripts: [
95106
'https://www.googletagmanager.com/gtag/js?id=G-1TMTNMCLSX',
96107
'/analytics.js'
97108
],
109+
98110

99111
};
100112

package-lock.json

Lines changed: 27 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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"@mdx-js/react": "^1.6.22",
2222
"clsx": "^1.2.1",
2323
"docusaurus-lunr-search": "^2.3.2",
24+
"docusaurus-plugin-image-zoom": "^0.1.4",
2425
"docusaurus-pushfeedback": "^0.1.7",
2526
"prism-react-renderer": "^1.3.5",
2627
"react": "^17.0.2",

0 commit comments

Comments
 (0)