Skip to content

Commit

Permalink
feat: v0.1.0 gpt-3.5-turbo-16k-0613, USE_FULL_PROJECT_PROMPT
Browse files Browse the repository at this point in the history
smol-ai/developer#105
DEFAULT_MAX_TOKENS=0
  • Loading branch information
Alexander Gusman committed Jun 22, 2023
1 parent de96e5b commit d26764e
Show file tree
Hide file tree
Showing 14 changed files with 190 additions and 177 deletions.
2 changes: 0 additions & 2 deletions versions/latest/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# .gitignore

.hugo_build.lock
/public/
/resources/_gen/
Expand Down
2 changes: 1 addition & 1 deletion versions/latest/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
serve:
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
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

build:
docker run --rm -it -v $(PWD):/src -v $(PWD)/../../content:/src/content -v $(PWD)/../../static:/src/static klakegg/hugo:0.111.3
44 changes: 6 additions & 38 deletions versions/latest/shared_dependencies.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,7 @@
Files to generate:
- 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-switcher.js
- themes/devsparks/static/js/footer-image.js
- themes/devsparks/static/js/remark42.js
the app is: DevSparks Blog Specification

Shared dependencies:
- breakpoints
- theme-switch
- remark42
- footer-image-human
- footer-image-robot
- .layout__header
- .header__theme_switch
- .layout__link__active
- .section__tip__hackerman
- .section__tip__padawan
- .tip__container
- .tip__title
- .tip__image
- .article__title
- .article__date
- .article__tags
- .article__content
- .article__remark42
- .footer__container
- .footer__about_text
- .footer__author-photo
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

Now that we have a list of files, we need to understand what dependencies they share.
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.
Exclusively focus on the names of the shared dependencies, and do not add any other explanation.
15 changes: 8 additions & 7 deletions versions/latest/themes/devsparks/layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,34 @@
<link rel="stylesheet" href="{{ "css/syntax-highlighting.css" | relURL }}">
<link rel="stylesheet" href="{{ "css/theme-light.css" | relURL }}">
<link rel="stylesheet" href="{{ "css/theme-dark.css" | relURL }}">
<script src="{{ "js/theme-switcher.js" | relURL }}" defer></script>
</head>
<body class="body__theme__light">
<header class="layout__header">
<nav>
{{ $currentPage := . }}
{{ range .Site.Menus.main }}
<a class="{{if or (eq $currentPage.RelPermalink .URL) (eq $currentPage.Section .Identifier) }} layout__link__active{{end}}" href="{{.URL}}">{{ .Name }}</a>
<a class="{{ if or (eq $currentPage.RelPermalink .URL) (eq $currentPage.Section .Identifier) }}layout__link__active{{ end }}" href="{{ .URL }}">{{ .Name }}</a>
{{ end }}
</nav>
<nav>
<a href="https://github.com/goooseman/devsparks-blog">GitHub</a>
<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>
<button id="theme-switch" class="header__theme_switch" aria-label="Switch to dark theme">🌞</button>
<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 }}">
{{ if eq .Site.Params.theme "dark" }}🌞{{ else }}🌒{{ end }}
</button>
</nav>
</header>
<main>
{{ block "main" . }}{{ end }}
</main>
<footer>
<div class="footer__container">
<img id="footer-image-human" class="footer__author-photo" src="/human.png" srcset="/[email protected] 2x" alt="Author Photo">
<img id="footer-image-robot" class="footer__author-photo" src="/robot.png" srcset="/[email protected] 2x" alt="Author Photo">
<img id="footer-image-human" class="footer__author-photo" src="/human.png" srcset="/human.png 1x, /human@2x.png 2x" alt="Author Photo">
<img id="footer-image-robot" class="footer__author-photo" src="/robot.png" srcset="/robot.png 1x, /robot@2x.png 2x" alt="Author Photo">
<p class="footer__about_text">Footer Ipsum</p>
</div>
</footer>
<script src="{{ "js/footer-image.js" | relURL }}"></script>
<script src="{{ "js/remark42.js" | relURL }}"></script>
<script src="{{ "js/theme.js" | relURL }}" defer></script>
<script src="{{ "js/footer-image.js" | relURL }}" defer></script>
</body>
</html>
40 changes: 23 additions & 17 deletions versions/latest/themes/devsparks/layouts/_default/list.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
{{ define "main" }}
{{ if .IsHome }}
<h1>Hacks</h1>
{{ else }}
<h1>{{ .Title }}</h1>
{{ end }}

{{ range (where .Site.RegularPages "Type" "in" (slice "hacks")).GroupByDate "2006" }}
<h2>{{ .Key }}</h2>
<ul>
{{ range .Pages }}
<li>
<span class="date">{{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}</span>
<a class="title" href="{{ .Params.externalLink | default .RelPermalink }}">{{ .Title }}</a>
</li>
{{ end }}
</ul>
{{ end }}
{{ if eq .Title "Hacks" }}
<h1>{{ .Title }}</h1>
{{ else }}
<h1>{{ .Title }}</h1>
{{ end }}
{{ range (where .Site.RegularPages "Type" "in" (slice "hacks")).GroupByDate "2006" }}
<h2>{{ .Key }}</h2>
<ul>
{{ range .Pages }}
<li>
<span class="date">{{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}</span>
<a class="title" href="{{ .Params.externalLink | default .RelPermalink }}">{{ .Title }}</a>
{{ if .Params.tags }}
<span class="tags">
{{ range .Params.tags }}
<a href="/tags/{{ . | urlize }}">{{ . }}</a>
{{ end }}
</span>
{{ end }}
</li>
{{ end }}
</ul>
{{ end }}
{{ end }}
4 changes: 2 additions & 2 deletions versions/latest/themes/devsparks/layouts/_default/single.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{ define "main" }}
<article>
<h1>{{ .Title }}</h1>
<h1 class="article__title">{{ .Title }}</h1>
{{ with .Date }}
<p class="article__date">{{ .Format "January 2, 2006" }}</p>
{{ end }}
Expand All @@ -14,6 +14,6 @@ <h1>{{ .Title }}</h1>
<div class="article__content">
{{ .Content }}
</div>
<div id="remark42"></div>
<div id="remark42" class="article__remark42"></div>
</article>
{{ end }}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="tip__container section__tip__padawan">
<h4 class="tip__title">Padawan's Playground</h4>
<img class="tip__image" src="/padawan.png" srcset="/padawan.png 1x, /[email protected] 2x" alt="Padawan Image" />
<img class="tip__image" src="/padawan.png" srcset="/padawan.png 1x, /[email protected] 2x" alt="Padawan Image">
{{ .Inner | markdownify }}
</div>
56 changes: 36 additions & 20 deletions versions/latest/themes/devsparks/static/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,19 @@ a:hover {
.header__theme_switch {
background: transparent;
border: var(--border-width) solid;
padding: 0;
width: 22px;
height: 22px;
text-align: center;
}

.section__tip__hackerman .tip__container,
.section__tip__padawan .tip__container {
.section__tip__hackerman .tip__title,
.section__tip__padawan .tip__title {
font-style: italic;
font-weight: bold;
}

.tip__container {
position: relative;
margin-top: 300px;
margin-bottom: 5px;
Expand All @@ -49,30 +55,13 @@ a:hover {
margin-right: -20px;
}

.section__tip__hackerman .tip__image,
.section__tip__padawan .tip__image {
.tip__image {
position: absolute;
bottom: 100%;
left: 20%;
height: 280px;
}

.tip__title {
font-style: italic;
font-weight: bold;
}

.article__content h3 {
padding-top: 5px;
border-top: var(--border-width) solid currentColor;
}

.article__remark42 {
margin-left: -20px;
margin-right: -20px;
margin-top: 10px;
}

body {
width: 600px;
margin: 0 auto;
Expand All @@ -84,4 +73,31 @@ body {
width: 100%;
padding: 20px;
}
}

.layout__header nav {
display: flex;
}

.footer__container {
display: flex;
}

.footer__author-photo {
height: 160px;
}

.footer__about_text {
border: var(--border-color) solid;
}

.article__content h3 {
padding-top: 5px;
border-top: var(--border-width) solid currentColor;
}

.article__remark42 {
margin-left: -20px;
margin-right: -20px;
margin-top: 10px;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* themes/devsparks/static/css/syntax-highlighting.css */
/* Code syntax highlighting */

/* Single line code */
code {
Expand Down
60 changes: 27 additions & 33 deletions versions/latest/themes/devsparks/static/css/theme-dark.css
Original file line number Diff line number Diff line change
@@ -1,62 +1,56 @@
/* themes/devsparks/static/css/theme-dark.css */

:root {
--background-color: #40414e;
--text-color: #ffc000;
--border-color: #ffc000;
}

body.body__theme__dark {
body {
background-color: var(--background-color);
color: var(--text-color);
}

.header__theme_switch {
background: transparent;
border: 2px solid var(--border-color);
width: 22px;
height: 22px;
text-align: center;
.layout__header nav a {
color: var(--text-color);
border-bottom: 2px solid var(--text-color);
}

.layout__header {
display: flex;
justify-content: space-between;
padding-top: 10px;
.layout__header nav a:hover {
color: var(--background-color);
background-color: var(--text-color);
background-image: linear-gradient(to top, var(--text-color), var(--background-color));
background-position: 0 100%;
background-repeat: no-repeat;
background-size: 100% 200%;
}

.layout__link__active {
border: 2px solid;
}

.footer__about_text {
border: 2px solid var(--border-color);
border: var(--border-color) solid;
}

.tip__container {
position: relative;
margin-top: 300px;
margin-bottom: 5px;
border: 2px solid var(--border-color);
padding: 20px;
margin-left: -20px;
margin-right: -20px;
border: var(--border-color) solid;
}

.tip__image {
position: absolute;
bottom: 100%;
left: 20%;
height: 280px;
.header__theme_switch {
background: transparent;
border: 2px solid;
}

.article__content h3 {
padding-top: 5px;
border-top: 1px solid currentColor;
@media (max-width: 680px) {
body {
width: 100%;
padding: 20px;
}
}

.footer__container {
display: flex;
}

.article__remark42 {
margin-left: -20px;
margin-right: -20px;
margin-top: 10px;
.footer__author-photo {
height: 160px;
}
Loading

0 comments on commit d26764e

Please sign in to comment.