Skip to content

Commit afb9893

Browse files
authored
Merge branch 'dev' into imgrefresh-batch2
2 parents f2e0f5c + eb96fc7 commit afb9893

27 files changed

+687
-117
lines changed

.github/workflows/docs-generate-html.yml

Lines changed: 46 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,59 @@
11

2-
name: "Generate and Publish HTML"
2+
name: "Generate HTML"
33

4+
# edit the list of branches according to your repository
5+
# the list of branches should contain all the branches in your Antora publish playbooks
46
on:
57
push:
68
branches:
79
- 'dev'
10+
- 'main'
11+
- '5.x'
12+
- '4.4'
813
workflow_dispatch:
914

15+
# change `dev` and `main` according to your repository's branch names
16+
# `dev` is the branch you use to build and publish to staging
17+
# `main` is the branch you use to build and publish to neo4j.com/docs
18+
# in some cases, PROD_BRANCH and DEV_BRANCH may be the same branch
1019
env:
11-
PUBLISH_TO: ${{ github.ref == 'refs/heads/main' && 'prod' || 'dev' }}
20+
PROD_BRANCH: 'main'
21+
DEV_BRANCH: 'dev'
1222

1323
jobs:
1424

25+
prepare-ref-env:
26+
name: Set build branch and environments
27+
runs-on: ubuntu-latest
28+
outputs:
29+
build-ref: ${{ steps.set-ref-env.outputs.build-ref }}
30+
environments: ${{ steps.set-ref-env.outputs.environments }}
31+
steps:
32+
- name: Set Build Ref
33+
id: set-ref-env
34+
run: |
35+
if [[ "${GITHUB_REF}" == "refs/heads/${{ env.DEV_BRANCH }}" ]]; then
36+
build_from=${{ env.DEV_BRANCH }}
37+
environments='["dev"]'
38+
else
39+
build_from=${{ env.PROD_BRANCH }}
40+
environments='["prod"]'
41+
fi
42+
# if dev branch = prod branch publish to both
43+
if [[ "${{ env.DEV_BRANCH }}" == "${{ env.PROD_BRANCH }}" ]]; then
44+
environments='["dev","prod"]'
45+
fi
46+
echo "build-ref=${build_from}" >> $GITHUB_OUTPUT
47+
echo "environments=${environments[@]}" >> $GITHUB_OUTPUT
48+
1549
docs-build:
1650
name: Generate HTML
51+
needs: prepare-ref-env
1752
uses: neo4j/docs-tools/.github/workflows/reusable-docs-build.yml@v2
1853
with:
1954
package-script: 'verify:publish'
55+
build-ref: ${{needs.prepare-ref-env.outputs.build-ref}}
56+
fetch-depth: 0
2057

2158
docs-verify:
2259
name: Verify HTML
@@ -27,11 +64,15 @@ jobs:
2764

2865
publish-html:
2966
name: Publish HTML
30-
needs: docs-verify
67+
needs: [docs-verify, prepare-ref-env]
3168
runs-on: ubuntu-latest
3269

70+
strategy:
71+
matrix:
72+
environments: ${{ fromJson(needs.prepare-ref-env.outputs.environments) }}
73+
3374
steps:
34-
- name: Trigger Publish
75+
- name: Publish to ${{ matrix.environments }}
3576
uses: peter-evans/repository-dispatch@bf47d102fdb849e755b0b0023ea3e81a44b6f570 # v2.1.2
3677
with:
3778
token: ${{ secrets.DOCS_DISPATCH_TOKEN }}
@@ -43,5 +84,5 @@ jobs:
4384
"repo": "${{ github.event.repository.name }}",
4485
"run_id": "${{ github.run_id }}",
4586
"args": "--dryrun",
46-
"publish_env": "${{ env.PUBLISH_TO }}"
87+
"publish_env": "${{ matrix.environments }}"
4788
}

modules/ROOT/content-nav.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,25 +155,25 @@
155155
*** xref:clustering/setup/deploy.adoc[]
156156
*** xref:clustering/setup/analytics-cluster.adoc[]
157157
*** xref:clustering/setup/single-to-cluster.adoc[]
158+
*** xref:clustering/setup/reconciler.adoc[]
158159
*** xref:clustering/setup/discovery.adoc[]
159160
*** xref:clustering/setup/routing.adoc[]
160161
*** xref:clustering/setup/encryption.adoc[]
161162
** xref:clustering/servers.adoc[]
163+
** xref:clustering/unbind.adoc[]
162164
** xref:clustering/databases.adoc[]
163165
** Monitoring
164166
*** xref:clustering/monitoring/show-servers-monitoring.adoc[]
165167
*** xref:clustering/monitoring/show-databases-monitoring.adoc[]
166168
*** xref:clustering/monitoring/endpoints.adoc[]
167169
*** xref:clustering/monitoring/status-check.adoc[]
168-
** xref:clustering/disaster-recovery.adoc[]
170+
** Resilient cluster deployment
171+
*** xref:clustering/multi-region-deployment/geo-redundant-deployment.adoc[]
172+
*** xref:clustering/multi-region-deployment/multi-data-center-routing.adoc[]
173+
*** xref:clustering/multi-region-deployment/disaster-recovery.adoc[]
169174
//** xref:clustering/internals.adoc[]
170175
** xref:clustering/settings.adoc[]
171176
** xref:clustering/server-syntax.adoc[]
172-
** xref:clustering/clustering-advanced/index.adoc[]
173-
*** xref:clustering/clustering-advanced/default-database.adoc[]
174-
*** xref:clustering/clustering-advanced/unbind.adoc[]
175-
*** xref:clustering/clustering-advanced/multi-data-center-routing.adoc[]
176-
*** xref:clustering/clustering-advanced/reconciler.adoc[]
177177
** xref:clustering/glossary.adoc[]
178178
179179
* xref:backup-restore/index.adoc[]

modules/ROOT/images/2dc-balanced-membership.svg

Lines changed: 46 additions & 0 deletions
Loading

modules/ROOT/images/2dc-unbalanced-membership.svg

Lines changed: 36 additions & 0 deletions
Loading

modules/ROOT/images/geo-distributed-primaries.svg

Lines changed: 38 additions & 0 deletions
Loading

modules/ROOT/images/geo-distribution-system-db.svg

Lines changed: 112 additions & 0 deletions
Loading

modules/ROOT/images/secondaries-for-read-resilience.svg

Lines changed: 95 additions & 0 deletions
Loading

modules/ROOT/pages/backup-restore/restore-backup.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ The example assumes that you have backup artifacts located in the `myBucket/myDi
271271
+
272272
[source,shell]
273273
----
274-
bin/neo4j-admin database restore --to-path=gs://myBucket/myDirectory/myBackup.backup mydatabase
274+
bin/neo4j-admin database restore --from-path=gs://myBucket/myDirectory/myBackup.backup mydatabase
275275
----
276276
======
277277
@@ -285,7 +285,7 @@ The example assumes that you have backup artifacts located in the `myStorageAcco
285285
+
286286
[source,shell]
287287
----
288-
bin/neo4j-admin database restore --to-path=azb://myStorageAccount/myContainer/myDirectory/myBackup.backup mydatabase
288+
bin/neo4j-admin database restore --from-path=azb://myStorageAccount/myContainer/myDirectory/myBackup.backup mydatabase
289289
----
290290
======
291291
=====

modules/ROOT/pages/clustering/clustering-advanced/default-database.adoc

Lines changed: 0 additions & 61 deletions
This file was deleted.

modules/ROOT/pages/clustering/clustering-advanced/index.adoc

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)