t4wE / website

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The V Programming Language Website

https://vlang.io

Example
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.

How To Contribute

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.

Styling the website

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.

Adding Language

Use the english.tr in the translations folder as a reference to add your translation to this project.

Building

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

About

License:MIT License


Languages

Language:Nunjucks 74.1%Language:HTML 18.0%Language:JavaScript 3.1%Language:Sass 3.1%Language:V 1.3%Language:CSS 0.3%