diff --git a/.changeset/grumpy-snakes-tie.md b/.changeset/grumpy-snakes-tie.md new file mode 100644 index 0000000..cc97e5c --- /dev/null +++ b/.changeset/grumpy-snakes-tie.md @@ -0,0 +1,5 @@ +--- +"@untidy/thetvdb": patch +--- + +replace homepage url diff --git a/.github/workflows/static.yaml b/.github/workflows/static.yaml new file mode 100644 index 0000000..fa7fdc4 --- /dev/null +++ b/.github/workflows/static.yaml @@ -0,0 +1,46 @@ +name: Deploy static content to Pages + +on: + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + deploy: + name: 🏗️ Build and Deploy to Pages + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v4.1.1 + - name: Setup pnpm + uses: pnpm/action-setup@v3.0.0 + with: + version: 8.15.6 + - name: Setup Node + uses: actions/setup-node@v4.0.2 + with: + node-version-file: ".nvmrc" + cache: pnpm + - name: Install dependencies + run: pnpm install + - name: Run build + run: pnpm docs:build + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: "./packages/web/dist" + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/netlify.toml b/netlify.toml deleted file mode 100644 index ca51ca9..0000000 --- a/netlify.toml +++ /dev/null @@ -1,4 +0,0 @@ -[build] - publish = "packages/web/dist" - command = "pnpm docs:build" - ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF -- ./packages/web/" diff --git a/packages/web/astro.config.js b/packages/web/astro.config.js index 074c5fc..611f8fc 100644 --- a/packages/web/astro.config.js +++ b/packages/web/astro.config.js @@ -3,6 +3,8 @@ import tailwind from '@astrojs/tailwind'; import { defineConfig } from 'astro/config'; export default defineConfig({ + site: 'https://falsepopsky.github.io', + base: 'thetvdb', integrations: [ tailwind({ applyBaseStyles: false }), starlight({ diff --git a/packages/web/src/content/docs/guides/getting-started.mdx b/packages/web/src/content/docs/guides/getting-started.mdx index 2f60a8e..118313e 100644 --- a/packages/web/src/content/docs/guides/getting-started.mdx +++ b/packages/web/src/content/docs/guides/getting-started.mdx @@ -88,4 +88,4 @@ const data = await client.characterById('64140522'); That's it! You have now made your first request. For more documentation, please check the -[API](/api/) section. +[API](/thetvdb/api/) section. diff --git a/packages/web/src/content/docs/index.mdx b/packages/web/src/content/docs/index.mdx index f1925c0..d35dfc5 100644 --- a/packages/web/src/content/docs/index.mdx +++ b/packages/web/src/content/docs/index.mdx @@ -5,10 +5,10 @@ template: splash hero: tagline: Client library for TheTVDB API in Node.js image: - file: ../../assets/favicon.png + file: '@assets/favicon.png' actions: - text: Get Started - link: /guides/getting-started/ + link: /thetvdb/guides/getting-started/ icon: right-arrow variant: primary - text: View on GitHub