beh333 / opencilk-website

Development and testing a website for OpenCilk
https://inspiring-feynman-7b1a58.netlify.app/
MIT License
0 stars 0 forks source link

README

This is the GitHub repository for OpenCilk's new in-development website. Right now the site is hosted here. We will deploy the site to opencilk.org soon.

If you want to install OpenCilk, see github.com/OpenCilk/infrastructure.

The OpenCilk website is generated using Eleventy, a Node.js package for building static websites.

Making Simple Changes

To suggest a change to the website, you can simply navigate to the page with the content you think should be changed, and edit it. You will be prompted to fork the repo (if you haven't already) and then open a Pull Request. Once your Pull Request is merged, you should see your changes show up on the website in a few minutes.

Adding documentation or a blog post

All the content used to generate the site is in the src/ folder.

Follow the blueprint of the other files in terms of folder and file structure. Each file of documentation is categorized uniquely by the src/doc/ folder that contains it:

There is a separate folder for blog posts:

All documentation and blog posts use this folder for images: src/img/.

Making More Complex Changes

To suggest a change to the website that is more significant, it is suggested that you make said changes and test them locally on your device. You can do this by simply forking the base repo, cloning it locally onto your device, making the changes you want, and then following the "Installing locally" instructions below. Once you have validated that everything looks good, you can open a Pull Request.

Installing locally

Clone the repository and cd to it. With Node.js installed, execute the following to install Node dependences and perform the first build.

> npm install

> npm run build

Then to launch the website, execute the following:

> npm run start

Navigate to localhost:8080 (or sometimes localhost:8081) in a browser and you should see your local instance of the site.