Home CodeDoc How do I share repository documentation and set it to Public or Private?

How do I share repository documentation and set it to Public or Private?

Last updated on Nov 10, 2025

Short Answer: Click the 'Share' button, in 'Share documentation' enter emails and choose roles, pick 'Private' or 'Public' under 'Document access', then click 'Save' (or 'Copy link').

Prerequisites

  1. You have access to the repository view (Share button visible)

  2. You know the teammate emails to add

Steps

  1. Click 'Share' in the top-right of the repo header.
    'Share documentation' modal opens.

  2. Type one or more emails into the input under 'Share with your team' and select a role from the 'Member' dropdown for each email.
    New people appear in 'People with access' with the selected role.

  3. Under 'Document access' choose 'Private' or 'Public' (note description: 'Only team members can view this documentation.' or 'Anyone with the link can view. No login required.').
    [screen_4.png]
    Document access selection is set.

  4. Click 'Save' to apply sharing changes, or click 'Copy link' to copy the shareable URL.
    [screen_4.png]
    Changes saved and modal closes (or link copied to clipboard).

Troubleshooting

  1. Unable to set access to 'Public' or 'Save' fails.
    LikelyCause: You may not have permission to change visibility (role restrictionsOwner/Admin may be required).
    Action: Ask the repository Owner/Admin to change access or add the desired users/visibility for you.

  2. 'Copy link' does not place the URL in your clipboard.
    LikelyCause: Browser blocked clipboard access.
    Action: Allow clipboard access in your browser or manually copy the URL from the address bar after selecting 'Public'.

Note: The modal lists 'People with access' and their role (Admin, Member, Owner) so you can confirm who already has access before saving.