Skip to content

Commit a3f733b

Browse files
committed
Some style tweaks
1 parent 9e52c6c commit a3f733b

File tree

2 files changed

+34
-24
lines changed

2 files changed

+34
-24
lines changed

docs/index.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,8 @@
1111
So you want to build your own AI agent from scratch? The good news: It's super simple, especially with more recent language models.
1212
We won't be using any external packages (other than to query the LM), and our initial minimal agent is only some 60 lines long.
1313

14-
And if you think this is too simplified and can never work in practice: Our [`mini` agent](https://mini-swe-agent.com) is built exactly the same (just with a bit more fluff to support more models be a bit more convenient) and it scores up to 74% on [SWE-bench verified](https://www.swebench.com/), only a few percent below highly optimized agents.
15-
16-
Your final result will look like this:
17-
18-
14+
And if you think this is too simplified and can never work in practice: Our [`mini` agent](https://mini-swe-agent.com) is built exactly the same, and is used for research at Princeton, Stanford, NVIDIA, Anyscale, essentials.ai and more.
15+
Using this simple guide you can score up to 74% on [SWE-bench verified](https://www.swebench.com/), only a few percent below highly optimized agents.
1916

2017
## Our first prototype in 50 lines
2118

@@ -336,7 +333,7 @@ def execute_action(command: str) -> str:
336333
return result.stdout
337334
```
338335

339-
??? info "Understanding `subprocess.run arguments`"
336+
??? info "Understanding `subprocess.run` arguments"
340337
Let's break down the keyword arguments we're using:
341338

342339
- `shell=True` - Allows running arbitrary shell commands given as a string (like `cd`, `ls`, pipes, etc.). Be careful with untrusted input!

docs/stylesheets/extra.css

Lines changed: 31 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -41,35 +41,48 @@
4141
}
4242

4343
/* Layout adjustments */
44+
:root {
45+
--content-max: 40rem; /* main text width (~800px) */
46+
--toc-width: 16rem; /* room for right TOC */
47+
--layout-gap: 2rem;
48+
}
4449

45-
/* Move sidebar to the right and swap positions */
50+
/* Keep sidebar on the right, but don't push main text left; center main text */
4651
@media screen and (min-width: 76.25em) {
52+
.md-grid,
53+
.md-main__inner {
54+
max-width: calc(var(--content-max) + var(--toc-width) + 2 * var(--layout-gap));
55+
width: 100%;
56+
}
57+
58+
.md-main__inner {
59+
display: grid;
60+
grid-template-columns: 1fr minmax(0, var(--content-max)) var(--toc-width);
61+
gap: var(--layout-gap);
62+
align-items: start;
63+
}
64+
65+
.md-content {
66+
grid-column: 2;
67+
}
68+
69+
/* Primary sidebar (TOC) on the right */
4770
.md-sidebar--primary {
71+
grid-column: 3;
72+
position: sticky;
73+
top: var(--md-header-height, 3.2rem);
74+
align-self: start;
4875
left: auto;
4976
right: 0;
5077
order: 2;
5178
}
52-
79+
80+
/* Secondary sidebar not used */
5381
.md-sidebar--secondary {
54-
left: 0;
55-
right: auto;
56-
order: 1;
82+
display: none;
5783
}
5884
}
5985

60-
/* Narrower content width (closer to 800px like original) */
61-
.md-grid {
62-
max-width: 56rem; /* Reduced from 61rem for narrower content */
63-
}
64-
65-
.md-main__inner {
66-
max-width: 56rem;
67-
}
68-
69-
.md-content {
70-
max-width: 50rem; /* Further constrain the actual content area */
71-
}
72-
7386
/* More subtle header - white/black background instead of blue */
7487
.md-header {
7588
background-color: var(--md-default-bg-color);

0 commit comments

Comments
 (0)