Skip to content

Latest commit

 

History

History
59 lines (38 loc) · 2.51 KB

SETUP.md

File metadata and controls

59 lines (38 loc) · 2.51 KB

Setup

Manual setup

Refer to the CONSOLE GUIDE.

GitHub actions setup

  • Require to create three (3) repositories:

    • (A) Repo for hosting your documentation website (for free!)
    • (B) Repo for documentation (markdown files)
    • (C) Repo for docs deploy (documentation website builer)
  • Requires to provide PAT (Personal Access Tokens) with repo scope granted.

(A) Hosting repo

  • Create a new repository to use is as (free) hosting for your documentation website.

(B) Docs repo

  • Create a new repository to use it as your docs repo (markdown files) source.

💡 You can use chevere/docs-template as base.

When done:

  1. Go to Secrets under Settings from your new repo
  2. Click on New repository secret
  3. Provide the following repository secrets:
Key Description / example
REPO_DOCS_DEPLOY Docs deploy repo as owner/docs-deploy
REPO_DOCS_DEPLOY_TOKEN PAT to access REPO_DOCS_DEPLOY

(C) docs-deploy repo

Create repo

When done:

  1. Go to Secrets under Settings from your new repo
  2. Click on New repository secret
  3. Provide the following repository secrets:
Key Description / example
REPO_DOCS Docs repo as owner/docs-repo
REPO_DOCS_ACCESS_TOKEN PAT to access REPO_DOCS
REPO_HOSTING Hosting repo as owner/host-repo
REPO_HOSTING_ACCESS_TOKEN PAT to access REPO_HOSTING
CNAME Hostname for your website as mydomain.com

Automatic deployment on docs repo update

Check the push-deploy.yml workflow used to automatic trigger workflows on the deploy repo from the docs repo.