Skip to content

Commit bd076e4

Browse files
committed
Docs: Add "something unclear?" footer to all docs pages
1 parent 12f8414 commit bd076e4

23 files changed

+108
-3
lines changed

docs/_footer.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<div class="grid cards">
2+
<a href="https://github.com/emagedoc/CodeClash/issues/new" class="nav-card-link">
3+
<div class="nav-card">
4+
<div class="nav-card-header">
5+
<span class="material-icons nav-card-icon">bug_report</span>
6+
<span class="nav-card-title">Something broken/unclear?</span>
7+
</div>
8+
<p class="nav-card-description">Open an issue on GitHub!</p>
9+
</div>
10+
</a>
11+
12+
<a href="https://join.slack.com/t/codeclash-workspace/shared_invite/your-invite-link" class="nav-card-link">
13+
<div class="nav-card">
14+
<div class="nav-card-header">
15+
<span class="material-icons nav-card-icon">help</span>
16+
<span class="nav-card-title">Open-ended discussions</span>
17+
</div>
18+
<p class="nav-card-description">Join our Slack!</p>
19+
</div>
20+
</a>
21+
</div>

docs/assets/navigation_cards.css

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/* Navigation cards styling */
2+
.nav-card-link {
3+
text-decoration: none;
4+
color: inherit;
5+
display: block;
6+
}
7+
8+
.nav-card {
9+
padding: 1rem;
10+
border: 1px solid var(--md-default-fg-color--lighter);
11+
border-radius: 0.5rem;
12+
transition:
13+
box-shadow 0.2s,
14+
transform 0.2s;
15+
}
16+
17+
.nav-card:hover {
18+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
19+
transform: translateY(-2px);
20+
}
21+
22+
.nav-card-header {
23+
display: flex;
24+
align-items: center;
25+
margin-bottom: 0.5rem;
26+
}
27+
28+
.nav-card-icon {
29+
margin-right: 0.5rem;
30+
font-size: 1.2rem;
31+
color: var(--md-default-fg-color);
32+
}
33+
34+
.nav-card-description {
35+
margin: 0;
36+
color: var(--md-default-fg-color--light);
37+
}
38+
39+
.nav-card-title {
40+
margin: 0;
41+
font-weight: bold;
42+
color: var(--md-default-fg-color);
43+
}

docs/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,5 @@ If you use CodeClash in your research, please cite:
4444
```bibtex
4545
4646
```
47+
48+
--8<-- "docs/_footer.md"

docs/quickstart.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,5 @@ Use the trajectory viewer to step through each round and see:
141141
- [Learn about tournaments](usage/tournaments.md)
142142
- [Explore the API](reference/index.md)
143143
- [Build custom agents](reference/player/player.md)
144+
145+
--8<-- "docs/_footer.md"

docs/reference/arenas/battlecode.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ BattleCode is a programming competition where players write Java code to control
1616
options:
1717
show_root_heading: true
1818
heading_level: 2
19+
20+
--8<-- "docs/_footer.md"

docs/reference/arenas/battlesnake.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,5 @@ players:
4949
options:
5050
show_root_heading: true
5151
heading_level: 2
52+
53+
--8<-- "docs/_footer.md"

docs/reference/arenas/corewar.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,5 @@ players:
3939
options:
4040
show_root_heading: true
4141
heading_level: 2
42+
43+
--8<-- "docs/_footer.md"

docs/reference/arenas/dummy.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,5 @@ players:
3232
- name: TestAgent
3333
model: gpt-4
3434
```
35+
36+
--8<-- "docs/_footer.md"

docs/reference/arenas/game.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,5 @@ Each game runs in its own Docker container with:
5353
options:
5454
show_root_heading: true
5555
heading_level: 3
56+
57+
--8<-- "docs/_footer.md"

docs/reference/arenas/halite.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,5 @@ players:
4040
options:
4141
show_root_heading: true
4242
heading_level: 2
43+
44+
--8<-- "docs/_footer.md"

0 commit comments

Comments
 (0)