Skip to content

Commit ccd0e02

Browse files
Merge pull request #140 from ubcctf/crimist/migrate-docs
Migrate docs from old notion
2 parents 34f7acc + af20657 commit ccd0e02

File tree

1 file changed

+62
-3
lines changed

1 file changed

+62
-3
lines changed

README.md

+62-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Source code for Maple Bacon's team website.
44

5-
## Build Instructions
5+
## Build Instructions (Nix)
66

77
Install [Nix](https://nixos.org/download) on any Linux (WSL2 on Windows) or
88
macOS computer, and enable the `flakes` and `nix-command` experimental features
@@ -22,9 +22,9 @@ and within the `nix develop` shell,
2222
jekyll <build|serve>
2323
```
2424

25-
## Build Instructions (with system Ruby)
25+
## Build Instructions (system Ruby)
2626

27-
Check that you have Ruby installed and install `bundler`.
27+
Ensure you have Ruby and Bundler installed:
2828

2929
```bash
3030
ruby -v
@@ -53,3 +53,62 @@ infrastructure to build native extensions from source.
5353
After changing the gems, run `lock-gems` from the `nix develop` shell (or,
5454
`bundix -l`). This will update `gemset.nix`, used by the Nix infrastructure
5555
to automatically grab the proper Jekyll.
56+
57+
## Creating a new author
58+
59+
Create a new file with the following contents at the path `_authors/{short_name}.md`:
60+
61+
* `short_name`: Your alias, must match your author file name. No spaces. This will displayed on blog posts and the article list.
62+
* `name`: Your name or nickname for the about page.
63+
* `position`: Categories you play in. Can be any or multiple of the following, comma separated:
64+
* Web
65+
* Crypto
66+
* Misc
67+
* Rev
68+
* Pwn
69+
* `website`: Link to your website or a social media account.
70+
* `website_title`: Pretty name of your website - the content within the \<a> tag.
71+
* `layout`: must be `author`
72+
73+
Template:
74+
75+
```md
76+
---
77+
short_name: hackerman
78+
name: John Doe
79+
position: Web,Crypto,Misc,Rev,Pwn
80+
website: https://www.web.site
81+
website_title: web.site
82+
layout: author
83+
---
84+
Some description.
85+
```
86+
87+
Finally, open a PR.
88+
89+
## Creating blog posts
90+
91+
Create a new file with the following contents at the path `_posts/{yyyy}-{mm}-{dd}-{ctf_name}-{challenge_name}.md`:
92+
93+
* `layout`: must be `author`
94+
* `title`: Name of your blog post, format is `"[{ctf_name}] {challenge_name}"`
95+
* `author`: Authors `short_name`. Author must already exist in `_authors/`, see [creating a new author](#creating-a-new-author).
96+
97+
Template:
98+
99+
```md
100+
---
101+
layout: post
102+
title: "[FakeCTF 2024] Challenge Name"
103+
author: hackerman
104+
---
105+
106+
Post contents support *markdown*!
107+
```
108+
109+
If your post has any assets place them in `assets/` and link the path appropriately in the post contents.
110+
111+
> [!TIP]
112+
> We should probably standardize the `assets/` format. It's currently a bit of a mess.
113+
114+
Finally, test the post locally and open a PR.

0 commit comments

Comments
 (0)