diff --git a/.prettierc.json b/.prettierc.json new file mode 100644 index 000000000..cc61e3d2e --- /dev/null +++ b/.prettierc.json @@ -0,0 +1,14 @@ +{ + "semi": true, + "printWidth": 100, + "tabWidth": 2, + "useTabs": false, + "singleQuote": false, + "quoteProps": "as-needed", + "jsxSingleQuote": false, + "trailingComma": "all", + "bracketSpacing": true, + "bracketSameLine": true, + "arrowParens": "always", + "proseWrap": "always", +} diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 000000000..de056073a --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +**/*.md diff --git a/.vitepress/config.mts b/.vitepress/config.mts index 52ce3b470..8d14f5154 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config.mts @@ -22,15 +22,13 @@ export default defineConfig({ // TODO: add navbar items nav: [], sidebar: [ - { - text: "Examples", - items: [ - { text: "Markdown Examples", link: "/markdown-examples" }, - { text: "Runtime API Examples", link: "/api-examples" }, - ], - }, + { text: "Beginners Guide to Piracy", link: "/Beginners-Guide" }, + { text: "Adblocking / Privacy", link: "/AdblockVPNGuide" }, + { text: "Artificial Intelligence", link: "/AI" }, + ], + socialLinks: [ + { icon: "github", link: "https://github.com/fmhy/FMHYEdit" }, + { icon: "discord", link: "https://discord.gg/Stz6y6NgNg" }, ], - // TODO: add socials - socialLinks: [], }, }); diff --git a/.vitepress/shared.mts b/.vitepress/shared.mts deleted file mode 100644 index f3a219d8a..000000000 --- a/.vitepress/shared.mts +++ /dev/null @@ -1,18 +0,0 @@ -import { defineConfig } from "vitepress"; - -export const sharedConfig = defineConfig({ - lang: "en-US", - lastUpdated: true, - cleanUrls: true, - appearance: "dark", - head: [ - ["meta", { name: "theme-color", content: "#7bc5e4" }], - ["meta", { name: "og:type", content: "website" }], - ["meta", { name: "og:locale", content: "en" }], - ], - themeConfig: { - search: { - provider: "local", - }, - }, -}); diff --git a/package.json b/package.json index dfdd7dfd3..2d1fd717d 100644 --- a/package.json +++ b/package.json @@ -8,5 +8,8 @@ "dependencies": { "vitepress": "1.0.0-rc.24", "vue": "^3.3.7" + }, + "devDependencies": { + "prettier": "^3.0.3" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8e98fbf91..d95f2b65d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,6 +12,11 @@ dependencies: specifier: ^3.3.7 version: 3.3.7 +devDependencies: + prettier: + specifier: ^3.0.3 + version: 3.0.3 + packages: /@algolia/autocomplete-core@1.9.3(@algolia/client-search@4.20.0)(algoliasearch@4.20.0)(search-insights@2.9.0): @@ -42,9 +47,6 @@ packages: peerDependencies: '@algolia/client-search': '>= 4.9.1 < 6' algoliasearch: '>= 4.9.1 < 6' - peerDependenciesMeta: - '@algolia/client-search': - optional: true dependencies: '@algolia/autocomplete-shared': 1.9.3(@algolia/client-search@4.20.0)(algoliasearch@4.20.0) '@algolia/client-search': 4.20.0 @@ -732,6 +734,12 @@ packages: resolution: {integrity: sha512-mKUD7RRkQQM6s7Rkmi7IFkoEHjuFqRQUaXamO61E6Nn7vqF/bo7EZCmSyrUnp2UWHw0O7XjZ2eeXis+m7tf4lg==} dev: false + /prettier@3.0.3: + resolution: {integrity: sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==} + engines: {node: '>=14'} + hasBin: true + dev: true + /rollup@3.29.4: resolution: {integrity: sha512-oWzmBZwvYrU0iJHtDmhsm662rC15FRXmcjCk1xD771dFDx5jJ02ufAQQTn0etB2emNk4J9EZg/yWKpsn9BWGRw==} engines: {node: '>=14.18.0', npm: '>=8.0.0'}