Skip to content

Commit 62c57d0

Browse files
committed
Add titles to most pages, fix links
Signed-off-by: Robert Detjens <github@detjens.dev>
1 parent 0f11f1e commit 62c57d0

File tree

12 files changed

+96
-18
lines changed

12 files changed

+96
-18
lines changed

docs/.vitepress/config.mts

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,15 @@ export default defineConfig({
88
themeConfig: {
99
// https://vitepress.dev/reference/default-theme-config
1010
nav: [
11-
{ text: "Home", link: "/" },
12-
// { text: "Examples", link: "/markdown-examples" },
11+
{ text: "Setup", link: "for-sysadmins/quickstart" },
12+
{
13+
text: "Config Reference",
14+
link: "for-sysadmins/config-reference",
15+
},
16+
{
17+
text: "Challenge Reference",
18+
link: "for-authors/challenge-reference",
19+
},
1320
],
1421

1522
// auto generate sidebar from directory structure, via vitepress-sidebar
@@ -19,10 +26,14 @@ export default defineConfig({
1926
useTitleFromFileHeading: true,
2027
useTitleFromFrontmatter: true,
2128
keepMarkdownSyntaxFromTitle: true,
29+
useFolderTitleFromIndexFile: true,
2230
// transform name to sentence case
2331
hyphenToSpace: true,
2432
underscoreToSpace: true,
25-
capitalizeEachWords: true,
33+
// capitalizeEachWords: true,
34+
35+
sortFolderTo: "bottom",
36+
sortMenusByFrontmatterOrder: true,
2637
}),
2738

2839
socialLinks: [

docs/for-authors/challenge-reference.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# Challenge Config Reference
1+
---
2+
title: <code>challenge.yaml</code> Reference
3+
---
4+
5+
# `challenge.yaml` Config Reference
26

37
Challenge configuration is expected to be at `<category>/<name>/challenge.yaml`.
48

docs/for-authors/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
title: For Challenge Authors
3+
---

docs/for-authors/quickstart.md

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,25 @@
1-
# Challenge Config Quickstart
1+
# Challenge Quickstart
22

33
All information about a challenge is configured in a `challenge.yaml` in the
44
challenge's directory in the repo, generally `<category>/<name>`.
55

6-
For a tldr: see a full example for [a TCP/`nc` challenge](#full-tcp-example) or [a web challenge](#full-http-example).
6+
There are a few [complete examples](#examples) at the bottom of the page.
77

8-
### Metadata
8+
### Name
99

10-
Self explanatory.
10+
The challenge name can contain any characters, though whitespace or special
11+
characters may be removed in some cases.
1112

1213
```yaml
1314
name: yet another pyjail
15+
```
16+
17+
### Author
18+
19+
The author or authors that created this challenge. Multiple authors are not
20+
handled
21+
22+
```yaml
1423
author: somebody, John Author
1524
```
1625
@@ -152,15 +161,15 @@ description: |-
152161
153162
{{ nc }}
154163
164+
flag:
165+
file: ./flag
166+
155167
provide:
156168
- from: main
157169
include:
158170
- /chal/notsh
159171
- /lib/x86_64-linux-gnu/libc.so.6
160172

161-
flag:
162-
file: ./flag
163-
164173
pods:
165174
- name: main
166175
build: .
@@ -199,3 +208,22 @@ pods:
199208
expose:
200209
http: bar # subdomain only
201210
```
211+
212+
## Full static file example
213+
214+
```yaml
215+
name: ghostint
216+
author: the guessers geo
217+
description: |
218+
where was this picture taken?
219+
220+
flag format: `example{LAT__LONG}`, rounded to five places
221+
222+
difficulty: 1
223+
224+
flag:
225+
string: "example{51.51771__-0.20495}"
226+
227+
provide:
228+
- the-view-from-your-balcony.png
229+
```
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
# Challenge Repo Structure
2+
13
expected layout of challenges repo
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
title: <code>rcds.yaml</code> Reference
3+
---
4+
5+
# `rcds.yaml`
6+
7+
`rcds.yaml` is the 'global' config for beaverCDS. This defines what challenges
8+
are available, where to deploy them to, and what credentials to use for building
9+
and deploying them.
10+
11+
This will always be at `/rcds.yaml` in the challenges repository.

docs/for-sysadmins/config.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

docs/for-sysadmins/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
title: For Sysadmins
3+
---

docs/for-sysadmins/install.md

Lines changed: 0 additions & 1 deletion
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)