Skip to content

Commit 479bce8

Browse files
Merge pull request #5 from SWE-bench/add-interlinking
Add interlinking
2 parents 05c4794 + c406d90 commit 479bce8

7 files changed

Lines changed: 335 additions & 0 deletions

File tree

docs/assets/sweagent_logo.svg

Lines changed: 184 additions & 0 deletions
Loading

docs/assets/swebench_logo.png

65.7 KB
Loading

docs/assets/swerex_logo.svg

Lines changed: 38 additions & 0 deletions
Loading

docs/assets/swesmith_logo.png

192 KB
Loading

docs/css/bubbles.css

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
/* Floating bubbles styles */
2+
.floating-bubbles {
3+
position: fixed;
4+
bottom: 20px;
5+
right: 20px;
6+
display: flex;
7+
flex-direction: column;
8+
gap: 10px;
9+
z-index: 1000;
10+
}
11+
12+
.floating-bubbles-title {
13+
position: absolute;
14+
top: -30px;
15+
right: 0;
16+
font-size: 12px;
17+
color: #777;
18+
text-align: right;
19+
font-weight: bold;
20+
opacity: 0;
21+
visibility: hidden;
22+
transition:
23+
opacity 0.3s ease,
24+
visibility 0.3s ease;
25+
white-space: nowrap;
26+
}
27+
28+
.floating-bubbles:hover .floating-bubbles-title {
29+
opacity: 1;
30+
visibility: visible;
31+
}
32+
33+
.bubble {
34+
width: 40px;
35+
height: 40px;
36+
display: flex;
37+
justify-content: center;
38+
align-items: center;
39+
position: relative;
40+
transition: transform 0.3s ease;
41+
}
42+
43+
.bubble:hover {
44+
transform: scale(1.1);
45+
}
46+
47+
.bubble img {
48+
width: 40px;
49+
height: 40px;
50+
}
51+
52+
.bubble-tooltip {
53+
position: absolute;
54+
right: 60px;
55+
background-color: #333;
56+
color: white;
57+
padding: 5px 10px;
58+
border-radius: 4px;
59+
font-size: 14px;
60+
white-space: nowrap;
61+
opacity: 0;
62+
visibility: hidden;
63+
transition:
64+
opacity 0.3s ease,
65+
visibility 0.3s ease;
66+
}
67+
68+
.bubble:hover .bubble-tooltip {
69+
opacity: 1;
70+
visibility: visible;
71+
}
72+
73+
.floating-bubbles:hover .bubble-tooltip {
74+
opacity: 1;
75+
visibility: visible;
76+
}
77+
78+
/* Hide on mobile */
79+
@media (max-width: 768px) {
80+
.floating-bubbles {
81+
display: none;
82+
}
83+
}

docs/overrides/main.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{% extends "base.html" %}
2+
{% block announce %}
3+
SWE-agent 1.0 is the open source SOTA on SWE-bench lite! <a href="https://swe-agent.com/latest/installation/migration/">New features + migration guide.</a>
4+
{% endblock %}
5+
6+
{% block content %}
7+
{{ super() }}
8+
9+
<!-- Floating Bubbles -->
10+
<div class="floating-bubbles">
11+
<a href="https://swebench.com" class="bubble" title="SWE-bench">
12+
<img src="{{ config.site_url | default('/') }}assets/swebench_logo.png" alt="SWE-bench">
13+
<span class="bubble-tooltip">SWE-bench</span>
14+
</a>
15+
<a href="https://swesmith.com" class="bubble" title="SWE-smith">
16+
<img src="{{ config.site_url | default('/') }}assets/swesmith_logo.png" alt="SWE-smith">
17+
<span class="bubble-tooltip">SWE-smith</span>
18+
</a>
19+
<a href="https://swe-agent.com" class="bubble" title="SWE-agent">
20+
<img src="{{ config.site_url | default('/') }}assets/sweagent_logo.svg" alt="SWE-agent">
21+
<span class="bubble-tooltip">SWE-agent</span>
22+
</a>
23+
<a href="https://swe-rex.com" class="bubble" title="SWE-rex">
24+
<img src="{{ config.site_url | default('/') }}assets/swerex_logo.svg" alt="SWE-rex">
25+
<span class="bubble-tooltip">SWE-ReX</span>
26+
</a>
27+
</div>
28+
{% endblock %}

mkdocs.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
site_name: sb-cli
22
theme:
33
name: material
4+
custom_dir: docs/overrides
45
logo: assets/icon.svg
56
favicon: assets/icon.svg
67
icon:
@@ -82,6 +83,7 @@ plugins:
8283

8384
extra_css:
8485
- css/custom.css
86+
- css/bubbles.css
8587
extra:
8688
analytics:
8789
provider: google

0 commit comments

Comments
 (0)