Skip to content

Commit 4d86a83

Browse files
committed
Migrate to Astro i18n/content architecture and improve terminal accessibility
1 parent fe0c23a commit 4d86a83

87 files changed

Lines changed: 10870 additions & 2340 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ build
3939
**/build
4040
dist
4141
**/dist
42+
.astro
43+
.npm-cache
4244
.svelte
4345
.svelte-kit
4446
**/.svelte

GEMINI.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

astro.config.ts

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
import { fileURLToPath } from "node:url";
2+
import { defineConfig } from "astro/config";
3+
import svelte from "@astrojs/svelte";
4+
import sitemap from "@astrojs/sitemap";
5+
import tailwindcss from "@tailwindcss/vite";
6+
import svg from "@poppanator/sveltekit-svg";
7+
8+
export default defineConfig({
9+
site: "https://rekylee.github.io",
10+
output: "static",
11+
base: process.env.BASE_PATH,
12+
i18n: {
13+
locales: ["en", "he"],
14+
defaultLocale: "en",
15+
routing: {
16+
prefixDefaultLocale: true,
17+
redirectToDefaultLocale: false,
18+
},
19+
},
20+
integrations: [svelte(), sitemap()],
21+
vite: {
22+
resolve: {
23+
alias: {
24+
$lib: fileURLToPath(new URL("./src/lib", import.meta.url)),
25+
},
26+
},
27+
plugins: [
28+
tailwindcss(),
29+
svg({
30+
includePaths: ["./src/lib/icons/"],
31+
svgoOptions: {
32+
multipass: true,
33+
plugins: [
34+
{
35+
name: "preset-default",
36+
params: { overrides: { removeViewBox: false } },
37+
},
38+
{ name: "removeAttrs", params: { attrs: "(fill|stroke)" } },
39+
],
40+
},
41+
}),
42+
svg({
43+
includePaths: ["./src/lib/assets/"],
44+
svgoOptions: {
45+
multipass: true,
46+
plugins: [
47+
{
48+
name: "preset-default",
49+
params: { overrides: { removeViewBox: false } },
50+
},
51+
],
52+
},
53+
}),
54+
],
55+
},
56+
});

eslint.config.js

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
import tseslint from "@typescript-eslint/eslint-plugin";
2+
import tsParser from "@typescript-eslint/parser";
3+
import astro from "eslint-plugin-astro";
4+
import svelte from "eslint-plugin-svelte";
5+
import globals from "globals";
6+
7+
export default [
8+
{
9+
ignores: [
10+
"dist/**",
11+
".astro/**",
12+
"node_modules/**",
13+
"public/**",
14+
"coverage/**",
15+
],
16+
},
17+
...astro.configs["flat/recommended"],
18+
...svelte.configs["flat/recommended"],
19+
{
20+
files: ["**/*.svelte"],
21+
languageOptions: {
22+
parserOptions: {
23+
parser: tsParser,
24+
},
25+
},
26+
rules: {
27+
"svelte/no-at-html-tags": "off",
28+
"svelte/require-each-key": "warn",
29+
"svelte/no-useless-mustaches": "warn",
30+
"svelte/prefer-svelte-reactivity": "warn",
31+
},
32+
},
33+
{
34+
files: ["**/*.{ts,tsx,js,mjs,cjs}"],
35+
plugins: {
36+
"@typescript-eslint": tseslint,
37+
},
38+
languageOptions: {
39+
parser: tsParser,
40+
sourceType: "module",
41+
ecmaVersion: "latest",
42+
globals: {
43+
...globals.browser,
44+
...globals.node,
45+
},
46+
},
47+
rules: {
48+
"no-unused-vars": "off",
49+
"@typescript-eslint/no-unused-vars": [
50+
"warn",
51+
{
52+
argsIgnorePattern: "^_",
53+
varsIgnorePattern: "^_",
54+
},
55+
],
56+
},
57+
},
58+
];

eslintrc.js

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)