The original version was written by leahlundqvist aka hex2f
.
note: You can't run the whole site locally, because of proprietary backend, but you can preview the html file index.html
for styling css.
There are various way you can contribute to this project. Refactoring writings, updating css, adding language support etc. We will cover them one by one.
There is app.css
file in build
folder which is the main stylesheet. It is converted from app.sass
file from the main repo and then minified. Use index.html
in build
folder to view the rendered html file. This will help you style the website.
Use the english.tr
in the translations
folder as a reference to add your translation to this project.
The website is built via Nunjucks templates. By using npm run build
the build-pages.js
script creates pages from njk files (templates), converts sass to css, minifies it, and runs the page on localhost:3000
via serve.
If you only want to build pages and not run them via serve
then delete && serve build/
from line 23 of package.json
.
To build:
git clone https://github.com/vlang/website
cd website
npm install
npm install --global serve
npm run build