This repository is used to build and deploy openUC2's documentation site.
People who are just end-users of openUC2 products & projects should go to docs.openuc2.com.
Developers should view the current state of the openUC2/docs repo at docs-dev.openuc2.com.
That site should be treated as a developer preview which can have disruptive changes without any prior notice; thus, customers should not be sent to docs-dev.openuc2.com.
docs-staging.openuc2.com should be used as an intermediate "beta preview" version of docs.openuc2.com: it is more stable (i.e. has less accidental disruption) compared to docs-dev.openuc2.com, but it may still have a few subtle problems which need to be discovered and fixed before the changes are generally exposed to all customers.
It's okay to link certain customers to certain pages in docs-staging.openuc2.com, but only if those customers need to have a preview of newer versions of those specific pages before those changes are ready to be made generally available at docs.openuc2.com.
For further explanation, please refer to DN 17.
Run:
npm install
npm run start
Then open: http://localhost:3000
The openUC2 docs site has three GitHub Pages deployments, each with its own repository:
- development/edge release channel: the
masterbranch of openUC2/docs; deploys to docs-dev.openuc2.com. - staging/beta release channel: the
stagingbranch of openUC2/docs; automatically mirrored to thedeploybranch of openUC2/docs-staging, which deploys to docs-staging.openuc2.com - prod/stable release channel: the
prodbranch of openUC2/docs; automatically mirrored to thedeploybranch of openUC2/docs-prod, which deploys to docs.openuc2.com.
After cloning the openUC2/docs repo, then you can fast-forward your local staging and prod branches to the desired commits on your local master branch.
Then you can deploy changes to the staging and prod release channels by pushing your updated local staging and prod branches, respectively, up to the openUC2/docs repository.
The deployment process should usually be done as follows:
- Fast-forward the
stagingbranch of the openUC2/docs repo to whichever commit of themasterbranch that we want to publish. - Wait for it to build and deploy, then look at
docs-staging.openuc2.comand fix any problems. - Once the version in the
docs-stagingrepo is stable and mature enough for publication, fast-forward theprodbranch of the openUC2/docs repo to the publication-ready commit of thestagingbranch.