How to Add a Resource

Resources are stored as TOML files in src/data/resources/.

File format

Below is an example:

title = "Learn OpenGL"
link = "https://learnopengl.com/"
categories = ["Beginner Friendly", "Overview"]
description = "Learn OpenGL is the definitive resource for learning real-time renderer techniques as beginners."
formats = ["tutorial"]
languages = ["c++"]
priority = 100

[image]
src = "assets/learn_opengl.png"
alt = "a smiling textured container in OpenGL"

Required fields

Optional fields

Image

[image]
src = "assets/my-resource.png"
alt = "Description of the image"

Place the image file in src/data/resources/assets/. The alt field is optional.

Categories

Categories will be auto-generated if at least one resources refer to it. They can also be nested, for example, "Ray Tracing/GPU".

Despite being called “categories” rather than “tags”, you can have more than one categories for each resource.

Customization

By putting a corresponding file under src/data/resource_categories/, you can add description or customize the behavior of a category. Use the path relative to that directory as the category string, with / as the separator for nested categories.

Examples:

The markdown file has the following format:

---
title: "category title"
priority: 100
---

Description text

All the frontmatter attributes are optional.