Skip to content

Commit 307a1ca

Browse files
authored
Merge pull request #65 from falsepopsky/dev
fix: drop netlify, use gh-pages
2 parents e195b8e + 76f6130 commit 307a1ca

File tree

8 files changed

+215
-433
lines changed

8 files changed

+215
-433
lines changed

.changeset/grumpy-snakes-tie.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@untidy/thetvdb": patch
3+
---
4+
5+
replace homepage url

.github/workflows/static.yaml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Deploy static content to Pages
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: read
8+
pages: write
9+
id-token: write
10+
11+
concurrency:
12+
group: "pages"
13+
cancel-in-progress: false
14+
15+
jobs:
16+
deploy:
17+
name: 🏗️ Build and Deploy to Pages
18+
environment:
19+
name: github-pages
20+
url: ${{ steps.deployment.outputs.page_url }}
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout repo
24+
uses: actions/[email protected]
25+
- name: Setup pnpm
26+
uses: pnpm/[email protected]
27+
with:
28+
version: 8.15.6
29+
- name: Setup Node
30+
uses: actions/[email protected]
31+
with:
32+
node-version-file: ".nvmrc"
33+
cache: pnpm
34+
- name: Install dependencies
35+
run: pnpm install
36+
- name: Run build
37+
run: pnpm docs:build
38+
- name: Setup Pages
39+
uses: actions/configure-pages@v5
40+
- name: Upload artifact
41+
uses: actions/upload-pages-artifact@v3
42+
with:
43+
path: "./packages/web/dist"
44+
- name: Deploy to GitHub Pages
45+
id: deployment
46+
uses: actions/deploy-pages@v4

netlify.toml

-4
This file was deleted.

packages/api/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
],
2323
"author": "falsepopsky",
2424
"license": "Apache-2.0",
25-
"homepage": "https://untidy-thetvdb.netlify.app/",
25+
"homepage": "https://falsepopsky.github.io/thetvdb",
2626
"scripts": {
2727
"clean:build": "rm -rf dist",
2828
"prebuild": "pnpm run clean:build",

packages/web/astro.config.js

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import tailwind from '@astrojs/tailwind';
33
import { defineConfig } from 'astro/config';
44

55
export default defineConfig({
6+
site: 'https://falsepopsky.github.io',
7+
base: 'thetvdb',
68
integrations: [
79
tailwind({ applyBaseStyles: false }),
810
starlight({

packages/web/src/content/docs/guides/getting-started.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,4 @@ const data = await client.characterById('64140522');
8888
</Details>
8989

9090
That's it! You have now made your first request. For more documentation, please check the
91-
[API](/api/) section.
91+
[API](/thetvdb/api/) section.

packages/web/src/content/docs/index.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ template: splash
55
hero:
66
tagline: Client library for TheTVDB API in Node.js
77
image:
8-
file: ../../assets/favicon.png
8+
file: '@assets/favicon.png'
99
actions:
1010
- text: Get Started
11-
link: /guides/getting-started/
11+
link: /thetvdb/guides/getting-started/
1212
icon: right-arrow
1313
variant: primary
1414
- text: View on GitHub

0 commit comments

Comments
 (0)