commit | 826c4e357ac5410dcbd43d623a19337d951c2fb1 | [log] [tgz] |
---|---|---|
author | Daan Hoogland <daan@onecht.net> | Wed Feb 07 10:21:06 2024 +0100 |
committer | Daan Hoogland <daan@onecht.net> | Wed Feb 07 10:21:06 2024 +0100 |
tree | cfc450b036bce23e04a257e782ec4c4e5ff62f4a | |
parent | 2ae33f28ad85003e98b06fff74517b7743da9058 [diff] |
publish on merge to staging
This project keeps all sources used for building up Apache CloudStack official website which's served at https://cloudstack.apache.org/.
For contributing changes such as adding/editing blogs, please see the:
Apache CloudStack website is powered by Docusaurus 2. Please install Node.js v16 or later and yarn.
Install dependencies:
$ yarn install
Start local app server on localhost:3000:
$ yarn start
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
To build the website run the following:
$ yarn build
This command generates static content into the build
directory and can be served using any static contents hosting service. We've GitHub Actions based automation that can publish changes merged to ‘main’ branch being automatically published to the ‘asf-site’.
This procedure is obsolete as soon as the site is migrated to docusaurus completely
# checkout the right branch: git checkout old-style-blogs yarn clear yarn install yarn build
build
directory to some other place, like mv build ..
git checkout -- .
and then checkout git checkout asf-site
branchcd content/
to manually copy artifacts from ../build/
path.assets
, blog
, img
and files
directory in the content directory from ../../build/