Skip to content

Commit d26764e

Browse files
author
Alexander Gusman
committed
feat: v0.1.0 gpt-3.5-turbo-16k-0613, USE_FULL_PROJECT_PROMPT
smol-ai/developer#105 DEFAULT_MAX_TOKENS=0
1 parent de96e5b commit d26764e

File tree

14 files changed

+190
-177
lines changed

14 files changed

+190
-177
lines changed

versions/latest/.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# .gitignore
2-
31
.hugo_build.lock
42
/public/
53
/resources/_gen/

versions/latest/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
serve:
2-
docker run --rm -it -v $(PWD):/src -v $(PWD)/../../content:/src/content -v $(PWD)/../../static:/src/static -p 1313:1313 klakegg/hugo:0.111.3 server --bind 0.0.0.0
2+
docker run --rm -it -v $(PWD):/src -v $(PWD)/../../content:/src/content -v $(PWD)/../../static:/src/static -p 1313:1313 klakegg/hugo:0.111.3 server
33

44
build:
55
docker run --rm -it -v $(PWD):/src -v $(PWD)/../../content:/src/content -v $(PWD)/../../static:/src/static klakegg/hugo:0.111.3
Lines changed: 6 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,7 @@
1-
Files to generate:
2-
- Makefile
3-
- .gitignore
4-
- config.yaml
5-
- themes/devsparks/layouts/_default/baseof.html
6-
- themes/devsparks/layouts/_default/list.html
7-
- themes/devsparks/layouts/_default/single.html
8-
- themes/devsparks/layouts/shortcodes/hackermans-tip.html
9-
- themes/devsparks/layouts/shortcodes/padawans-playground.html
10-
- themes/devsparks/static/css/main.css
11-
- themes/devsparks/static/css/syntax-highlighting.css
12-
- themes/devsparks/static/css/theme-light.css
13-
- themes/devsparks/static/css/theme-dark.css
14-
- themes/devsparks/static/js/theme-switcher.js
15-
- themes/devsparks/static/js/footer-image.js
16-
- themes/devsparks/static/js/remark42.js
1+
the app is: DevSparks Blog Specification
172

18-
Shared dependencies:
19-
- breakpoints
20-
- theme-switch
21-
- remark42
22-
- footer-image-human
23-
- footer-image-robot
24-
- .layout__header
25-
- .header__theme_switch
26-
- .layout__link__active
27-
- .section__tip__hackerman
28-
- .section__tip__padawan
29-
- .tip__container
30-
- .tip__title
31-
- .tip__image
32-
- .article__title
33-
- .article__date
34-
- .article__tags
35-
- .article__content
36-
- .article__remark42
37-
- .footer__container
38-
- .footer__about_text
39-
- .footer__author-photo
3+
the files we have decided to generate are: Makefile, .gitignore, config.yaml, themes/devsparks/layouts/_default/baseof.html, themes/devsparks/layouts/_default/list.html, themes/devsparks/layouts/_default/single.html, themes/devsparks/layouts/shortcodes/hackermans-tip.html, themes/devsparks/layouts/shortcodes/padawans-playground.html, themes/devsparks/static/css/main.css, themes/devsparks/static/css/syntax-highlighting.css, themes/devsparks/static/css/theme-light.css, themes/devsparks/static/css/theme-dark.css, themes/devsparks/static/js/theme.js, themes/devsparks/static/js/footer-image.js, themes/devsparks/static/js/remark42.js
4+
5+
Now that we have a list of files, we need to understand what dependencies they share.
6+
Please name and briefly describe what is shared between the files we are generating, including exported variables, data schemas, id names of every DOM elements that javascript functions will use, message names, and function names.
7+
Exclusively focus on the names of the shared dependencies, and do not add any other explanation.

versions/latest/themes/devsparks/layouts/_default/baseof.html

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,33 +8,34 @@
88
<link rel="stylesheet" href="{{ "css/syntax-highlighting.css" | relURL }}">
99
<link rel="stylesheet" href="{{ "css/theme-light.css" | relURL }}">
1010
<link rel="stylesheet" href="{{ "css/theme-dark.css" | relURL }}">
11-
<script src="{{ "js/theme-switcher.js" | relURL }}" defer></script>
1211
</head>
1312
<body class="body__theme__light">
1413
<header class="layout__header">
1514
<nav>
1615
{{ $currentPage := . }}
1716
{{ range .Site.Menus.main }}
18-
<a class="{{if or (eq $currentPage.RelPermalink .URL) (eq $currentPage.Section .Identifier) }} layout__link__active{{end}}" href="{{.URL}}">{{ .Name }}</a>
17+
<a class="{{ if or (eq $currentPage.RelPermalink .URL) (eq $currentPage.Section .Identifier) }}layout__link__active{{ end }}" href="{{ .URL }}">{{ .Name }}</a>
1918
{{ end }}
2019
</nav>
2120
<nav>
2221
<a href="https://github.com/goooseman/devsparks-blog">GitHub</a>
2322
<a href="https://github.com/goooseman/devsparks-blog/issues/new?title=DevSparks+Feedback&body=I+found+something+wrong+on+this+page%3A%0A%0A++{{ .Permalink }}%0A%0A++Here%27s+what+it+is%3A">Fix typo</a>
24-
<button id="theme-switch" class="header__theme_switch" aria-label="Switch to dark theme">🌞</button>
23+
<button id="theme-switch" class="header__theme_switch" aria-label="{{ if eq .Site.Params.theme "dark" }}Switch to light theme{{ else }}Switch to dark theme{{ end }}">
24+
{{ if eq .Site.Params.theme "dark" }}🌞{{ else }}🌒{{ end }}
25+
</button>
2526
</nav>
2627
</header>
2728
<main>
2829
{{ block "main" . }}{{ end }}
2930
</main>
3031
<footer>
3132
<div class="footer__container">
32-
<img id="footer-image-human" class="footer__author-photo" src="/human.png" srcset="/[email protected] 2x" alt="Author Photo">
33-
<img id="footer-image-robot" class="footer__author-photo" src="/robot.png" srcset="/[email protected] 2x" alt="Author Photo">
33+
<img id="footer-image-human" class="footer__author-photo" src="/human.png" srcset="/human.png 1x, /human@2x.png 2x" alt="Author Photo">
34+
<img id="footer-image-robot" class="footer__author-photo" src="/robot.png" srcset="/robot.png 1x, /robot@2x.png 2x" alt="Author Photo">
3435
<p class="footer__about_text">Footer Ipsum</p>
3536
</div>
3637
</footer>
37-
<script src="{{ "js/footer-image.js" | relURL }}"></script>
38-
<script src="{{ "js/remark42.js" | relURL }}"></script>
38+
<script src="{{ "js/theme.js" | relURL }}" defer></script>
39+
<script src="{{ "js/footer-image.js" | relURL }}" defer></script>
3940
</body>
4041
</html>
Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
11
{{ define "main" }}
2-
{{ if .IsHome }}
3-
<h1>Hacks</h1>
4-
{{ else }}
5-
<h1>{{ .Title }}</h1>
6-
{{ end }}
7-
8-
{{ range (where .Site.RegularPages "Type" "in" (slice "hacks")).GroupByDate "2006" }}
9-
<h2>{{ .Key }}</h2>
10-
<ul>
11-
{{ range .Pages }}
12-
<li>
13-
<span class="date">{{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}</span>
14-
<a class="title" href="{{ .Params.externalLink | default .RelPermalink }}">{{ .Title }}</a>
15-
</li>
16-
{{ end }}
17-
</ul>
18-
{{ end }}
2+
{{ if eq .Title "Hacks" }}
3+
<h1>{{ .Title }}</h1>
4+
{{ else }}
5+
<h1>{{ .Title }}</h1>
6+
{{ end }}
7+
{{ range (where .Site.RegularPages "Type" "in" (slice "hacks")).GroupByDate "2006" }}
8+
<h2>{{ .Key }}</h2>
9+
<ul>
10+
{{ range .Pages }}
11+
<li>
12+
<span class="date">{{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}</span>
13+
<a class="title" href="{{ .Params.externalLink | default .RelPermalink }}">{{ .Title }}</a>
14+
{{ if .Params.tags }}
15+
<span class="tags">
16+
{{ range .Params.tags }}
17+
<a href="/tags/{{ . | urlize }}">{{ . }}</a>
18+
{{ end }}
19+
</span>
20+
{{ end }}
21+
</li>
22+
{{ end }}
23+
</ul>
24+
{{ end }}
1925
{{ end }}

versions/latest/themes/devsparks/layouts/_default/single.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{ define "main" }}
22
<article>
3-
<h1>{{ .Title }}</h1>
3+
<h1 class="article__title">{{ .Title }}</h1>
44
{{ with .Date }}
55
<p class="article__date">{{ .Format "January 2, 2006" }}</p>
66
{{ end }}
@@ -14,6 +14,6 @@ <h1>{{ .Title }}</h1>
1414
<div class="article__content">
1515
{{ .Content }}
1616
</div>
17-
<div id="remark42"></div>
17+
<div id="remark42" class="article__remark42"></div>
1818
</article>
1919
{{ end }}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="tip__container section__tip__padawan">
22
<h4 class="tip__title">Padawan's Playground</h4>
3-
<img class="tip__image" src="/padawan.png" srcset="/padawan.png 1x, /[email protected] 2x" alt="Padawan Image" />
3+
<img class="tip__image" src="/padawan.png" srcset="/padawan.png 1x, /[email protected] 2x" alt="Padawan Image">
44
{{ .Inner | markdownify }}
55
</div>

versions/latest/themes/devsparks/static/css/main.css

Lines changed: 36 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,19 @@ a:hover {
3333
.header__theme_switch {
3434
background: transparent;
3535
border: var(--border-width) solid;
36+
padding: 0;
3637
width: 22px;
3738
height: 22px;
3839
text-align: center;
3940
}
4041

41-
.section__tip__hackerman .tip__container,
42-
.section__tip__padawan .tip__container {
42+
.section__tip__hackerman .tip__title,
43+
.section__tip__padawan .tip__title {
44+
font-style: italic;
45+
font-weight: bold;
46+
}
47+
48+
.tip__container {
4349
position: relative;
4450
margin-top: 300px;
4551
margin-bottom: 5px;
@@ -49,30 +55,13 @@ a:hover {
4955
margin-right: -20px;
5056
}
5157

52-
.section__tip__hackerman .tip__image,
53-
.section__tip__padawan .tip__image {
58+
.tip__image {
5459
position: absolute;
5560
bottom: 100%;
5661
left: 20%;
5762
height: 280px;
5863
}
5964

60-
.tip__title {
61-
font-style: italic;
62-
font-weight: bold;
63-
}
64-
65-
.article__content h3 {
66-
padding-top: 5px;
67-
border-top: var(--border-width) solid currentColor;
68-
}
69-
70-
.article__remark42 {
71-
margin-left: -20px;
72-
margin-right: -20px;
73-
margin-top: 10px;
74-
}
75-
7665
body {
7766
width: 600px;
7867
margin: 0 auto;
@@ -84,4 +73,31 @@ body {
8473
width: 100%;
8574
padding: 20px;
8675
}
76+
}
77+
78+
.layout__header nav {
79+
display: flex;
80+
}
81+
82+
.footer__container {
83+
display: flex;
84+
}
85+
86+
.footer__author-photo {
87+
height: 160px;
88+
}
89+
90+
.footer__about_text {
91+
border: var(--border-color) solid;
92+
}
93+
94+
.article__content h3 {
95+
padding-top: 5px;
96+
border-top: var(--border-width) solid currentColor;
97+
}
98+
99+
.article__remark42 {
100+
margin-left: -20px;
101+
margin-right: -20px;
102+
margin-top: 10px;
87103
}

versions/latest/themes/devsparks/static/css/syntax-highlighting.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* themes/devsparks/static/css/syntax-highlighting.css */
1+
/* Code syntax highlighting */
22

33
/* Single line code */
44
code {
Lines changed: 27 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,56 @@
1-
/* themes/devsparks/static/css/theme-dark.css */
2-
31
:root {
42
--background-color: #40414e;
53
--text-color: #ffc000;
64
--border-color: #ffc000;
75
}
86

9-
body.body__theme__dark {
7+
body {
108
background-color: var(--background-color);
119
color: var(--text-color);
1210
}
1311

14-
.header__theme_switch {
15-
background: transparent;
16-
border: 2px solid var(--border-color);
17-
width: 22px;
18-
height: 22px;
19-
text-align: center;
12+
.layout__header nav a {
13+
color: var(--text-color);
14+
border-bottom: 2px solid var(--text-color);
2015
}
2116

22-
.layout__header {
23-
display: flex;
24-
justify-content: space-between;
25-
padding-top: 10px;
17+
.layout__header nav a:hover {
18+
color: var(--background-color);
19+
background-color: var(--text-color);
20+
background-image: linear-gradient(to top, var(--text-color), var(--background-color));
21+
background-position: 0 100%;
22+
background-repeat: no-repeat;
23+
background-size: 100% 200%;
2624
}
2725

2826
.layout__link__active {
2927
border: 2px solid;
3028
}
3129

3230
.footer__about_text {
33-
border: 2px solid var(--border-color);
31+
border: var(--border-color) solid;
3432
}
3533

3634
.tip__container {
37-
position: relative;
38-
margin-top: 300px;
39-
margin-bottom: 5px;
40-
border: 2px solid var(--border-color);
41-
padding: 20px;
42-
margin-left: -20px;
43-
margin-right: -20px;
35+
border: var(--border-color) solid;
4436
}
4537

46-
.tip__image {
47-
position: absolute;
48-
bottom: 100%;
49-
left: 20%;
50-
height: 280px;
38+
.header__theme_switch {
39+
background: transparent;
40+
border: 2px solid;
5141
}
5242

53-
.article__content h3 {
54-
padding-top: 5px;
55-
border-top: 1px solid currentColor;
43+
@media (max-width: 680px) {
44+
body {
45+
width: 100%;
46+
padding: 20px;
47+
}
48+
}
49+
50+
.footer__container {
51+
display: flex;
5652
}
5753

58-
.article__remark42 {
59-
margin-left: -20px;
60-
margin-right: -20px;
61-
margin-top: 10px;
54+
.footer__author-photo {
55+
height: 160px;
6256
}

0 commit comments

Comments
 (0)