-
Notifications
You must be signed in to change notification settings - Fork 7
Closed
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationmaintenance
Milestone
Description
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
- GH Pages require a ready-to-deploy, static HTML website when not using Jekyll.
- 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
ormaster
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
- project (the generated site is in the same repository in
- custom domain — sexy, but requires someone to pay the domain
Deployment
- let maintainers do it manually via push to one of destinations above — no guarantee that the docs matches the latest release
- automate the process using third-party GitHub apps/actions or a custom shell script like this one (relates to Document releasing and automate where possible #71)
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationmaintenance