The static SCS website is generated by Jekyll. The theme is originally based on the template business-frontpage by sharu725. We're heavily making use of Bootstrap 5 to layout the page content.
The website is automatically built every 15 minutes or on every push to main
and subsequently pulled onto our webspace.
Published sites:
main
branch
main
branch
Contribute
-> Open pull request
base: main
and compare <your branch>
is selected in the top of the pull requestCreate pull request
main
branch and rolled out after 15 minutesThe website data is deployed by the following process:
The following steps describe the basic workflow how to add, change and remove content. The description is a little more detailed than it needs to be, as it aims also to provide a reliable guide for non-engineer colleagues.
main
branch
(you can also do this using the github user interface)
git clone git@github.com:SovereignCloudStack/website.git # you only need to do this the first time
cd website
git checkout main
git pull
git checkout -b feat/<name of your branch> # do not use spaces
git status
git diff
git add <file> ... <file>
git status
git commit -s -a
git push -u origin feat/<name of your branch>
Optional: Testing more complex changes
Set the staging
branch to the same state like the main branch
git checkout staging
# check the current difference
git diff main
# This abandons everything on the staging branch
git reset --hard origin/main
# add changes of other branches
git merge feat/<name of your branch>
git merge feat/<name of your branch ... >
# perform a hard overwrite of everything in the staging branch
git push --force
main
branch
Contribute
-> Open pull request
base: main
and compare <your branch>
is selected in the top of the pull requestCreate pull request
main
branch and rolled out after 15 minutesCreate a markup document located at _i18n/en/blog
and/or respectively _i18n/de/blog
to add a new blog post. Be aware that the file shall be named YEAR-MONTH-DAY-title.MARKUP
according to the Jekyll conventions (see Jekyll Docs).
Due to the internationalization plugin, you have to create multiple files. First of all, add a new markup document under _pages
, set the desired layout, e.g. default
and add the line
{% tf pagetitle.MARKUP %}
Following this step, you have to create the documents pagetitle.MARKUP
located at _i18n/en
and _i18n/de
. Note that you have to create at least the English translation or otherwise the build process will fail.
Add the press release to _data/news_de.yml
for German speaking press release or _data/news_en.yml
for English speaking releases.
Upload the logo to assets/images
and add a entry in _data/supporter.yml
As we're using Bootstrap, please add your custom styling definitions to assets/css/_sass/custom.css
staging
branchWe're using a dedicated workflow to build a staging preview of our website that subsequently is published with GitHub Pages. To make use of this feature, simply push to the staging
branch. Please try to keep staging
in sync with main
, e.g. by deleting and recreating after testing your recent changes. The staging area can be reached via https://sovereigncloudstack.github.io/website/.
As of August 2024, the local build is aimed at a podman-based container installation.
git clone git@github.com:SovereignCloudStack/website.git
bash run-podman.sh