Skip to content

Commit 6374566

Browse files
committed
feat: allow local build/bump deps/
1 parent 06ed02c commit 6374566

File tree

4 files changed

+3503
-10686
lines changed

4 files changed

+3503
-10686
lines changed

.github/workflows/pages.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches:
66
- feat/astro-starlight
7-
workflow_dispatch:
87

98
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
109
permissions:
@@ -38,7 +37,6 @@ jobs:
3837
- name: Install dependencies
3938
run: npm ci
4039
- name: Build with Astro
41-
# run: BASE_URL='https://pokeapi.github.io/' npm run build
4240
run: npm run build --site 'https://pokeapi.github.io/' --base 'pokeapi.co'
4341
- name: Upload artifact
4442
uses: actions/upload-pages-artifact@v3

astro.config.mjs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@ import starlight from '@astrojs/starlight'
33
import starlightOpenAPI, { openAPISidebarGroups } from 'starlight-openapi'
44
import tailwindcss from '@tailwindcss/vite'
55

6-
// const base_url = process.env.BASE_URL || ''
7-
86
export default defineConfig({
97
site: 'https://pokeapi.co',
10-
base: '/pokeapi.co',
8+
base: '',
119
integrations: [
1210
starlight({
1311
title: 'PokéAPI',
@@ -23,10 +21,8 @@ export default defineConfig({
2321
slack: 'https://pokeapi.slack.com/',
2422
},
2523
plugins: [
26-
// Generate the OpenAPI documentation pages.
2724
starlightOpenAPI([
2825
{
29-
// base: `${base_url}/v2/openapi`,
3026
base: `/v2/openapi`,
3127
label: 'OpenAPI',
3228
schema: 'https://raw.githubusercontent.com/PokeAPI/pokeapi/master/openapi.yml',

0 commit comments

Comments
 (0)