Skip to content

Commit 748ad31

Browse files
lwasserJimMadge
andauthored
chore(ci for docs): Get docs online via github pages (#914)
* docs: get docs online via github pages new branch * chore: set site and base according to astro docs Astro docs: https://docs.astro.build/en/guides/deploy/github/#how-to-deploy suggest how to specifiy the site url and base for GitHub pages. --------- Co-authored-by: Jim Madge <[email protected]>
1 parent 875b8a8 commit 748ad31

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.github/workflows/build-website.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Deploy to GitHub Pages
33
on:
44
push:
55
branches:
6-
- main
6+
- docs-upgrade
77
jobs:
88
build:
99
name: Build Astro site

astro.config.mjs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
// @ts-check
22
import { defineConfig } from 'astro/config';
33
import starlight from '@astrojs/starlight';
4-
54
import sitemap from '@astrojs/sitemap';
6-
75
import tailwindcss from '@tailwindcss/vite';
86

97
export default defineConfig({
10-
site: 'https://allcontributors.org',
11-
base: '/',
8+
site: 'https://all-contributors.github.io',
9+
base: '/all-contributors',
1210
output: 'static',
1311

1412
redirects: {
@@ -76,4 +74,4 @@ export default defineConfig({
7674
},
7775
},
7876
},
79-
});
77+
});

0 commit comments

Comments
 (0)