Giter Site home page Giter Site logo

speedy-sloth / docs-couchbase-lite Goto Github PK

View Code? Open in Web Editor NEW

This project forked from couchbase/docs-couchbase-lite

0.0 0.0 0.0 99.46 MB

Documentation for Couchbase Lite

Home Page: https://docs.couchbase.com

Shell 0.19% C 8.73% Objective-C 10.24% Java 33.05% C# 12.73% Kotlin 19.53% Swift 15.40% HTML 0.02% CMake 0.10%

docs-couchbase-lite's Introduction

Couchbase Lite Documentation

This repository hosts the documentation source for Couchbase’s Couchbase Lite product.

Contributing

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.

Docs Component Configuration

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.yml file.

  • The navigation for Couchbase Lite is stored-in and compiled-from:

    • The ROOT module’s nav.adoc file

    • The nav-<module>.adoc file within each platform’s module.

    As defined in the nav section of the component’s antora.yml file

  • 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/.

Documentation Site Toolchain

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.

Project Structure

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.

Significant files

  • _set_page_context.adoc
    The contents of the modules/ROOT/pages/_partials/_set_page_context.adoc file 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>.adoc file. It in turn calls _define_page_index.adoc, _define_component_attributes.adoc and 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
    The modules/ROOT/pages/_partials/_attributes_local.adoc file sets the value of attributes common across all platforms.

  • _define_module_attributes.adoc
    Each platform contains a platform-specific modules/<platform>/pages/_partials/_attributes_module.adoc file. 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

  • commons folder
    As stated above the commons folder holds common re-usable text shared across all platforms.

Page Structure

Within the platform folder, each page calls its own, platform specific, set_page_context_for<platform>.adoc file, which in turn:

  1. Sets the platform name and other parameters

  2. Invokes the common ROOT:_set_page_context.adoc file

    This common header file, then invokes:

    1. _define_component_attributes.adoc to set common attributes

    2. _define_page_index.adoc to set up xref attribute for page cross-references

    3. _define_module_attributes.adoc to set platform specific attributes (such as links into API)

  3. Includes the appropriate common text file imbuing it with platform specific details as set by the aforementioned header file.

  4. Includes the common footer file.

docs-couchbase-lite's People

Contributors

ibsoln avatar jamesnocentini avatar jayahariv avatar osfameron avatar bmeike avatar mojavelinux avatar rayoffiah avatar amarantha-k avatar pasin avatar franrob-projects avatar richardsmedley avatar borrrden avatar dinaabennett avatar biozal avatar rajagp avatar bkaneatwork avatar gauthambanasandra avatar maria-robobug avatar nithishr avatar paolonem avatar graphitefriction avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.