Merge branch 'main' of github.com:apache/privacy-website into main
tree: 3f716ec7e611dd2368d31f33ba2905546c39a4ab
  1. .asf.yaml
  2. .gitignore
  3. Dockerfile
  4. Gemfile
  5. README.md
  6. _config.yml
  7. _data/
  8. _includes/
  9. _layouts/
  10. _posts/
  11. _sass/
  12. css/
  13. faq/
  14. images/
  15. index.md
  16. policies/
README.md

The Apache Software Foundation - Privacy Website

This is the source code for the website at privacy.apache.org.

Develop this website

To develop content for this website, you need to make sure you have Docker installed. Once installed, you can run this command to create a docker image:

$> cd <your project folder>
$> docker build -t apache/privacy_apache_org .

Whenever you change something in the Dockers dependencies, you have to recreate the docker image.

Afterwards you are able to run the website.

To run the website in serve mode (running a server to quickly check your code) you'll have to run this command:

docker run --rm -p 4000:4000 --mount type=bind,src=$PWD,dst=/root/build --mount type=volume,dst=/root/build/node_modules -it apache/privacy_apache_org serve --watch --incremental

Once it runs, you can reach your website at:

http://localhost:4000/

Jekyll will regenerate content as you change it and you can see all changes with hitting refresh.

If you find it necessary to connect to your Docker instance while working, you can run and connect to it with this command:

docker run --rm -p 4000:4000 --mount type=bind,src=$PWD,dst=/root/build --mount type=volume,dst=/root/build/node_modules -it  --entrypoint "/bin/bash" apache/privacy_apache_org