summaryrefslogtreecommitdiff
path: root/README.md
blob: 7f0217809b6851df3e35e49cfd4f068fe49dc25d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# The Mana World Policies
Contains the legal documents and policies observed by The Mana World.

## Policy files
Policy files are are located in the [policies](policies) directory.
Currently, only Markdown is supported for policy files.

### Front Matter
The Front Matter is a YAML document that defines the properties of the policy.

#### Required properties
- `name`: the full name of the policy
- `description`: a short summary of the policy

#### Optional properties
- `aliases`: an array of path aliases (redirects)
- `ignore`: prevents the policy file from being processed
- `autoupdate`: bindings for [Policybot](https://gitlab.com/evol/policybot)

### Example
```md
---
name: Policy Name
description: A short summary
aliases: [foo, bar]

autoupdate:
  forums: {forum: 1, topic: 69, post: 420}
  wiki: Protected_Wiki_Page
---

# title
content
```

<br>

---

## Generating the static site

### Dependencies
- GNU Make (available in the repos of most linux distros)
- [Deno](https://deno.land) 1.x (can be installed with `make deno`)

```sh
make build
```

## Instant prototyping [![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-click_to_open-blue?logo=gitpod)](https://gitpod.io/#https://git.themanaworld.org/org/policies)
Click the badge to launch a pre-configured online IDE