This repository hosts the documentation source for Couchbase’s Couchbase Lite product.
We recognize and value the experience and skills of the wider Couchbase community. As such, open source contributions to our documentation are always welcome.
-
If you find an error, or see room for improvement on a page, please don’t keep it to yourself. Even if you don’t plan to make the change yourself, we would still like to know what it is!
Raise a DOC issue by clicking the Leave Additional Feedback? link on the bottom-right of any page on this site.
-
You can also submit simple changes, such as typo fixes and minor clarifications or more extensive content additions and updates — see Contributing Workflow.
Check out our contributing guide to learn more on how to:
-
Submit a bug or feedback issue
-
Set up your documentation workspace
-
build the documentation
-
submit a pull request
Thank you for helping to make the documentation better.
All bugs and enhancements for the Couchbase documentation are tracked using the DOC project issue board.
This repository contains an Antora docs component couchbase-lite
Keep in mind these key repository features:
-
Component name, version, and start page are configured in each branch’s
antora.ymlfile. -
The navigation for Couchbase Lite is stored-in and compiled-from:
-
The ROOT module’s
nav.adocfile -
The
nav-<module>.adocfile within each platform’s module.
As defined in the nav section of the component’s
antora.ymlfile -
-
Production branches use the release/X.Y naming pattern (for example, release/2.8, release/3.0).
-
The docs site playbook instructs Antora to automatically aggregate any branch names that start with release/.
-
The documentation source files are marked up with AsciiDoc. Once merged into a version branch, the source files and their assets are aggregated, converted to HTML, and published by Antora to our staging and production sites.
The docs components and site UI are orchestrated by the docs site playbook as described in the contributing guide.
The documentation for each platform is stored in distinct folders at Antora’s module level, that-is alongside the ROOT folder, see for example — https://github.com/couchbase/docs-couchbase-lite/tree/release/3.0/modules/android
For the most part the documentation for each platform is derived from common text stored in the ROOT/pages/_partials/commons folder.
-
_set_page_context.adoc
The contents of themodules/ROOT/pages/_partials/_set_page_context.adocfile are used to set-up the environment for each page.This file is called with the appropriate platform parameters by each platform’s equivalent
std-cbl-hdr-<platform>.adocfile. It in turn calls_define_page_index.adoc,_define_component_attributes.adocand the appropriate_define_module_attributes.adoc.Together, these included files define a tailored, platform-specific environment, whilst utilizing common text files to describe Couchbase Lite functionality.
-
_define_component_attributes.adoc
Themodules/ROOT/pages/_partials/_attributes_local.adocfile sets the value of attributes common across all platforms. -
_define_module_attributes.adoc
Each platform contains a platform-specificmodules/<platform>/pages/_partials/_attributes_module.adocfile. The principal purpose of this file is to define cross-reference links into the platform’s API documentation. -
_define_page_index.adoc
This file sets the page xref attributes used in cross-references throughout the documentation. It picks-up the platform parameters from the_set_page_context.adoc -
commonsfolder
As stated above thecommonsfolder holds common re-usable text shared across all platforms.
Within the platform folder, each page calls its own, platform specific, set_page_context_for<platform>.adoc file, which in turn:
-
Sets the platform name and other parameters
-
Invokes the common
ROOT:_set_page_context.adocfileThis common header file, then invokes:
-
_define_component_attributes.adocto set common attributes -
_define_page_index.adocto set up xref attribute for page cross-references -
_define_module_attributes.adocto set platform specific attributes (such as links into API)
-
-
Includes the appropriate
commontext file imbuing it with platform specific details as set by the aforementioned header file. -
Includes the
commonfooter file.
Couchbase Lite Documentation © 2024 by Couchbase Inc. is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International.
See the LICENSE file or the Creative Commons CC BY-NC-SA 4.0 license page for details.