Skip to content

Commit 9825513

Browse files
authored
Release/3.3 module refactoring (#912)
* Step 1 refactor: move ROOT/pages/subdirectories to ROOT/module also mv partials to ROOT/partials * first batch of xref rewrites * pass 2 xref rewrite * manual xref change * xref ROOT links * manual refactor * ROOT:partial * manual update 2 files duplicate page-aliases * update page-aliases * image: replacement * define_page_index * ROOT files in index * manual tweaks * preview with highlight-broken-links * rename yml * manual fixes release-notes, logging, sync-function * more manual fixes * more manual fixes * unresolved includes * update preview omits sgw 2.7 as that link to Star Channel is currently broken on prod also.
1 parent 0c2ff4c commit 9825513

File tree

220 files changed

+1178
-1165
lines changed

Some content is hidden

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

220 files changed

+1178
-1165
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ $RECYCLE.BIN/
9393
# Build results
9494
[Dd]ebug/
9595
[Dd]ebugPublic/
96-
[Rr]elease/
9796
[Rr]eleases/
9897
x64/
9998
x86/
@@ -416,4 +415,4 @@ modules/ROOT/assets/attachments/.DS_Store
416415

417416
#OpenAPI Generator files
418417
.openapi-generator
419-
.openapi-generator-ignore
418+
.openapi-generator-ignore

modules/ROOT/nav.adoc

Lines changed: 98 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -1,148 +1,148 @@
11
//
22

3-
* xref:introduction.adoc[Introduction]
3+
* xref:ROOT:introduction.adoc[Introduction]
44
55
//
66

77
//
88

9-
* xref:whatsnew.adoc[pass:q,a[*_New in {release}_*]]
9+
* xref:ROOT:whatsnew.adoc[pass:q,a[*_New in {release}_*]]
1010
1111
//
1212

1313
.Start Here!
14-
// * xref:index.adoc[Quick Links]
15-
* xref:start-here/get-started-prepare.adoc[Prepare]
16-
* xref:start-here/get-started-install.adoc[Install]
17-
* xref:start-here/get-started-verify-install.adoc[Verify]
14+
// * xref:ROOT:index.adoc[Quick Links]
15+
* xref:start-here:get-started-prepare.adoc[Prepare]
16+
* xref:start-here:get-started-install.adoc[Install]
17+
* xref:start-here:get-started-verify-install.adoc[Verify]
1818
1919
//
2020

21-
* xref:data-modeling.adoc[Data Modeling]
21+
* xref:ROOT:data-modeling.adoc[Data Modeling]
2222
2323
//
2424

2525
.Configuration
26-
* xref:configuration/configuration-overview.adoc[Overview]
27-
* xref:configuration/configuration-schema-bootstrap.adoc[Bootstrap]
28-
* xref:configuration/configuration-schema-database.adoc[Database]
29-
** xref:configuration/scopes-and-collections-config.adoc[Scopes and Collections Configuration for Sync Gateway]
30-
* xref:configuration/configuration-schema-db-security.adoc[Database Security]
31-
* xref:configuration/configuration-schema-access-control.adoc[Access Control]
32-
* xref:configuration/configuration-schema-import-filter.adoc[Import Filter]
33-
* xref:configuration/configuration-schema-isgr.adoc[Inter-Sync Gateway Replication]
34-
* xref:configuration/configuration-properties-legacy.adoc[Legacy Pre-3.0 Configuration]
35-
* xref:configuration/configuration-javascript-functions.adoc[Javascript Functions]
36-
* xref:configuration/configuration-environment-variables.adoc[Environment Variables]
26+
* xref:configuration:configuration-overview.adoc[Overview]
27+
* xref:configuration:configuration-schema-bootstrap.adoc[Bootstrap]
28+
* xref:configuration:configuration-schema-database.adoc[Database]
29+
** xref:configuration:scopes-and-collections-config.adoc[Scopes and Collections Configuration for Sync Gateway]
30+
* xref:configuration:configuration-schema-db-security.adoc[Database Security]
31+
* xref:configuration:configuration-schema-access-control.adoc[Access Control]
32+
* xref:configuration:configuration-schema-import-filter.adoc[Import Filter]
33+
* xref:configuration:configuration-schema-isgr.adoc[Inter-Sync Gateway Replication]
34+
* xref:configuration:configuration-properties-legacy.adoc[Legacy Pre-3.0 Configuration]
35+
* xref:configuration:configuration-javascript-functions.adoc[Javascript Functions]
36+
* xref:configuration:configuration-environment-variables.adoc[Environment Variables]
3737

3838
.Security
39-
* xref:security/secure-sgw-access.adoc[Secure Access]
40-
* xref:security/authentication-users.adoc[User Authentication]
41-
* xref:security/authentication-certs.adoc[TLS Cert Authentication]
42-
* xref:security/audit-logging.adoc[]
43-
** xref:security/manage-audit-logs.adoc[]
44-
** xref:security/audit-log-events.adoc[]
39+
* xref:security:secure-sgw-access.adoc[Secure Access]
40+
* xref:security:authentication-users.adoc[User Authentication]
41+
* xref:security:authentication-certs.adoc[TLS Cert Authentication]
42+
* xref:security:audit-logging.adoc[]
43+
** xref:security:manage-audit-logs.adoc[]
44+
** xref:security:audit-log-events.adoc[]
4545

4646
.Access Control
47-
* xref:access-control/access-control-concepts.adoc[Concepts]
48-
** xref:access-control/access-control-model.adoc[Access Control Model]
49-
** xref:access-control/channels.adoc[Channels]
50-
** xref:access-control/roles.adoc[Roles]
51-
** xref:access-control/users.adoc[Users]
52-
* xref:access-control/sync-function/sync-function.adoc[Sync Function]
53-
** xref:access-control/sync-function/sync-function-api.adoc[API Reference]
54-
*** xref:access-control/sync-function/sync-function-api-access-cmd.adoc[access()]
55-
*** xref:access-control/sync-function/sync-function-api-channel-cmd.adoc[channel()]
56-
*** xref:access-control/sync-function/sync-function-api-expiry-cmd.adoc[expiry()]
57-
*** xref:access-control/sync-function/sync-function-api-require-access-cmd.adoc[requireAccess()]
58-
*** xref:access-control/sync-function/sync-function-api-require-admin-cmd.adoc[requireAdmin()]
59-
*** xref:access-control/sync-function/sync-function-api-require-role-cmd.adoc[requireRole()]
60-
*** xref:access-control/sync-function/sync-function-api-require-user-cmd.adoc[requireUser()]
61-
*** xref:access-control/sync-function/sync-function-api-role-cmd.adoc[role()]
62-
*** xref:access-control/sync-function/sync-function-api-throw-cmd.adoc[throw()]
63-
* xref:access-control/access-control-how.adoc[How-to]
64-
** xref:access-control/access-control-how-create-users.adoc[Create Users]
65-
** xref:access-control/access-control-how-create-roles.adoc[Create Roles]
66-
** xref:access-control/access-control-how-assign-users-to-roles.adoc[Assign User to Role]
67-
** xref:access-control/access-control-how-control-document-access.adoc[Control Document Access]
68-
** xref:access-control/access-control-how-verify-access.adoc[Verify Access]
69-
** xref:access-control/access-control-how-use-xattrs-for-access-grants.adoc[Use XATTRS for Access Grants]
70-
* xref:access-control/auto-purge-channel-access-revocation.adoc[Auto-Purge Channel Access Revocation]
47+
* xref:access-control:access-control-concepts.adoc[Concepts]
48+
** xref:access-control:access-control-model.adoc[Access Control Model]
49+
** xref:access-control:channels.adoc[Channels]
50+
** xref:access-control:roles.adoc[Roles]
51+
** xref:access-control:users.adoc[Users]
52+
* xref:access-control:sync-function/sync-function.adoc[Sync Function]
53+
** xref:access-control:sync-function/sync-function-api.adoc[API Reference]
54+
*** xref:access-control:sync-function/sync-function-api-access-cmd.adoc[access()]
55+
*** xref:access-control:sync-function/sync-function-api-channel-cmd.adoc[channel()]
56+
*** xref:access-control:sync-function/sync-function-api-expiry-cmd.adoc[expiry()]
57+
*** xref:access-control:sync-function/sync-function-api-require-access-cmd.adoc[requireAccess()]
58+
*** xref:access-control:sync-function/sync-function-api-require-admin-cmd.adoc[requireAdmin()]
59+
*** xref:access-control:sync-function/sync-function-api-require-role-cmd.adoc[requireRole()]
60+
*** xref:access-control:sync-function/sync-function-api-require-user-cmd.adoc[requireUser()]
61+
*** xref:access-control:sync-function/sync-function-api-role-cmd.adoc[role()]
62+
*** xref:access-control:sync-function/sync-function-api-throw-cmd.adoc[throw()]
63+
* xref:access-control:access-control-how.adoc[How-to]
64+
** xref:access-control:access-control-how-create-users.adoc[Create Users]
65+
** xref:access-control:access-control-how-create-roles.adoc[Create Roles]
66+
** xref:access-control:access-control-how-assign-users-to-roles.adoc[Assign User to Role]
67+
** xref:access-control:access-control-how-control-document-access.adoc[Control Document Access]
68+
** xref:access-control:access-control-how-verify-access.adoc[Verify Access]
69+
** xref:access-control:access-control-how-use-xattrs-for-access-grants.adoc[Use XATTRS for Access Grants]
70+
* xref:access-control:auto-purge-channel-access-revocation.adoc[Auto-Purge Channel Access Revocation]
7171

7272
.REST API
73-
* xref:rest-api/rest-api-access.adoc[Secure Access]
74-
* xref:rest-api/rest-api-admin.adoc[Admin REST API]
75-
** xref:rest_api_admin_static.adoc[Admin API Reference]
76-
* xref:rest-api/rest-api-metrics.adoc[Metrics REST API]
77-
** xref:rest_api_metrics_static.adoc[Metrics API Reference]
78-
* xref:rest-api/rest-api.adoc[Public REST API]
79-
** xref:rest_api_public_static.adoc[Public API Reference]
80-
* xref:rest-api/rest-api-access-rbac-roles.adoc[RBAC Role - Endpoint Cross-Reference]
73+
* xref:rest-api:rest-api-access.adoc[Secure Access]
74+
* xref:rest-api:rest-api-admin.adoc[Admin REST API]
75+
** xref:ROOT:rest_api_admin_static.adoc[Admin API Reference]
76+
* xref:rest-api:rest-api-metrics.adoc[Metrics REST API]
77+
** xref:ROOT:rest_api_metrics_static.adoc[Metrics API Reference]
78+
* xref:rest-api:rest-api.adoc[Public REST API]
79+
** xref:ROOT:rest_api_public_static.adoc[Public API Reference]
80+
* xref:rest-api:rest-api-access-rbac-roles.adoc[RBAC Role - Endpoint Cross-Reference]
8181

8282
.Sync
83-
* xref:sync/sync-with-couchbase-server.adoc[Sync with Server]
84-
* xref:sync/sync-using-app.adoc[Sync with Application]
83+
* xref:sync:sync-with-couchbase-server.adoc[Sync with Server]
84+
* xref:sync:sync-using-app.adoc[Sync with Application]
8585
* Inter-Sync Gateway Replication
86-
** xref:sync/sync-inter-syncgateway-overview.adoc[Overview]
87-
** xref:sync/sync-inter-syncgateway-run.adoc[Initialize]
88-
** xref:sync/sync-inter-syncgateway-manage.adoc[Manage]
89-
** xref:sync/sync-inter-syncgateway-monitor.adoc[Monitor]
90-
** xref:sync/sync-inter-syncgateway-conflict-resolution.adoc[Inter Syncgateway Conflict Resolution]
91-
* xref:sync/delta-sync.adoc[Delta Sync]
92-
* xref:sync/import-processing.adoc[Import Processing]
86+
** xref:sync:sync-inter-syncgateway-overview.adoc[Overview]
87+
** xref:sync:sync-inter-syncgateway-run.adoc[Initialize]
88+
** xref:sync:sync-inter-syncgateway-manage.adoc[Manage]
89+
** xref:sync:sync-inter-syncgateway-monitor.adoc[Monitor]
90+
** xref:sync:sync-inter-syncgateway-conflict-resolution.adoc[Inter Syncgateway Conflict Resolution]
91+
* xref:sync:delta-sync.adoc[Delta Sync]
92+
* xref:sync:import-processing.adoc[Import Processing]
9393

9494
.Manage
95-
* xref:manage/revisions.adoc[Revisions]
96-
* xref:manage/managing-tombstones.adoc[Tombstones]
97-
* xref:manage/resync.adoc[Resync]
98-
* xref:manage/stats-monitoring.adoc[Stats Monitoring]
99-
** xref:manage/stats-monitoring-json.adoc[]
100-
** xref:manage/stats-monitoring-prometheus.adoc[]
101-
* xref:manage/database-offline.adoc[Database Offline]
102-
* xref:manage/logging.adoc[Logging]
103-
** xref:manage/sgcollect-info.adoc[SG Collect Info]
95+
* xref:manage:revisions.adoc[Revisions]
96+
* xref:manage:managing-tombstones.adoc[Tombstones]
97+
* xref:manage:resync.adoc[Resync]
98+
* xref:manage:stats-monitoring.adoc[Stats Monitoring]
99+
** xref:manage:stats-monitoring-json.adoc[]
100+
** xref:manage:stats-monitoring-prometheus.adoc[]
101+
* xref:manage:database-offline.adoc[Database Offline]
102+
* xref:manage:logging.adoc[Logging]
103+
** xref:manage:sgcollect-info.adoc[SG Collect Info]
104104

105105
.Deploy
106-
* xref:deploy/deployment.adoc[Overview]
107-
* xref:deploy/command-line-options.adoc[Command Line Options]
108-
* xref:deploy/load-balancer.adoc[Load Balancer]
109-
* xref:deploy/os-level-tuning.adoc[OS Level Tuning]
110-
* xref:deploy/webhooks.adoc[Webhooks]
111-
* xref:deploy/changes-feed.adoc[Changes Feed]
112-
// * xref:integrating-external-stores.adoc[External Stores]
113-
* xref:deploy/stats-prometheus.adoc[Prometheus Feed]
114-
* xref:deploy/indexing.adoc[Indexing]
115-
** xref:deploy/index-partitions.adoc[]
116-
* xref:deploy/setting-up-dr-cluster.adoc[Disaster Recovery]
106+
* xref:deploy:deployment.adoc[Overview]
107+
* xref:deploy:command-line-options.adoc[Command Line Options]
108+
* xref:deploy:load-balancer.adoc[Load Balancer]
109+
* xref:deploy:os-level-tuning.adoc[OS Level Tuning]
110+
* xref:deploy:webhooks.adoc[Webhooks]
111+
* xref:deploy:changes-feed.adoc[Changes Feed]
112+
// * xref:ROOT:integrating-external-stores.adoc[External Stores]
113+
* xref:deploy:stats-prometheus.adoc[Prometheus Feed]
114+
* xref:deploy:indexing.adoc[Indexing]
115+
** xref:deploy:index-partitions.adoc[]
116+
* xref:deploy:setting-up-dr-cluster.adoc[Disaster Recovery]
117117

118118
//
119119

120-
* xref:upgrading.adoc[Upgrade]
120+
* xref:ROOT:upgrading.adoc[Upgrade]
121121

122122
//
123123

124124
.Use Kubernetes
125-
* xref:use-kubernetes/deploy-cluster-to-kubernetes.adoc[Deploy]
125+
* xref:use-kubernetes:deploy-cluster-to-kubernetes.adoc[Deploy]
126126
* xref:operator:ROOT:tutorial-sync-gateway-manage.adoc[Manage a Sync Gateway Cluster]
127127
* xref:operator:ROOT:tutorial-sync-gateway-clients.adoc[Expose Sync Gateway to Couchbase Lite clients]
128128

129129
.Server Compatibility
130-
* xref:server-compatibility/server-compatibility-buckets.adoc[Buckets]
131-
* xref:server-compatibility/server-compatibility-collections.adoc[Collections]
132-
* xref:server-compatibility/server-compatibility-eventing.adoc[Eventing]
133-
* xref:server-compatibility/server-compatibility-transactions.adoc[Transactions]
134-
* xref:server-compatibility/server-compatibility-xdcr.adoc[XDCR]
135-
* xref:server-compatibility/xdcr-active-active-eventing.adoc[XDCR Active-Active and Eventing]
136-
* xref:server-compatibility/server-compatibility-backups.adoc[Backup and Restore]
130+
* xref:server-compatibility:server-compatibility-buckets.adoc[Buckets]
131+
* xref:server-compatibility:server-compatibility-collections.adoc[Collections]
132+
* xref:server-compatibility:server-compatibility-eventing.adoc[Eventing]
133+
* xref:server-compatibility:server-compatibility-transactions.adoc[Transactions]
134+
* xref:server-compatibility:server-compatibility-xdcr.adoc[XDCR]
135+
* xref:server-compatibility:xdcr-active-active-eventing.adoc[XDCR Active-Active and Eventing]
136+
* xref:server-compatibility:server-compatibility-backups.adoc[Backup and Restore]
137137

138138
.Product Notes
139-
* xref:product-notes/release-notes.adoc[Release Notes]
140-
* xref:product-notes/supported-environments.adoc[Supported Environments]
141-
* xref:product-notes/compatibility.adoc[Compatibility Matrix]
139+
* xref:product-notes:release-notes.adoc[Release Notes]
140+
* xref:product-notes:supported-environments.adoc[Supported Environments]
141+
* xref:product-notes:compatibility.adoc[Compatibility Matrix]
142142

143143

144144
// list divider
145145

146-
* xref:glossary.adoc[Glossary]
146+
* xref:ROOT:glossary.adoc[Glossary]
147147

148148
//

modules/ROOT/pages/_partials/howto/how-to-sync-function-api.adoc

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

modules/ROOT/pages/_partials/stats-schema.adoc

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

modules/ROOT/pages/conflict-resolution.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ ifdef::prerelease[:page-status: {prerelease}]
2525
:idprefix:
2626
:idseparator: -
2727

28-
include::partial$_set_page_context.adoc[]
28+
include::ROOT:partial$_set_page_context.adoc[]
2929

3030
:param-abstract!:
3131
:param-related: {conflict-resolution--xref} | {configuration-schema-bootstrap--xref}
3232
:topic-group: Sync
33-
include::partial$_show_page_header_block.adoc[]
33+
include::ROOT:partial$_show_page_header_block.adoc[]
3434

3535
Conflicts are automatically resolved footnote:[Since Couchbase Lite 2.0].
3636
The functionality aims to simplify the default behavior of conflict handling and save disk space (conflicting revisions are no longer be stored in the database).
@@ -44,6 +44,6 @@ xref:couchbase-lite:objc:learn/objc-conflict.adoc[Objective-C]
4444

4545
For conflict resolution on 1.x clients -- see : {xref-sgw-pg-resolving-conflicts-legacy}.
4646

47-
include::partial$block-related-content-sync.adoc[]
47+
include::ROOT:partial$block-related-content-sync.adoc[]
4848

4949
// END -- PAGE -- conflict-resolution.adoc

modules/ROOT/pages/couchbase-mobile-index.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ifdef::show_edition[:page-edition: {release}]
44
ifdef::prerelease[:page-status: {prerelease}]
55
:page-role: -toc
66

7-
include::partial$_define_component_attributes.adoc[]
7+
include::ROOT:partial$_define_component_attributes.adoc[]
88

99

1010
[abstract]

modules/ROOT/pages/data-modeling.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ifdef::prerelease[:page-status: {prerelease}]
55
:description: pass:q[_Couchbase Sync Gateway's_ data model; for secure cloud-to-edge synchronization of enterprise data.]
66

77

8-
include::partial$_set_page_context.adoc[]
8+
include::ROOT:partial$_set_page_context.adoc[]
99

1010
// BEGIN -- Page Attributes
1111
:xref-sdk-nodejs-pg-start: xref:nodejs-sdk:hello-world:start-using-sdk.adoc[Node.js Server SDK]
@@ -15,7 +15,7 @@ include::partial$_set_page_context.adoc[]
1515
// BEGIN -- Page Heading
1616
:param-abstract!:
1717
:param-related: {revisions--xref} | {managing-tombstones--xref}
18-
include::partial$_show_page_header_block.adoc[]
18+
include::ROOT:partial$_show_page_header_block.adoc[]
1919
// END -- Page Heading
2020

2121
== Introduction
@@ -120,5 +120,5 @@ Its main purpose is to enable the replicator to determine which data to sync and
120120
Each document change is assigned a unique revision ID. The IDs of past revisions are available. The content of past revisions may be available if the revision was created locally and the database has not yet been compacted.
121121

122122
// BEGIN -- Page Footer
123-
include::partial$block-related-content-data.adoc[]
123+
include::ROOT:partial$block-related-content-data.adoc[]
124124
// END -- Page Footer

0 commit comments

Comments
 (0)