File tree Expand file tree Collapse file tree 4 files changed +3503
-10686
lines changed
Expand file tree Collapse file tree 4 files changed +3503
-10686
lines changed Original file line number Diff line number Diff line change 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
109permissions :
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
Original file line number Diff line number Diff line change @@ -3,11 +3,9 @@ import starlight from '@astrojs/starlight'
33import starlightOpenAPI , { openAPISidebarGroups } from 'starlight-openapi'
44import tailwindcss from '@tailwindcss/vite'
55
6- // const base_url = process.env.BASE_URL || ''
7-
86export 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' ,
You can’t perform that action at this time.
0 commit comments