5
2
Fork
You've already forked naev-website
0
Website for the Naev project. https://naev.org
  • JavaScript 73.1%
  • SCSS 24.8%
  • Ruby 1.3%
  • HTML 0.6%
  • XSLT 0.2%
Edgar Simo-Serra e57bdba8a4
All checks were successful
Spellcheck / Spelling (push) Successful in 1m36s
Website Build / website_build (push) Successful in 33m39s
Website Build / website_publish (push) Successful in 21m6s
Added 0.13.5 release blarg post.
2026年06月20日 21:43:54 +09:00
.forgejo/workflows No need for fetch-depth 0 2026年04月27日 12:16:02 -04:00
content Added 0.13.5 release blarg post. 2026年06月20日 21:43:54 +09:00
layouts Fixed compilation. 2026年01月02日 22:47:49 +09:00
lib Add a badge for the forums 2026年01月09日 16:32:58 -05:00
test Ported starfield.frag to webgl. 2025年12月06日 06:47:15 -05:00
.codespellignore Added codespellignore. 2024年11月19日 17:05:34 +09:00
.gitignore Drop gemfile.lock from the gitignore 2025年12月03日 04:24:24 -05:00
.mailmap Added .mailmap 2025年08月29日 23:34:12 +09:00
.pre-commit-config.yaml Switch to oxipng. 2025年04月29日 12:44:23 +09:00
Gemfile Use ruby interface for optipng 2025年11月23日 10:19:59 -05:00
Gemfile.lock Update lockfile. 2025年12月25日 12:57:15 +09:00
LICENSE Ran pre-commet and changed everything to make it happy. 2022年07月20日 15:39:43 +09:00
Makefile Keep the crashlog around when you make clean 2025年11月23日 10:27:51 -05:00
nanoc.yaml Ensure that the dot files are compiled with the site 2025年09月09日 23:32:05 -04:00
README.md Update README to remove portion about maintaining the ruby action 2025年09月12日 03:18:18 -04:00
Rules Fix stray unicode character in Rules 2025年09月16日 08:30:00 -04:00

Naev Project Website

The website has been redesigned to be all static html generated by nanoc. The website consists of many difference source files that can be compiled to a combination of binary elements, html files, css files, and javascript code. This approach allows to use most of the complexity of dynamic websites, while still keeping the website itself static, bypassing all security issues.

Dependencies

Ruby Gem Dependencies are in Gemfile and can be installed using bundler with:

bundle install

You will also need to install tidy, optipng, and graphicsmagick.

Compilation

A Makefile is provided to do most simple tasks.

To compile the website you can use the following command:

make

This will generate the output directory output/ containing all the website data.

Viewing the Website

You can view the website directly by looking at the output directory output/ with most browsers. However, it is generally easier to start a local web server with the following command:

make view

This command will launch a web server on localhost:3000 allowing for quick and easy testing of the website.

Writing a blarg post

To write a blarg post it is as simple as creating a file in content/blarg/. Please note that the filename should be YYYY-MM-DD_text.md where YYYY is the year of the post, MM is the month of the post, and DD is the day of the post.

The writing is down using markdown and is fairly straight forward to do.

Using images

If you wish to use images you have to separately put them in content/imgs/blarg/ and you can reference them in the post with the inline ruby code <%= @items['/imgs/blarg/FILENAME'].path %> where FILENAME is replaced by the name of the file. This expression will be converted to the file path when compiling.

For Blarg posts please try and follow the convention in content/content/imgs/blarg to keep things organized. (content/content/imgs/blarg/YYYY/MM)