Skip to content

Latest commit

 

History

History
40 lines (24 loc) · 3.86 KB

File metadata and controls

40 lines (24 loc) · 3.86 KB

Overview

Benefits of Using GitHub

Vivliostyle Pub uses an external version control system, GitHub, to manage user files. For users, version control systems offer the following benefits:

  1. Record file change history
  2. Revert files to previous states
  3. Enable collaborative editing by multiple users

Unfortunately, the current version of Vivliostyle Pub does not support the above features 1 and 2. These features can be used with various GitHub clients. There are various free clients available, such as Sourcetree. For example, refer to the following for operations using the official GitHub client, GitHub Desktop (free).

Here, we will explain how to perform collaborative editing by multiple users using Vivliostyle Pub.

Overview of Collaborative Editing

(In this document, individual workers are referred to as "committers" and those who oversee the project are referred to as "administrators")

In collaborative editing, we use GitHub's Protected Branches feature. This feature prohibits direct editing in the default branch, which is the main branch, and enforces that workers edit in their own working branches, which are merged into the default branch through administrator reviews. As a result of such collaborative work, documents with fewer errors can be efficiently produced.

Collaborative editing generally proceeds as follows (explained in the following sections).

  1. Committer creates a new branch in the GitHub repository
  2. Committer selects the branch in Vivliostyle Pub
  3. Committer edits and saves the document in Vivliostyle Pub
  4. Committer creates a pull request on GitHub
  5. Administrator reviews, approves, and merges the pull request on GitHub

Conditions Required for Collaborative Editing

To use the Protected Branches feature mentioned above in your repository, you need to obtain a paid GitHub account or make the repository public if you have a free account. For details, refer to the following.

However, even with a free account, you can participate in collaborative editing if you are invited to the repository by an eligible person. Refer to the following.