-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: v0.1.0 gpt-3.5-turbo-16k-0613, USE_FULL_PROJECT_PROMPT
smol-ai/developer#105 DEFAULT_MAX_TOKENS=0
- Loading branch information
Alexander Gusman
committed
Jun 22, 2023
1 parent
de96e5b
commit d26764e
Showing
14 changed files
with
190 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# .gitignore | ||
|
||
.hugo_build.lock | ||
/public/ | ||
/resources/_gen/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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
40
versions/latest/themes/devsparks/layouts/_default/list.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
versions/latest/themes/devsparks/layouts/shortcodes/padawans-playground.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
versions/latest/themes/devsparks/static/css/syntax-highlighting.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 27 additions & 33 deletions
60
versions/latest/themes/devsparks/static/css/theme-dark.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
Oops, something went wrong.