Skip to content

Deploy documentation to public URL #67

@adamkudrna

Description

@adamkudrna

Currently the docs isn't accessible anywhere. Everyone should be able to view it when needed.

Serve the docs as a website to encourage designers use the UI library and to make it accessible to public.

(Taken from #15)

We want to stick to GitHub Pages unless something really serious makes us not to.

The question is, where shall we store the built website and how do we get it there?

Prerequisites

  1. GH Pages require a ready-to-deploy, static HTML website when not using Jekyll.
  2. We must choose from three possible places to store the generated website.

Options

Storing the website

There are two relevant types of GH Pages:

  • project
  • organisation
  • (user — not relevant for our use case)

We can store the generated site in:

  • the original project repository
    • 👍in the same repository
    • 👎cluttering the main source code with generated code or involving awkward checkouts to the detached gh-pages branch, see below
  • a separate repository dedicated to generated docs
    • 👍the original repository stays clean from generated code
    • 👎disconnected from the original repository

For project pages, the site is required to reside in either of these:

  • gh-pages branch (project pages)
    • 👍not cluttering the main source code with generated code
    • 👎awkward to checkout locally
  • master branch, docs directory (project pages)
    • 👍no explosive checkouts involved
    • 👎cluttering the main source code with generated code

For organisation pages or docs-dedicated project pages the site can live in the master branch.

Domain

  • github.io:
    • project (the generated site is in the same repository in gh-pages or master branches): https://react-ui-org.github.io/react-ui
    • separate project (the site is generated to a different repository): https://react-ui-org.github.io/react-ui-docs
    • organisation (the generated site is in a separate repository): https://react-ui-org.github.io
  • custom domain — sexy, but requires someone to pay the domain

Deployment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions