Skip to content

Commit 0107b4a

Browse files
committed
Initial commit
0 parents  commit 0107b4a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+25906
-0
lines changed

.github/workflows/gh-pages.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy:
10+
name: Deploy to GitHub Pages
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-node@v3
15+
with:
16+
node-version: 18
17+
cache: npm
18+
19+
- name: Install dependencies
20+
run: npm install
21+
- name: Build website
22+
run: npm run build
23+
24+
# Popular action to deploy to GitHub Pages:
25+
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
26+
- name: Deploy to GitHub Pages
27+
uses: peaceiris/actions-gh-pages@v3
28+
with:
29+
github_token: ${{ secrets.GITHUB_TOKEN }}
30+
# Build output to publish to the `gh-pages` branch:
31+
publish_dir: ./build

.gitignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Dependencies
2+
/node_modules
3+
4+
# Production
5+
/build
6+
7+
# Generated files
8+
.docusaurus
9+
.cache-loader
10+
11+
# Misc
12+
.DS_Store
13+
.env.local
14+
.env.development.local
15+
.env.test.local
16+
.env.production.local
17+
18+
npm-debug.log*
19+
yarn-debug.log*
20+
yarn-error.log*

README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Website
2+
3+
This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator.
4+
5+
### Installation
6+
7+
```
8+
$ yarn
9+
```
10+
11+
### Local Development
12+
13+
```
14+
$ yarn start
15+
```
16+
17+
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
18+
19+
### Build
20+
21+
```
22+
$ yarn build
23+
```
24+
25+
This command generates static content into the `build` directory and can be served using any static contents hosting service.
26+
27+
### Deployment
28+
29+
Using SSH:
30+
31+
```
32+
$ USE_SSH=true yarn deploy
33+
```
34+
35+
Not using SSH:
36+
37+
```
38+
$ GIT_USER=<Your GitHub username> yarn deploy
39+
```
40+
41+
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.

babel.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
3+
};

docs/configuration/_category_.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"label": "Configuration",
3+
"position": 3,
4+
"link": {
5+
"type": "generated-index",
6+
"description": "Step-by-step configuration guides for customizing the preview generation."
7+
}
8+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
sidebar_position: 1
3+
---
4+
5+
import GitHubSecret from '../installation/_partials/github-secret.mdx';
6+
7+
# Authentication
8+
9+
PushPreview leverages an API key for secure and automated preview generation across your projects.
10+
This key, once generated, can be used accross multiple repositories, facilitating a unified preview deployment across various projects.
11+
12+
## Generate the PushPreview API Key
13+
14+
To obtain an API key, follow these steps:
15+
16+
1. Log into your PushPreview account.
17+
18+
1. Navigate to the **Teams** tab.
19+
20+
1. Under the **API Keys** section, click on **Create API Key**.
21+
22+
1. The generated API key will be displayed for you to copy. Remember to save this key securely, as it will only be displayed once and cannot be retrieved later.
23+
24+
## Integration with projects
25+
26+
<GitHubSecret />
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
sidebar_position: 2
3+
---
4+
5+
# Private previews
6+
7+
Previews generated through PushPreview are public by default, allowing anyone with the link to access them. However, for added security or to maintain confidentiality, PushPreview provides an option to set these previews to be private. This ensures that only authorized viewers can see them, making it a crucial feature for sensitive or confidential projects.
8+
9+
Private previews work by restricting access to users who have `READ` permissions over the repository linked to the preview.
10+
This means that only team members or collaborators with the necessary permissions can view the private previews.
11+
12+
There are two ways to enable private previews: setting them as private by default for your entire team or marking individual integrations as private.
13+
14+
## Enable private previews by default
15+
16+
To make all previews private by default for all your integrations, follow these steps:
17+
18+
1. Log in to your PushPreview account.
19+
1. Navigate to the **Team** page.
20+
1. Turn on the **Private previews** option.
21+
1. Save the changes.
22+
23+
This setting ensures that every new preview generated will be private, accessible only to users with the appropriate permissions.
24+
25+
## Mark individual integrations as private
26+
27+
For more granular control, you can set privacy settings on a per-integration basis:
28+
29+
1. Log into your PushPreview account.
30+
1. Navigate to the **Integrations** page.
31+
1. Choose the integration you want to modify.
32+
1. Click **Edit**.
33+
1. Enable the **Private previews** option.
34+
1. Save the changes.
35+
36+
This option is ideal for teams that require different privacy levels for various integrations, allowing flexibility and control over who can access specific previews.
37+

docs/images/pushpreview-demo.png

239 KB
Loading

docs/installation/_category_.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"label": "Installation",
3+
"position": 2,
4+
"link": {
5+
"type": "generated-index",
6+
"description": "Step-by-step installation guides for a range of programming languages and frameworks."
7+
}
8+
}

docs/installation/_draft/antora.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
sidebar_label: Antora
3+
---
4+
5+
# Pull request previews for Antora
6+
7+
Here's a step-by-step guide to help you install PushPreview in your Antora project using NPM.
8+
9+
## Prerequisites
10+
11+
Before you begin, you'll need to have the following:
12+
13+
- A PushPreview account. If you don't have one, [sign up for free](https://app.pushpreview.com/accounts/signup/).
14+
- An Antora site created.
15+
16+
## Installation
17+
18+
To integrate the PushPreview into your Antora site:
19+

0 commit comments

Comments
 (0)