Skip to content

Commit a592793

Browse files
fcanovaileonardocegbartolini
authored
docs: publish docs with docusaurus (#268)
Rework the documentation to be a static website instead of just the GitHub README.md. Use docusaurus to create the website, and the CI to publish to GitHub pages on commits to main. Block `release-please` releases unless the documentation for that version has been generated. Closes #244 Signed-off-by: Francesco Canovai <[email protected]> Signed-off-by: Gabriele Bartolini <[email protected]> Co-authored-by: Leonardo Cecchi <[email protected]> Co-authored-by: Gabriele Bartolini <[email protected]>
1 parent 940f396 commit a592793

Some content is hidden

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

58 files changed

+19600
-347
lines changed

.github/workflows/publish-docs.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# This workflow builds and deploys the Docusaurus documentation to GitHub Pages
2+
# when changes are pushed to the main branch.
3+
name: Deploy Docusaurus to GitHub Pages
4+
5+
on:
6+
push:
7+
branches:
8+
- main
9+
paths:
10+
- 'web/docs/**'
11+
12+
# Prevent parallel deployments when multiple commits are pushed to main
13+
# in a short time.
14+
concurrency:
15+
group: "pages"
16+
cancel-in-progress: false
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
permissions:
22+
contents: read
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
27+
- name: Setup Node
28+
uses: actions/setup-node@v4
29+
with:
30+
# Use the latest LTS version of Node.js already installed on the runner.
31+
node-version: latest
32+
check-latest: 'false'
33+
cache: yarn
34+
cache-dependency-path: web/package-lock.json
35+
36+
- name: Setup Pages
37+
uses: actions/configure-pages@v4
38+
39+
- name: Install dependencies
40+
working-directory: web
41+
run: yarn install --frozen-lockfile --non-interactive
42+
43+
- name: Build website
44+
working-directory: web
45+
run: yarn build
46+
47+
- name: Upload artifact
48+
uses: actions/upload-pages-artifact@v3
49+
with:
50+
path: web/build
51+
52+
deploy:
53+
permissions:
54+
pages: write
55+
id-token: write
56+
environment:
57+
name: github-pages
58+
url: ${{ steps.deployment.outputs.page_url }}
59+
needs: build
60+
runs-on: ubuntu-latest
61+
steps:
62+
- name: Deploy to GitHub Pages
63+
id: deployment
64+
uses: actions/deploy-pages@v4

.wordlist.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ BarmanObjectStore
33
BarmanObjectStoreConfiguration
44
BarmanObjectStores
55
CloudNativePG
6+
Docusaurus
67
EnvVar
78
Gi
89
IfNotPresent
@@ -13,6 +14,7 @@ ObjectStore
1314
ObjectStoreSpec
1415
ObjectStoreStatus
1516
PITR
17+
README
1618
RecoveryWindow
1719
RetentionPolicy
1820
ServerRecoveryWindow
@@ -42,12 +44,14 @@ gcs
4244
gf
4345
github
4446
hostpath
47+
http
4548
https
4649
imagePullPolicy
4750
io
4851
isWALArchiver
4952
kubectl
5053
kubernetes
54+
localhost
5155
md
5256
minio
5357
namespace

0 commit comments

Comments
 (0)