Skip to content

Commit 66546e6

Browse files
authored
DOC-9045-C15 -- Asciidoc gardenig (#585)
https://issues.couchbase.com/browse/DOCS-9045
1 parent 5dd5a10 commit 66546e6

13 files changed

+23
-38
lines changed

modules/ROOT/nav.adoc

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
// CAO Links
2-
:cao--xref: xref:operator::
3-
:cao-pg-manage-sgw--page: tutorial-sync-gateway-manage.adoc
4-
:cao-pg-clients-sgw--page: tutorial-sync-gateway-clients.adoc
5-
:cao-pg-connect-sgw--page: tutorial-sync-gateway.adoc
6-
:cao-pg-manage-sgw--xref: {cao--xref}{cao-pg-manage-sgw--page[Manage a Sync Gateway Cluster]
7-
:cao-pg-clients-sgw--xref: {cao--xref}{cao-pg-clients-sgw--page[Expose Sync Gateway to Couchbase Lite clients]
8-
91
//
102

113
* xref:introduction.adoc[Introduction]
@@ -122,8 +114,8 @@
122114

123115
.Use Kubernetes
124116
* xref:deploy-cluster-to-kubernetes.adoc[Deploy]
125-
* {cao-pg-manage-sgw--xref}
126-
* {cao-pg-clients-sgw--xref}
117+
* xref:couchbase-operator::tutorial-sync-gateway-manage.adoc[Manage a Sync Gateway Cluster]
118+
* xref:couchbase-operator::tutorial-sync-gateway-clients.adoc[Expose Sync Gateway to Couchbase Lite clients]
127119

128120
.Server Compatibility
129121
* xref:server-compatibility-collections.adoc[Collections]

modules/ROOT/pages/_partials/_page-index.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ endif::xref--pfx-sgw[]
867867
// :xref-sgw-adv-vw-config-properties: {configuration-properties--pfx}[... view Configuration reference]
868868
// :xref-sgw-lrn-vw-config-properties: {configuration-properties--pfx}[... view Configuration reference]
869869
// :xref-sgw--xref-icr-conflict-resolution-build: {sgw--xref}{sgw-pg-icr-conflict-resolution-build}
870-
// :xref-sgw-pg-adv-sgw-cfg-sync-function: {sgw--xref}{sgw-pg-adv-sgw-cfg-sync-function}[Use Sync functions?]
870+
// :sync-function--xref: {sgw--xref}{sgw-pg-adv-sgw-cfg-sync-function}[Use Sync functions?]
871871
// :xref-sgw-pg-cbmintro: {sgw--xref}{sgw-pg-cbmintro}[About Mobile]
872872
// :xref-sgw-pg-concept-fundamentals-logging: {sgw--xref}{sgw-pg-concept-fundamentals-logging}[Logging]
873873
// :xref-sgw-pg-icr-conflict-resolution-build: {xref-sgw--xref-icr-conflict-resolution-build}[Build a Custom Conflict Resolver]

modules/ROOT/pages/_partials/cao2.0banner.adoc

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

modules/ROOT/pages/_partials/concepts/channels.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ image::channel-access-grant-3.0.png["Access Control Points 3.x",400]
6464
You can provide the `admin_channels` property using the *Admin REST API* endpoint ({rest-api-admin-user-put--xref}).
6565
6666
<2> Programmatically using Access Grant Document: +
67-
The {loc-sync-function--xref} provides a flexible and secure method for controlling document access and routing.
67+
The {sync-function--xref} provides a flexible and secure method for controlling document access and routing.
6868
You can program it to derive appropriate access and channel routing information from document properties. +
6969
Optionally, the access grant can be specified via a designated extended attribute (XATTR) — see: {access-control-how-use-xattrs-for-access-grants--xref} for how to define the XATTR.
7070
@@ -141,7 +141,7 @@ TIP: Always use a filter in conjunction with the _all channels_ wildcard, to avo
141141

142142
// ADD THS TO HOW-tO/SYNC FUNCTION EXAMPLES
143143

144-
You assign documents to channels in the {loc-sync-function--xref}.
144+
You assign documents to channels in the {sync-function--xref}.
145145

146146
Channels are created as documents are assigned to them.
147147

modules/ROOT/pages/_partials/howto/how-to-create-roles.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ You can create and-or manage roles using the following options
1818
Roles are created via the Sync Gateway Admin REST API -- see: {rest-api-admin--xref}.
1919

2020
* File-based Configuration Properties ( PRE 3.0 BETA) +
21-
Roles can be configured using the Sync Gateway Configuration Properties file -- see: {configuration-properties--​xref}.
21+
Configure roles in the xref:configuration-properties.adoc[Legacy Configuration Properties] file.
2222
+
23-
include::partial$block-caveats.adoc[tags=disable-pesisitent-config]
23+
include::partial$block-caveats.adoc[tags=disable-persistent-config]
2424

2525
*Note* To use this option in v3.x, you must use the `-disable_persistent_config` CLI option.
2626

modules/ROOT/pages/access-control-how.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ There are a number of ways in which you can control document distribution and us
5454

5555
[#lst1]
5656
.Ways to configure access
57-
* Using the Sync Gateway Configuration Properties file's {configuration-properties--xref--databases-user-admin-channels} setting
57+
* Legacy Pre 3.0 Beta: Use the xref:configuration-properties.adoc[Legacy Configuration Properties] file's xref:configuration-properties.adoc#databases-user-admin-channels[admin_user_channels]
5858
* Dynamically
5959
** At the time of user creation with Admin REST Endpoint {rest-api-admin-user-post--xref} using `admin_channel`
6060
** Using the Sync Function's {sync-function-api-access-cmd--xref}.

modules/ROOT/pages/auto-purge-channel-access-revocation.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ NOTE: This behavior is the *reverse* of that between {sgw-t} and Couchbase Lite
132132

133133
By default, documents are *not* auto purged on the active sync gateway even if the user on the passive sync gateway loses channel access.
134134

135-
You can opt-in to auto-purge behavior using the replicator level option `purge_on_removal` in the REST API -- see {configuration-schema--isgr--xref-purge-on-removal}.
135+
You can opt-in to auto-purge behavior using the replicator level option `purge_on_removal` in the REST API -- see: xref:configuration-schema-isgr.adoc#replication-purge_on_removal[replication-purge_on_removal].
136136

137137
Documents will then *be* auto-purged -- on active Sync Gateway nodes that have opted-in -- if they do not belong to *any* of the replicating user’s footnote:[pass:q,a[The _replicating user_ is the user on the _passive_ sync gateway cluster; the user specified in the replication definition.]] channels -- see: <<lbl-isgr-revoke-behaviors>>.
138138

modules/ROOT/pages/deployment.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Tuning the cache values in the configuration file can speed up the performance (
5959
It uses lightweight threads and asynchronous I/O.
6060
Therefore, adding more CPU cores to a Sync Gateway node can speed it up.
6161
- As is typical with databases, writes are going to put a greater load on the system than reads.
62-
In particular, every write operation gets processed by the {xref-sgw-pg-adv-sgw-cfg-sync-function} and triggers notifications to other clients with read access, who then perform reads to get the new data.
62+
In particular, every write operation gets processed by the {sync-function--xref} and triggers notifications to other clients with read access, who then perform reads to get the new data.
6363
- Each client running a continuous replication has an open socket to be notified of changes, these sockets remain idle most of the time (unless documents are being modified at a very high rate), so the actual data traffic is low — the issue is just managing that many sockets.
6464
We recommend developers to optimize how many connections they need to open to the sync tier (see the xref:os-level-tuning.adoc[OS Level Tuning] guide).
6565
- In a Sync Gateway deployment with xref:indexing.adoc[GSI/N1QL indexing], the resources allocated to the Couchbase Server index node must be sufficient to support Sync Gateway operations.

modules/ROOT/pages/glossary.adoc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ Subsequent retries may be made after the maximum limit time period has elapsed.
350350
The term _Persistent replication_ refers to replications that survive Sync Gateway restarts.
351351
All replications are persisted by default unless explicitly flagged as not.
352352
// end::sgw-icr-persistent-replication[]
353-
Persistent replication is defined in the configuration file sync-gateway.json -- see {xref-sgw-pg-cofig-properties}.
353+
Persistent replication is defined in the configuration file sync-gateway.json -- see {configuration-properties--xref}.
354354
It is started automatically and survives restarts.
355355
The recommended method of defining a persistent replication is by using the configuration file.
356356
With Inter-Sync Gateway replication you can configure all nodes with the replicators.
@@ -431,11 +431,12 @@ The term, _Synchronization_, refers to the process of replicating the changes ma
431431
// tag::sgw-icr-sync-function-full[]
432432
// tag::sgw-icr-sync-function[]
433433
// tag::sgw-icr-sync-function-def[]
434-
The Sync Function is a JavaScript function whose source code is stored in the Sync Gateway’s database configuration file. It is in charge of data validation, and of authorizing both read and write access to documents.
434+
The Sync Function is a JavaScript function whose source code is provisioned using the Admin Rest API.
435+
It is in charge of data validation, and of authorizing both read and write access to documents.
435436
// end::sgw-icr-sync-function-def[]
436437

437438
// tag::sgw-icr-sync-function-rel[]
438-
{configuration-properties--xref--databases} | {configuration-properties--xref--databases-sync}
439+
{sync-function--xref}
439440
// end::sgw-icr-sync-function-rel[]
440441
// end::sgw-icr-sync-function[]
441442
// end::sgw-icr-sync-function-full[]

modules/ROOT/pages/legacy-sgreplicate-resolving-conflicts.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ include::partial$block-abstract.adoc[]
1313
== Introduction
1414
This guide covers handling data conflicts while syncing with Couchbase Lite 1.x clients or syncing with pre 2.8 version of Sync Gateway nodes using SG-Replicate
1515

16-
In these cases, the conflict resolution happens on the server-side using the Sync Gateway Admin REST API. This information does not apply to applications using Couchbase Mobile 2.x _only_ -- see {xref-sgw-pg-resolving-conflicts} or inter-Sync Gateway replication with versions of Sync Gateway 2.8 and above -- see {xref-sgw-pg-resolving-conflicts}
16+
In these cases, the conflict resolution happens on the server-side using the Sync Gateway Admin REST API. This information does not apply to applications using Couchbase Mobile 2.x _only_ -- see xref:conflict-resolution.adoc[Resolving Conflicts]
1717

1818
In Couchbase Lite 1.x, a conflict usually occurs when two writers are offline and save a different revision of the same document.
1919
Couchbase Mobile provides features to resolve these conflicts, the resolution rules are written in the application to keep full control over which edit (also called a revision) should be picked.

0 commit comments

Comments
 (0)