-
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: v1.1.0 gpt-4-0613, USE_FULL_PROJECT_PROMPT=False
New feat: spoilers! smol-ai/developer#105 DEFAULT_MAX_TOKENS=0
- Loading branch information
Alexander Gusman
committed
Jun 23, 2023
1 parent
3d07c04
commit cf13a2d
Showing
17 changed files
with
176 additions
and
133 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,33 @@ | ||
.hugo_build.lock | ||
/public/ | ||
/resources/_gen/ | ||
/assets/jsconfig.json | ||
hugo_stats.json | ||
# .gitignore | ||
|
||
node_modules/ | ||
public/ | ||
resources/ | ||
.DS_Store | ||
*.log | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*.sublime-project | ||
*.sublime-workspace | ||
*.tmproj | ||
*.tmproject | ||
*.komodoproject | ||
*.idea | ||
*.iml | ||
*.cache | ||
*.pyc | ||
*.pyo | ||
*.egg-info/ | ||
dist/ | ||
build/ | ||
.sass-cache/ | ||
.jekyll-cache/ | ||
.jekyll-metadata | ||
_site/ | ||
.surge/ | ||
.gh-pages/ | ||
vendor/bundle/ | ||
vendor/cache/ | ||
vendor/gems/ | ||
vendor/ruby/ |
Empty file.
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,10 +1,8 @@ | ||
HUGO_VERSION := 0.111.3 | ||
DOCKER_IMAGE := klakegg/hugo:$(HUGO_VERSION) | ||
|
||
.PHONY: serve | ||
serve: | ||
docker run --rm -it -v $(PWD):/src -v $(PWD)/../../content:/src/content -v $(PWD)/../../static:/src/static -p 1313:1313 $(DOCKER_IMAGE) server --bind 0.0.0.0 --disableFastRender | ||
docker run --rm -it -v $(PWD):/src -v $(PWD)/../../content:/src/content -v $(PWD)/../../static:/src/static -p 1313:1313 $(DOCKER_IMAGE) server --bind 0.0.0.0 | ||
|
||
.PHONY: build | ||
build: | ||
docker run --rm -it -v $(PWD):/src -v $(PWD)/../../content:/src/content -v $(PWD)/../../static:/src/static $(DOCKER_IMAGE) | ||
docker run --rm -it -v $(PWD):/src -v $(PWD)/../../content:/src/content -v $(PWD)/../../static:/src/static $(DOCKER_IMAGE) --minify |
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
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
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,9 +1,9 @@ | ||
<!DOCTYPE html> | ||
<!doctype html> | ||
<html lang="{{ .Site.Language.Lang }}"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>{{ if .Title }}{{ .Title }} | {{ end }}{{ .Site.Title }}</title> | ||
<title>{{ .Title }}</title> | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Fira+Code&display=swap"> | ||
<link rel="stylesheet" href="{{ "css/main.css" | relURL }}"> | ||
<link rel="stylesheet" href="{{ "css/syntax-highlighting.css" | relURL }}"> | ||
|
@@ -15,40 +15,34 @@ | |
<link rel="manifest" href="/site.webmanifest"> | ||
<meta name="msapplication-TileColor" content="#ffc000"> | ||
<meta name="theme-color" content="#ffc000"> | ||
<script src="{{ "js/theme.js" | relURL }}" defer></script> | ||
<script src="{{ "js/footer-image.js" | relURL }}" defer></script> | ||
<script src="{{ "js/remark42.js" | relURL }}" defer></script> | ||
</head> | ||
<body class="{{ with .Site.Params.theme }}body__theme__{{ . }}{{ else }}body__theme__light{{ end }}"> | ||
<body class="{{ if eq (getenv "THEME") "dark" }}body__theme__dark{{ else }}body__theme__light{{ end }}"> | ||
<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}}" target='{{ if in .URL "https://" }}_blank{{ else }}_self{{ end }}'>{{ .Name }}</a> | ||
<a class="{{if or (eq $currentPage.RelPermalink .URL) (eq $currentPage.Section .Identifier) }} layout__link__active{{end}}" href="{{.URL}}" target='{{ if in .URL "https://" }}_blank{{ else }}_self{{ end }}'>{{ .Name }}</a> | ||
{{ end }} | ||
</nav> | ||
<nav> | ||
<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" target="_blank" rel="noopener noreferrer">Fix typo</a> | ||
<button id="theme-switch" class="header__theme_switch" aria-label="Switch to dark theme">🌒</button> | ||
<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" target="_blank">Fix typo</a> | ||
<button id="theme-switch" class="header__theme_switch" aria-label="Switch theme" onclick="themeSwitcher()"></button> | ||
</nav> | ||
</header> | ||
<main> | ||
{{ block "main" . }}{{ end }} | ||
</main> | ||
<footer> | ||
<footer class="layout__footer"> | ||
<div class="footer__container"> | ||
<img id="footer-image-human" src="/human.png" srcset="/[email protected] 2x" alt="Author photo"> | ||
<img id="footer-image-robot" src="/robot.png" srcset="/[email protected] 2x" alt="Author photo" style="display: none;"> | ||
<img id="footer-image-human" src="/human.png" srcset="/[email protected] 2x" alt="Author photo" onmouseover="footerImageHover(true)"> | ||
<img id="footer-image-robot" src="/robot.png" srcset="/[email protected] 2x" alt="Author photo" onmouseover="footerImageHover(false)" style="display: none;"> | ||
<div class="footer__about_text"> | ||
Hello, I'm Alex.<br /> | ||
Welcome to DevSparks, a cosy corner of the web where code meets fun. I've always believed that the best way to learn is | ||
by doing, and the best way to do is by having fun. That's why I've created DevSparks - to share the joy and the power of | ||
development with you.<br /> | ||
Here, you'll find bite-sized lifehacks about everything from CLI power usage to git tricks, all crafted with a dash of | ||
humor and a bucketload of passion.<br /> | ||
So grab a cup of coffee, get comfy, and let's explore the incredible world of coding together! | ||
Footer Ipsum | ||
</div> | ||
</div> | ||
</footer> | ||
<script src="{{ "js/theme.js" | relURL }}" defer></script> | ||
<script src="{{ "js/footer-image.js" | relURL }}" defer></script> | ||
<script src="{{ "js/remark42.js" | relURL }}" defer></script> | ||
</body> | ||
</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
3 changes: 1 addition & 2 deletions
3
versions/latest/themes/devsparks/layouts/shortcodes/hackermans-tip.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,6 +1,5 @@ | ||
|
||
<div class="tip__container section__tip__hackerman"> | ||
<h4 class="tip__title">Hackerman's tip</h4> | ||
<img class="tip__image" src="/hackerman.png" srcset="/[email protected] 2x" alt="Hackerman's tip image"> | ||
<img class="tip__image" src="/hackerman.png" srcset="/[email protected] 2x" alt="Hackerman's tip"> | ||
{{ .Inner | markdownify }} | ||
</div> |
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="/[email protected] 2x" alt="Padawan's Playground"> | ||
<img class="tip__image" src="/padawan.png" srcset="/[email protected] 2x" /> | ||
{{ .Inner | markdownify }} | ||
</div> |
5 changes: 5 additions & 0 deletions
5
versions/latest/themes/devsparks/layouts/shortcodes/spoiler.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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{{- $title := .Get "title" -}} | ||
<details> | ||
<summary>{{ $title }}</summary> | ||
{{ .Inner | markdownify }} | ||
</details> |
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
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
Oops, something went wrong.