diff --git a/.github/workflows/retype.yml b/.github/workflows/retype.yml index 966fa8366..f4d8baedf 100644 --- a/.github/workflows/retype.yml +++ b/.github/workflows/retype.yml @@ -2,7 +2,7 @@ name: Update FMHY Retype on: workflow_dispatch: schedule: - - cron: '0 */2 * * *' + - cron: "0 */2 * * *" jobs: update: @@ -14,16 +14,16 @@ jobs: steps: - uses: actions/checkout@v2 - + - name: Move Files run: | cp -r .github/assets/* . shell: bash - + - name: Install Python uses: actions/setup-python@v4 with: - python-version: '3.10' + python-version: "3.10" - name: Prepare Files shell: bash diff --git a/.github/workflows/single-page.yml b/.github/workflows/single-page.yml index 846149240..f6652f3f6 100644 --- a/.github/workflows/single-page.yml +++ b/.github/workflows/single-page.yml @@ -3,7 +3,7 @@ name: Update Single Page on: workflow_dispatch: schedule: - - cron: '0 */2 * * *' + - cron: "0 */2 * * *" jobs: update: @@ -19,7 +19,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v4 with: - python-version: '3.10' + python-version: "3.10" - name: Configure Git run: | diff --git a/.prettierc.json b/.prettierrc.json similarity index 91% rename from .prettierc.json rename to .prettierrc.json index cc61e3d2e..62e685119 100644 --- a/.prettierc.json +++ b/.prettierrc.json @@ -10,5 +10,5 @@ "bracketSpacing": true, "bracketSameLine": true, "arrowParens": "always", - "proseWrap": "always", + "proseWrap": "always" } diff --git a/.vitepress/config.mts b/.vitepress/config.mts index 404b5a3be..3fe998a35 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config.mts @@ -27,8 +27,10 @@ export default defineConfig({ search: { provider: "local", }, - // TODO: add navbar items - nav: [], + nav: [ + { text: "Glossary", link: "https://rentry.org/The-Piracy-Glossary" }, + { text: "Guides", link: "https://rentry.co/fmhy-guides" }, + ], sidebar: [ { text: "Beginners Guide to Piracy", link: "/Beginners-Guide" }, { text: "Adblocking / Privacy", link: "/AdblockVPNGuide" }, diff --git a/.vitepress/theme/index.ts b/.vitepress/theme/index.ts index def4cfc87..8586ccadd 100644 --- a/.vitepress/theme/index.ts +++ b/.vitepress/theme/index.ts @@ -1,17 +1,15 @@ -// https://vitepress.dev/guide/custom-theme -import { h } from 'vue' -import type { Theme } from 'vitepress' -import DefaultTheme from 'vitepress/theme' -import './style.css' +import { h } from "vue"; +import "uno.css" +import type { Theme } from "vitepress"; +import DefaultTheme from "vitepress/theme"; +import "./style.css"; export default { extends: DefaultTheme, Layout: () => { return h(DefaultTheme.Layout, null, { - // https://vitepress.dev/guide/extending-default-theme#layout-slots - }) + }); }, enhanceApp({ app, router, siteData }) { - // ... - } -} satisfies Theme + }, +} satisfies Theme; diff --git a/.vitepress/theme/style.css b/.vitepress/theme/style.css index d63aee82d..64b54d394 100644 --- a/.vitepress/theme/style.css +++ b/.vitepress/theme/style.css @@ -43,7 +43,7 @@ * in custom container, badges, etc. * -------------------------------------------------------------------------- */ - :root { +:root { --vp-c-default-1: var(--vp-c-gray-1); --vp-c-default-2: var(--vp-c-gray-2); --vp-c-default-3: var(--vp-c-gray-3); @@ -92,17 +92,9 @@ :root { --vp-home-hero-name-color: transparent; - --vp-home-hero-name-background: -webkit-linear-gradient( - 120deg, - #bd34fe 30%, - #41d1ff - ); + --vp-home-hero-name-background: -webkit-linear-gradient(120deg, #c4b5fd 30%, #7bc5e4); - --vp-home-hero-image-background-image: linear-gradient( - -45deg, - #bd34fe 50%, - #47caff 50% - ); + --vp-home-hero-image-background-image: linear-gradient(-45deg, #c4b5fd 50%, #47caff 50%); --vp-home-hero-image-filter: blur(44px); } @@ -128,12 +120,3 @@ --vp-custom-block-tip-bg: var(--vp-c-brand-soft); --vp-custom-block-tip-code-bg: var(--vp-c-brand-soft); } - -/** - * Component: Algolia - * -------------------------------------------------------------------------- */ - -.DocSearch { - --docsearch-primary-color: var(--vp-c-brand-1) !important; -} - diff --git a/index.md b/index.md index e792029f0..c631a15c6 100644 --- a/index.md +++ b/index.md @@ -6,6 +6,9 @@ hero: name: "FMHY" text: "site" tagline: My great project tagline + image: + src: /test.png + alt: FMHY actions: - theme: brand text: Markdown Examples diff --git a/package.json b/package.json index 23ed64e66..727fb7572 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,8 @@ "scripts": { "docs:dev": "vitepress dev", "docs:build": "vitepress build", - "docs:preview": "vitepress preview" + "docs:preview": "vitepress preview", + "format": "prettier -w ." }, "dependencies": { "unocss": "^0.57.1", @@ -11,6 +12,7 @@ "vue": "^3.3.7" }, "devDependencies": { + "@iconify-json/simple-icons": "^1.1.76", "prettier": "^3.0.3" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 39d8b53b3..7b2452dd3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -16,6 +16,9 @@ dependencies: version: 3.3.7 devDependencies: + '@iconify-json/simple-icons': + specifier: ^1.1.76 + version: 1.1.76 prettier: specifier: ^3.0.3 version: 3.0.3 @@ -443,9 +446,14 @@ packages: dev: false optional: true + /@iconify-json/simple-icons@1.1.76: + resolution: {integrity: sha512-jZEMvkMfD5tTadFJIOIxKE4cTVXslrktWEiMJV6HaABi9qw02zS7bzrllR1YtGPxzniKkq2UVg/dKS6lliIxVA==} + dependencies: + '@iconify/types': 2.0.0 + dev: true + /@iconify/types@2.0.0: resolution: {integrity: sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==} - dev: false /@iconify/utils@2.1.11: resolution: {integrity: sha512-M/w3PkN8zQYXi8N6qK/KhnYMfEbbb6Sk8RZVn8g+Pmmu5ybw177RpsaGwpziyHeUsu4etrexYSWq3rwnIqzYCg==} diff --git a/public/test.png b/public/test.png new file mode 100644 index 000000000..265b5fcec Binary files /dev/null and b/public/test.png differ