Skip to content

Commit

Permalink
added c and mold_detect
Browse files Browse the repository at this point in the history
  • Loading branch information
christopher-besch committed Apr 17, 2024
1 parent 5e24714 commit 99c2984
Show file tree
Hide file tree
Showing 12 changed files with 84 additions and 11 deletions.
3 changes: 1 addition & 2 deletions gatsby-node.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const path = require("path");
const cloneDeep = require(`lodash/cloneDeep`);

// TODO: fix types
exports.createPages = async ({ graphql, actions }: any) => {
Expand All @@ -19,7 +18,7 @@ query GatsbyNode {
}
`);

const languages = ["python", "cpp", "typescript", "java", "rust"];
const languages = ["python", "cpp", "typescript", "java", "rust", "c"];

languages.forEach(language => {
actions.createPage({
Expand Down
2 changes: 0 additions & 2 deletions src/gatsby-types.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* eslint-disable */

/* prettier-ignore */

/* THIS FILE IS AUTOGENERATED. CHANGES WILL BE LOST ON SUBSEQUENT RUNS. */

declare namespace Queries {
Expand Down
Binary file added src/images/thumbs/mold_detect.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/projects/docker_borg_backup.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ link: https://github.com/christopher-besch/docker_borg_backup
priority: 6
date: 2022-09-04T00:00:00+00:00
languages: []
dependencies: []
dependencies: [docker, borg]
thumb: ../images/thumbs/docker_borg_backup.png
listed: true
---
Expand Down
2 changes: 1 addition & 1 deletion src/projects/docker_borg_remote.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ link: https://github.com/christopher-besch/docker_borg_remote
priority: 6
date: 2022-09-08T00:00:00+00:00
languages: []
dependencies: []
dependencies: [docker, borg]
thumb: ../images/thumbs/docker_borg_remote.png
listed: true
---
Expand Down
4 changes: 2 additions & 2 deletions src/projects/docker_cron.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ title: docker_cron
description: "Scheduling container tasks with docker-compose."
slug: docker_cron
link: https://github.com/christopher-besch/docker_cron
priority: 1
priority: 3
date: 2022-08-22T00:00:00+00:00
languages: []
dependencies: []
dependencies: [docker]
thumb: ../images/thumbs/docker_cron.png
listed: true
---
Expand Down
2 changes: 1 addition & 1 deletion src/projects/docker_git_backup.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ link: https://github.com/christopher-besch/docker_git_backup
priority: 6
date: 2022-08-19T00:00:00+00:00
languages: []
dependencies: []
dependencies: [docker]
thumb: ../images/thumbs/docker_git_backup.png
listed: true
---
Expand Down
2 changes: 1 addition & 1 deletion src/projects/docker_setups.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ link: https://github.com/christopher-besch/docker_setups
priority: 5
date: 2022-07-28T00:00:00+00:00
languages: []
dependencies: []
dependencies: [docker]
thumb: ../images/thumbs/docker_setups.png
listed: true
---
Expand Down
14 changes: 14 additions & 0 deletions src/projects/mold_detect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
type: project
title: mold_detect
description: "Warn residents of mold-friendly atmosphere and log opened windows."
slug: mold_detect
link: https://github.com/christopher-besch/mold_detect
priority: 1
date: 2023-11-15T00:00:00+00:00
languages: [c]
dependencies: [kicad, avr, i2c, uart, spi, make]
thumb: ../images/thumbs/mold_detect.png
listed: true
---

2 changes: 1 addition & 1 deletion src/utils/consts.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// highgest priority shown on index
export const max_priority_highlight = 1;
// highest priority shown in project list
export const max_priority_list_default = 3;
export const max_priority_list_default = 2;
// highest priority shown in language specific project list
export const max_priority_language_default = 30;
// highest priority shown in project list when "show all" has been selected
Expand Down
6 changes: 6 additions & 0 deletions src/utils/languages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,10 @@ export const languages = new Map<string, Language>([
icon: "/icons/rust.svg",
icon_mono: "/icons/rust.svg"
}],
["c", {
id: "c",
name: "C",
icon: "/icons/c.svg",
icon_mono: "/icons/c.svg"
}],
]);
56 changes: 56 additions & 0 deletions static/icons/c.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 99c2984

Please sign in to comment.