Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Site maintenance #182

Merged
merged 6 commits into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_modules/
dist/
.astro/
*.tsbuildinfo
.DS_Store
.vercel
Expand Down
11 changes: 5 additions & 6 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { defineConfig } from 'astro/config';
import preact from '@astrojs/preact';

import react from '@astrojs/react';

import image from "@astrojs/image";
import preact from '@astrojs/preact';

// https://astro.build/config
export default defineConfig({
integrations: [// Enable Preact to support Preact JSX components.
preact(), // Enable React for the Algolia search component.
react(), image()],
site: `https://keebfolio.netlify.app`
integrations: [react(), preact()],
site: `https://keebfolio.netlify.app`,
trailingSlash: "never"
});
14,838 changes: 5,076 additions & 9,762 deletions package-lock.json

Large diffs are not rendered by default.

25 changes: 12 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,17 @@
"astro": "astro"
},
"dependencies": {
"@algolia/client-search": "^4.14.2",
"@astrojs/image": "^0.10.0",
"@astrojs/preact": "^2.1.0",
"@astrojs/react": "^1.2.0",
"@docsearch/css": "^3.2.1",
"@docsearch/react": "^3.2.1",
"@types/node": "^18.11.0",
"@types/react": "^18.0.21",
"@types/react-dom": "^18.0.6",
"astro": "^1.5.0",
"preact": "^10.11.2",
"react": "^18.2.0",
"react-dom": "^18.2.0"
"@algolia/client-search": "^5.12.0",
"@astrojs/preact": "^3.5.3",
"@astrojs/react": "^3.6.2",
"@docsearch/css": "^3.7.0",
"@docsearch/react": "^3.7.0",
"@types/node": "^22.9.0",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"astro": "^4.16.9",
"preact": "^10.24.3",
"react": "^18.3.1",
"react-dom": "^18.3.1"
}
}
3 changes: 2 additions & 1 deletion src/components/Footer/AvatarList.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ type Props = {
};
const { path } = Astro.props as Props;
const resolvedPath = `examples/docs/${path}`;
const url = `https://api.github.com/repos/keycapsss/awesome-mechanical-keyboard/commits/?path=${path}`;
const url = `https://api.github.com/repos/keycapsss/awesome-mechanical-keyboard/commits?path=${path}`;
const commitsURL = `https://github.com/keycapsss/awesome-mechanical-keyboard/commits/master/${path}`;

type Commit = {
Expand Down Expand Up @@ -58,6 +58,7 @@ function removeDups(arr: Commit[]) {

for (let item of arr) {
const author = item.author;
if (author == null) continue;
// Deduplicate based on author.id
map.set(author.id, { login: author.login, id: author.id });
}
Expand Down
1 change: 1 addition & 0 deletions src/env.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/// <reference path="../.astro/types.d.ts" />
/// <reference types="astro/client" />
5 changes: 4 additions & 1 deletion src/layouts/MainLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ import RightSidebar from '../components/RightSidebar/RightSidebar.astro';
import * as CONFIG from '../config';
import type { MarkdownHeading } from 'astro';
import Footer from '../components/Footer/Footer.astro';
import { Image, Picture } from '@astrojs/image/components';

// https://docs.astro.build/en/guides/images/#images-in-markdown-files
// "The <img> tag is not supported for local images, and the <Image /> and <Picture /> components are unavailable in .md files."
// import { Image, Picture } from 'astro:assets';

type Props = {
frontmatter: CONFIG.Frontmatter;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/en/miscellaneous.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ layout: ../../layouts/MainLayout.astro
| -------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- | :--------------------------------------------------: | :---------------------------------------------------------: |
| [Adafruit Feather 32u4 Bluefruit LE](https://github.com/adafruit/Adafruit-Feather-32u4-Bluefruit-LE-PCB) | BLE controller with full QMK support | atmega32u4, nRF51822, micro usb, bluetooth, eaglecad | <img src="https://github.com/adafruit/Adafruit-Feather-32u4-Bluefruit-LE-PCB/raw/master/assets/image.jpg?raw=true" width="200px"> |
| [BLE Micro Pro](https://github.com/sekigon-gonnoc/BLE-Micro-Pro) | Breakout board of BL654(nrf52840 module) which is almost compatible with Pro Micro. This board is designed for wireless split DIY keyboards. | nrf52840, bluetooth | <img src="https://github.com/sekigon-gonnoc/BLE-Micro-Pro/raw/master/pin%20assign.jpg" width="200px"> |
| [Goldfish](https://github.com/Dr-Derivative/Goldfish) | A thin, USB-C, Pro Micro/Elite-C compatible microcontroller | pro micro, atmega32u4, usb-c, kicad | |
| [Goldfish](https://github.com/Dr-Derivative/Goldfish) | A thin, USB-C, Pro Micro/Elite-C compatible microcontroller | pro micro, atmega32u4, usb-c, kicad | <img src="https://raw.githubusercontent.com/staticintlucas/goldfish/main/docs/preview.png" width="200px" /> |
| [Nrfmicro](https://github.com/joric/nrfmicro) | Arduino Pro Micro-sized breakout board for E73-2G4M08S1C (nRF52840) modules | pro micro, nrf52840, usb-c, micro usb, kicad, bluetooth | <img src="https://i.imgur.com/0YXNbpJ.jpg" width="200px" /> |
| [ShiroMicro](https://github.com/elfmimi/MMCProMicro) | ProMicro clone with Mid-Mount USB Type-C connector | pro micro, usb-c, kicad | |

Expand Down
8 changes: 4 additions & 4 deletions src/pages/en/ortholinear.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ layout: ../../layouts/MainLayout.astro
| [Eternal Keypad](https://github.com/duckyb/eternal-keypad) | pcb, case | 5x7, pro micro, gaming, keypad | <img src="https://user-images.githubusercontent.com/27895007/144914161-c3f6f8ba-5b78-4c85-b8e2-320ba73d80ce.png" width="200px" /> |
| [Framework](https://github.com/stevennguyen/framework) | pcb, case | 5x12, through-hole, usb-c, rotary-encoder | <img src="https://raw.githubusercontent.com/stevennguyen/framework/master/images/1.jpg" width="200px" /> |
| [Gherkin](https://git.40percent.club/di0ib/Misc/src/branch/master/gherkin%20pack) | pcb | 30%, 3x10 | <img src="https://git.40percent.club/di0ib/Misc/raw/branch/master/gherkin%20pack/gherkinpack.png" width="200px" /> |
| [Helix](https://github.com/MakotoKurauchi/helix) | pcb, case | split, oled | <img src="https://camo.githubusercontent.com/348c95ff3baea20626e282b1a719eea49d0897b9/68747470733a2f2f692e696d6775722e636f6d2f5842416d796e4e2e6a7067" width="200px" /> |
| [Helix](https://github.com/MakotoKurauchi/helix) | pcb, case | split, oled | <img src="https://camo.githubusercontent.com/257b75a0cb959884f1c9edff0b8f5b93b6515854c3cee51bf409e38e6932dd34/68747470733a2f2f692e696d6775722e636f6d2f5842416d796e4e2e6a7067" width="200px" /> |
| [Lumberjack](https://github.com/peej/lumberjack-keyboard) | pcb | 5x12, through-hole, usb-mini, ATMEGA328P-PU | <img src="https://raw.githubusercontent.com/peej/lumberjack-keyboard/master/images/tofu-sa-vilebloom.jpg" width="200px" /> |
| [Koda](https://github.com/larrbo/odd-rocket/tree/master/koda) | pcb, case | 4x12, pro micro, kailh-choc | <img src="https://4.bp.blogspot.com/-E9gGZbziicI/WwoNKDP-YPI/AAAAAAAABYk/IXV4gGrcQKo5Bqf7CRVpR_zYH2SCxAXwACLcBGAs/s400/IMG_20180522_231738.jpg" width="200px" /> |
| [Krtkus](https://github.com/swift502/Krtkus) | pcb, case | 5x12, pro micro, kailh-choc | <img src="https://raw.githubusercontent.com/swift502/Krtkus/refs/heads/main/images/thumb.webp" width="200px" /> |
| [Otterlinear-keyboard](https://github.com/Jana-Marie/otterlinear-keyboard) | pcb, case | 5x12, stm32f042, kailh-choc | <img src="https://raw.githubusercontent.com/Jana-Marie/otterlinear-keyboard/main/img/FG7vpoGXIAYDPLb.jpeg" width="200px" /> |
| [Plaid](https://github.com/hsgw/plaid) | pcb | 4x12, atmega328p, through hole | <img src="https://user-images.githubusercontent.com/2714926/49872071-481ae000-fe5b-11e8-963d-8aaa3a653e4d.jpg" width="200px" /> |
| [Planck THK](https://github.com/olkb/planck_thk) | pcb, case | 4x12, rotary encoder | <img src="https://i.imgur.com/Jiy1jLN.jpg" width="200px" /> |
| [PouetPouet](https://github.com/dkm/pouetpouet-board) | pcb | 5x12, smd, usb-c, STM32F072CBT6 | <img src="https://raw.githubusercontent.com/dkm/pouetpouet-board/master/images/nyan-keeb.jpg" width="200px" /> |
| [PRKL30](https://github.com/ErkHal/prkl30) | pcb, case | 30%, pro micro, bluetooth, underglow | <img src="https://camo.githubusercontent.com/9b39ee253a7cdcbfdbe80f7ef36ddd3ad5b17382/68747470733a2f2f692e696d6775722e636f6d2f4e6b67493339492e6a7067" width="200px"/> |
| [PRKL30](https://github.com/ErkHal/prkl30) | pcb, case | 30%, pro micro, bluetooth, underglow | <img src="https://camo.githubusercontent.com/12680aa8517743d8ed11c913235b955ba8af0398eeeac57506e464cd31ff1cb5/68747470733a2f2f692e696d6775722e636f6d2f4e6b67493339492e6a7067" width="200px"/> |
| [Punk75](https://github.com/dsanchezseco/punk75) | pcb, case | 5x15, through-hole, usb-c, rotary-encoder, atmega32a-pu | <img src="https://raw.githubusercontent.com/dsanchezseco/punk75/master/generated/images/punk75_front.jpg" width="200px" /> |
| [QOL56](https://github.com/eswai/QOL56) | pcb, case | 4x14, pro micro, underglow, rgb | <img src="https://github.com/eswai/QOL56/raw/master/qol56-7.jpg" width="200px" /> |
| [SharkPCB](https://github.com/Gondolindrim/SharkPCB) | pcb, case | 4x12, rotary encoder, STM32, underglow, 3d print | <img src="https://raw.githubusercontent.com/Gondolindrim/SharkPCB/master/graphics/renders/top.png" width="200px" /> |
| [Splitish](https://github.com/RSchneyer/splitish) | pcb | 4x12, ortho, choc, pro micro | <img src="https://camo.githubusercontent.com/24188937548af34ccc12458d4243dc0a079b424f3fd0b5161b935e8f1a96fe4b/68747470733a2f2f692e696d6775722e636f6d2f36676e595049702e6a7067" width="200px" /> |
| [SharkPCB](https://github.com/Gondolindrim/SharkPCB) | pcb, case | 4x12, rotary encoder, STM32, underglow, 3d print | <img src="https://acheronproject.com/images/shark/shark_beta_pic3.jpg" width="200px" /> |
| [Splitish](https://github.com/RSchneyer/splitish) | pcb | 4x12, ortho, choc, pro micro | <img src="https://camo.githubusercontent.com/b0ad058d5c6ebe0214030169c965fdf626098c83627a4ea35990337febda878e/68747470733a2f2f692e696d6775722e636f6d2f36676e595049702e6a7067" width="200px" /> |
| [Ukiha](https://github.com/e3w2q/ukiha-keyboard) | pcb, case | 5x12, smd, micro-usb | <img src="https://raw.githubusercontent.com/e3w2q/ukiha-keyboard/main/doc/ukiha.jpg" width="200px" /> |
| [The Uni](https://github.com/petercpark/The_Uni) | pcb, keycaps | ortho, steno, pro micro | <img src="https://raw.githubusercontent.com/petercpark/The_Uni/main/Pics/close-up-uni.jpg" width="200px" /> |
| [Yakamoz](https://github.com/ozkan/Yakamoz) | pcb, case | ortho, underglow, oled, buzzer, smd, 50-key, rpi pico | <img src="https://i.imgur.com/ukkL0xo.png" width="200px" /> |
Expand Down
Loading