Skip to content

Commit f2af57c

Browse files
Merge pull request #42 from MovByte/formatting-update
Major formatting update
2 parents 3475544 + b5cf77f commit f2af57c

77 files changed

Lines changed: 1564 additions & 1136 deletions

Some content is hidden

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

‎.editorconfig‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true
8+
indent_style = space
9+
indent_size = 2
10+
11+
[*.{md,mdx}]
12+
trim_trailing_whitespace = false
13+
14+
[package*.json]
15+
indent_size = 2
16+
17+
[*.{yml,yaml}]
18+
indent_size = 2
19+
20+
[*.{json,js,ts,mjs,cjs}]
21+
indent_size = 2
22+
23+
[*.astro]
24+
indent_size = 2
25+
26+
[*.{css,scss,sass}]
27+
indent_size = 2
28+
29+
[*.html]
30+
indent_size = 2

‎.gitignore‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ pnpm-debug.log*
1919

2020
# macOS-specific files
2121
.DS_Store
22+
23+
package-lock.json
24+
pnpm-lock.yaml

‎.remarkrc.js‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
export default {
2+
plugins: [
3+
'remark-frontmatter',
4+
'remark-gfm',
5+
'remark-mdx',
6+
[
7+
'remark-stringify',
8+
{
9+
bullet: '-',
10+
listItemIndent: 'one',
11+
emphasis: '*',
12+
strong: '*',
13+
fences: true,
14+
fence: '`',
15+
rule: '-',
16+
incrementListMarker: true
17+
}
18+
]
19+
]
20+
};

‎.vscode/extensions.json‎

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
{
2-
"recommendations": ["astro-build.astro-vscode"],
3-
"unwantedRecommendations": []
2+
"recommendations": [
3+
"astro-build.astro-vscode",
4+
"unifiedjs.vscode-mdx",
5+
"yoavbls.pretty-ts-errors",
6+
"bierner.emojisense",
7+
"biomejs.biome",
8+
"dbaeumer.vscode-eslint",
9+
"wix.vscode-import-cost",
10+
"bierner.markdown-image-size",
11+
"sndst00m.vscode-native-svg-preview",
12+
"christian-kohler.npm-intellisense",
13+
"christian-kohler.path-intellisense",
14+
"antfu.vite",
15+
"matthewpi.caddyfile-support",
16+
"editorconfig.editorconfig"
17+
],
18+
"unwantedRecommendations": []
419
}

‎.vscode/launch.json‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"version": "0.2.0",
3-
"configurations": [
4-
{
5-
"command": "./node_modules/.bin/astro dev",
6-
"name": "Development server",
7-
"request": "launch",
8-
"type": "node-terminal"
9-
}
10-
]
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"command": "./node_modules/.bin/astro dev",
6+
"name": "Development server",
7+
"request": "launch",
8+
"type": "node-terminal"
9+
}
10+
]
1111
}

‎.vscode/settings.json‎

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"mdx.server.enable": true,
3+
"files.associations": {
4+
"*.mdx": "mdx"
5+
},
6+
"[typescript]": {
7+
"editor.defaultFormatter": "biomejs.biome",
8+
"editor.formatOnSave": true,
9+
"editor.codeActionsOnSave": {
10+
"quickfix.biome": "explicit",
11+
"source.organizeImports.biome": "explicit"
12+
}
13+
},
14+
"[javascript]": {
15+
"editor.defaultFormatter": "biomejs.biome",
16+
"editor.formatOnSave": true,
17+
"editor.codeActionsOnSave": {
18+
"quickfix.biome": "explicit",
19+
"source.organizeImports.biome": "explicit"
20+
}
21+
},
22+
"[json]": {
23+
"editor.defaultFormatter": "biomejs.biome",
24+
"editor.formatOnSave": true
25+
},
26+
"[jsonc]": {
27+
"editor.defaultFormatter": "biomejs.biome",
28+
"editor.formatOnSave": true
29+
},
30+
"[astro]": {
31+
"editor.defaultFormatter": "astro-build.astro-vscode",
32+
"editor.formatOnSave": true
33+
},
34+
"[mdx]": {
35+
"editor.defaultFormatter": "vscode.typescript-language-features",
36+
"editor.formatOnSave": true,
37+
"editor.codeActionsOnSave": {
38+
"source.fixAll.eslint": "explicit"
39+
}
40+
},
41+
"eslint.validate": ["mdx"],
42+
"eslint.options": {
43+
"extensions": [".mdx"]
44+
},
45+
"biome.enabled": true,
46+
"typescript.preferences.includePackageJsonAutoImports": "auto",
47+
"typescript.suggest.autoImports": true,
48+
"editor.formatOnSave": true,
49+
"editor.codeActionsOnSave": {
50+
"source.fixAll": "explicit"
51+
},
52+
"prettier.enable": false,
53+
"files.exclude": {
54+
"**/node_modules": true,
55+
"**/dist": true
56+
}
57+
}

‎.zed/settings.json‎

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"format_on_save": "on",
3+
"formatter": "biome",
4+
"languages": {
5+
"TypeScript": {
6+
"formatter": "biome",
7+
"format_on_save": "on"
8+
},
9+
"JavaScript": {
10+
"formatter": "biome",
11+
"format_on_save": "on"
12+
},
13+
"JSON": {
14+
"formatter": "biome",
15+
"format_on_save": "on"
16+
},
17+
"CSS": {
18+
"formatter": "biome",
19+
"format_on_save": "on"
20+
},
21+
"Astro": {
22+
"formatter": "biome",
23+
"format_on_save": "on"
24+
},
25+
"Markdown": {
26+
"formatter": {
27+
"external": {
28+
"command": "npx",
29+
"arguments": ["remark", "--output", "--silent"]
30+
}
31+
},
32+
"format_on_save": "on"
33+
},
34+
"MDX": {
35+
"formatter": {
36+
"external": {
37+
"command": "npx",
38+
"arguments": ["remark", "--output", "--silent"]
39+
}
40+
},
41+
"format_on_save": "on"
42+
}
43+
},
44+
"lsp": {
45+
"biome": {
46+
"settings": {
47+
"require_config_file": true
48+
}
49+
}
50+
},
51+
"tab_size": 2,
52+
"hard_tabs": false,
53+
"preferred_line_length": 80,
54+
"remove_trailing_whitespace_on_save": true,
55+
"ensure_final_newline_on_save": true
56+
}

‎README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ This composes from advanced URL rewriting proxies, webOS projects, web-based emu
88
## Installation
99

1010
Requirements are Node.js (v20+).
11+
Using `pnpm` is more recommended.
1112

1213
```
1314
git clone https://github.com/titaniumnetwork-dev/Oxide-Docs.git
@@ -21,3 +22,4 @@ npm run build # build static files
2122
## Contributing
2223

2324
If you wish to contribute please check out the Contributions section or commit to the GitHub!
25+
Please run `pnpm fmt` and `pnpm lint` before finishing your comits.

‎astro.config.mjs‎

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

‎astro.config.ts‎

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
import starlight from "@astrojs/starlight";
2+
import { defineConfig } from "astro/config";
3+
4+
// https://astro.build/config
5+
export default defineConfig({
6+
site: "https://docs.titaniumnetwork.org",
7+
8+
integrations: [
9+
starlight({
10+
title: "Titanium Network",
11+
favicon: "/favicon.png",
12+
social: {
13+
github: "https://github.com/titaniumnetwork-dev/Oxide-Docs",
14+
discord: "https://discord.gg/unblock",
15+
},
16+
components: {
17+
Head: "./src/components/MetadataHead.astro",
18+
},
19+
sidebar: [
20+
{
21+
label: "Guides",
22+
autogenerate: { directory: "guides" },
23+
},
24+
{
25+
label: "Services",
26+
autogenerate: { directory: "services" },
27+
},
28+
{
29+
label: "Proxies",
30+
autogenerate: { directory: "proxies" },
31+
},
32+
{
33+
label: "Technologies",
34+
autogenerate: { directory: "technologies" },
35+
},
36+
{
37+
label: "Transports",
38+
autogenerate: { directory: "transports" },
39+
},
40+
{
41+
label: "Kajigs",
42+
autogenerate: { directory: "kajigs" },
43+
},
44+
],
45+
customCss: [
46+
"./src/styles/custom.css",
47+
"@fontsource/raleway/400.css",
48+
"@fontsource/raleway/600.css",
49+
],
50+
}),
51+
],
52+
});

0 commit comments

Comments
 (0)