commit | 7abcc9d5e0087acb3551599ad7ef77080de92180 | [log] [tgz] |
---|---|---|
author | Arnout Engelen <arnout@bzzt.net> | Mon Jun 05 10:31:17 2023 +0200 |
committer | Arnout Engelen <arnout@bzzt.net> | Mon Jun 05 10:32:41 2023 +0200 |
tree | ada8ee9ca3c44b42d6f1414504245229c0c8ef4d | |
parent | 8b13bb7f9362b55acacb60587f93b654ca812854 [diff] |
Fix markup of security page Some HTML fragments that aren't picked up by Jekyll were still in the page. This makes the CVE anchors no longer work, but it looks like those haven't worked for a while, so that might be acceptable for now.
This repository contains source code for a Libcloud website powered by Jekyll.
bundler
(gem install bundler)You are strongly encouraged to utilize provided Dockerfile which contains all the dependencies which makes building the website a breeze.
Keep in mind that the initial image build may take a while since all the dependencies need to be installed and build, but subsequent runs should be much faster.
In case you want to install all the dependencies locally outside the Docker container, you are encouraged to install and use rvm and use rvm to install Ruby as shown below.
rvm install 3.1.1 rvm use 3.1.1 gem install bundler -v "2.3.0"
rvm use 3.1.1 bundle install
npm install .
node_modules/.bin/grunt lint
./scripts/docker-run-dev-server.sh # Non-Docker versions #./scripts/run-dev-server.sh
This will start Docker container with local development server listening on port 4000 available at http://localhost:4000/.
./scripts/docker-build-site.sh # Non-Docker versions #./scripts/build-site.sh # asf-site for prod, asf-staging for staging ./scripts/stage-changes.sh {asf-site,asf-staging} git push origin <branch>
To speed up local development, we offer pre-built version of theDocker image used for local development - https://github.com/apache/libcloud-site/pkgs/container/libcloud-site-dev.
This image is used by default when using ./scripts/docker-*.sh
scripts.
If for some reason you want to use locally built Docker image (e.g. you have made changes changes to the Dockerfile, Gemfile or similar), you can do that by setting USE_LOCAL_DOCKER_IMAGE=1
environment variable when using those scripts.
For example:
USE_LOCAL_DOCKER_IMAGE=1 ./scripts/docker-run-dev-server.sh